Reddit replace new favicon with old

reddit replace new favicon with new

  1. // ==UserScript==
  2. // @name Reddit replace new favicon with old
  3. // @namespace https://gf.qytechs.cn/users/821661
  4. // @match https://www.reddit.com/*
  5. // @match https://sh.reddit.com/*
  6. // @match https://new.reddit.com/*
  7. // @match https://old.reddit.com/*
  8. // @grant GM_addStyle
  9. // @version 1.0
  10. // @author hdyzen
  11. // @description reddit replace new favicon with new
  12. // @license MIT
  13. // ==/UserScript==
  14. 'use strict';
  15.  
  16. const favicons = document.querySelectorAll('[rel*="icon"]');
  17. favicons.forEach(favicon => favicon.setAttribute('href', `//web.archive.org/web/20230312000109im_/${favicon.href}`));
  18.  
  19. 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; }`);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址