企鹅标注关灯

为了护眼,将网页背景设置为黑色。功能参考的https://github.com/slc3a2/dimmer

  1. // ==UserScript==
  2. // @name 企鹅标注关灯
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  5. // @description 为了护眼,将网页背景设置为黑色。功能参考的https://github.com/slc3a2/dimmer
  6. // @author jiyao
  7. // @match https://qlabel.tencent.com/*
  8. // @match https://yuewen.cn/*
  9. // @match https://tencent.github.io/*
  10. // @match https://www.latexlive.com/
  11. // @grant none
  12. // @license MIT
  13. // @require https://code.jquery.com/jquery-2.1.4.min.js
  14. // @grant GM_addStyle
  15. // ==/UserScript==
  16.  
  17. this.$ = this.jQuery = jQuery.noConflict(true);
  18.  
  19. (function() {
  20. 'use strict';
  21. $("html").css({
  22. "filter": "invert(0.9) hue-rotate(180deg)",
  23. "transition": "filter 0.8s",
  24. "background-color": "#fff"
  25. });
  26.  
  27. $("html img").each(function(){
  28. $(this).css({
  29. "filter": "invert(100) hue-rotate(180deg)",
  30. "transition": "filter 0.8s",
  31. "background-color": "#fff"
  32. });
  33. });
  34.  
  35. $("html video").each(function(){
  36. $(this).css({
  37. "filter": "invert(100) hue-rotate(180deg)",
  38. "transition": "filter 0.8s",
  39. "background-color": "#fff"
  40. });
  41. });
  42. })();

QingJ © 2025

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