Web With Color

上帝说:要有颜色

当前为 2022-12-01 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Web With Color
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  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.mysmth.net/*
  12. // @match *://tieba.baidu.com/*
  13. // @run-at document-end
  14. // @grant none
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19.  
  20. // Your code here...
  21. document.getElementsByTagName('html')[0].style.webkitFilter='grayscale(0%)';
  22.  
  23. var wbList=document.getElementsByClassName("grayTheme")
  24. wbList.forEach(function (elem) {
  25. elem.classList.remove("grayTheme")
  26. });
  27.  
  28. })();