Web With Color

上帝说:要有颜色

  1. // ==UserScript==
  2. // @name Web With Color
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  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. // @match *://www.taobao.com/*
  18. // @match *://www.tmall.com/*
  19. // @match *://www.jd.com/*
  20. // @match *://www.aliyun.com/*
  21. // @run-at document-end
  22. // @grant none
  23. // ==/UserScript==
  24.  
  25. (function() {
  26. 'use strict';
  27.  
  28. // Your code here...
  29. document.getElementsByTagName('html')[0].style.webkitFilter='grayscale(0%)';
  30.  
  31. var wbList=document.getElementsByClassName("grayTheme")
  32. if(wbList.length>0){
  33. wbList.forEach(function (elem) {
  34. elem.classList.remove("grayTheme")
  35. });
  36. }
  37.  
  38.  
  39. })();