Web With Color

上帝说:要有颜色

目前为 2022-12-01 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Web With Color
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description 上帝说:要有颜色
  6. // @author 7nc
  7. // @match *://www.gamersky.com/*
  8. // @match *://weibo.com/*
  9. // @match *://www.zhihu.com/*
  10. // @match *://www.bilibili.com/*
  11. // @match *://www.163.com/*
  12. // @match *://www.sohu.com/*
  13. // @match *://www.ifeng.com/*
  14. // @match *://xueqiu.com/*
  15. // @match *://www.mysmth.net/*
  16. // @match *://tieba.baidu.com/*
  17. // @run-at document-end
  18. // @grant none
  19. // ==/UserScript==
  20.  
  21. (function() {
  22. 'use strict';
  23.  
  24. // Your code here...
  25. document.getElementsByTagName('html')[0].style.webkitFilter='grayscale(0%)';
  26.  
  27. var wbList=document.getElementsByClassName("grayTheme")
  28. if(wbList.length>0){
  29. wbList.forEach(function (elem) {
  30. elem.classList.remove("grayTheme")
  31. });
  32. }
  33.  
  34.  
  35. })();