您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add favicon`s on google search page.
当前为
// ==UserScript== // @name GiCon // @version 0.1.3 // @description Add favicon`s on google search page. // @description:ru Добавляет иконки сайтов в поисковый ответ. // @author gvvad // @run-at document-start // @include http*://google.*/* // @include http*://www.google.*/* // @include http*://google.*.*/* // @include http*://www.google.*.*/* // @noframes // @grant none // @license GPL-3.0+; http://www.gnu.org/licenses/gpl-3.0.txt // @namespace https://gf.qytechs.cn/users/100160 // ==/UserScript== (function() { 'use strict'; //custom css rule for icon document.styleSheets[0].insertRule(".gicofav{position:absolute; top:0.1em; left:-1.8em;}"); //shedule on page load event document.documentElement.addEventListener("load", function() { try { let lst = rcnt.querySelectorAll(".g"); if (!lst) { return; } let reg = /https?:\/\/.+?\//; for (let item of lst) { try { if (item.querySelector(".gicofav")) { continue; } let rc = item.querySelector(".rc"); let nhref = reg.exec(item.querySelector(".r").querySelector("a").href); let nimg = document.createElement("img"); nimg.setAttribute("class", "gicofav"); nimg.setAttribute("src", "http://www.google.com/s2/favicons?domain=" + nhref); rc.insertBefore(nimg, rc.childNodes[0]); } catch(e) { continue; } } } catch(e) {} }, true); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址