toBlackAndWhite

try to change the website to black and white;

  1. // ==UserScript==
  2. // @name toBlackAndWhite
  3. // @namespace b-a-w
  4. // @version 0.1
  5. // @description try to change the website to black and white;
  6. // @author 2024
  7. // @match http://*/*
  8. // @match https://*/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. const extraStyle = document.createElement('style');
  15. extraStyle.innerHTML = `
  16. html {
  17. filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
  18. filter: grayscale(100%);
  19. -webkit-filter: grayscale(100%);
  20. filter: gray;
  21. -webkit-filter: grayscale(1);
  22. }`;
  23. document.head.appendChild(extraStyle);
  24. })();

QingJ © 2025

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