您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
reddit replace new favicon with new
当前为
- // ==UserScript==
- // @name Reddit replace new favicon with old
- // @namespace https://greasyfork.org/users/821661
- // @match https://www.reddit.com/*
- // @match https://sh.reddit.com/*
- // @match https://new.reddit.com/*
- // @match https://old.reddit.com/*
- // @grant GM_addStyle
- // @version 1.0
- // @author hdyzen
- // @description reddit replace new favicon with new
- // @license MIT
- // ==/UserScript==
- 'use strict';
- const favicons = document.querySelectorAll('[rel*="icon"]');
- favicons.forEach(favicon => favicon.setAttribute('href', `//web.archive.org/web/20230312000109im_/${favicon.href}`));
- GM_addStyle(`._30BbATRhFv3V83DHNDjJAO { background-image: url('https://raw.githubusercontent.com/zenstorage/others/main/reddit.webp') !important; background-position: left !important; background-size: 80% !important; background-repeat: no-repeat !important; & svg { opacity: 0 !important; } } ._30BbATRhFv3V83DHNDjJAO > svg { visibility: hidden !important; }`);