您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Google検索結果でhttpは警告色で目立つようにする。(新デザイン用2020.1.15)
当前为
- // ==UserScript==
- // @name google_http_warning2
- // @namespace https://catherine.v0cyc1pp.com/
- // @include https://www.google.co.jp/search?*
- // @include https://www.google.com/search?*
- // @author greg10
- // @run-at document-end
- // @license GPL 3.0
- // @version 0.4
- // @grant none
- // @description Google検索結果でhttpは警告色で目立つようにする。(新デザイン用2020.1.15)
- // ==/UserScript==
- console.log("google_http_warning2 start");
- function sub() {
- document.querySelectorAll(".r > a").forEach(function(elem) {
- var href = elem.href;
- if (href == "") return;
- var index = href.indexOf("https");
- if (index == 0) return;
- elem.style.color = "#cc6600";
- elem.style.backgroundColor = "#eeeeee";
- });
- document.querySelectorAll("cite").forEach(function(elem) {
- var parent = elem.parentNode;
- var img = parent.firstElementChild;
- var href = img.alt;
- if (href == "") return;
- var index = href.indexOf("https");
- if (index == 0) return;
- elem.style.color = "#cc6600";
- elem.style.backgroundColor = "#eeeeee";
- });
- }
- function main() {
- sub();
- }
- main();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址