为了护眼,将网页背景设置为黑色。功能参考的https://github.com/slc3a2/dimmer
当前为
// ==UserScript==
// @name 企鹅标注关灯
// @namespace http://tampermonkey.net/
// @version 0.9
// @description 为了护眼,将网页背景设置为黑色。功能参考的https://github.com/slc3a2/dimmer
// @author jiyao
// @match https://qlabel.tencent.com/*
// @grant none
// @license MIT
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @grant GM_addStyle
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
(function() {
'use strict';
$("html").css({
"filter": "invert(0.9) hue-rotate(180deg)",
"transition": "filter 0.8s",
"background-color": "#fff"
});
$("html img").each(function(){
$(this).css({
"filter": "invert(100) hue-rotate(180deg)",
"transition": "filter 0.8s",
"background-color": "#fff"
});
});
$("html video").each(function(){
$(this).css({
"filter": "invert(100) hue-rotate(180deg)",
"transition": "filter 0.8s",
"background-color": "#fff"
});
});
GM_addStyle(`
.ivu-checkbox-wrapper {
font-size:28px!important;
}
`);
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址