// ==UserScript== // @name 企鹅标注关灯 // @namespace http://tampermonkey.net/ // @version 1.4 // @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 // @downloadURL none // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); (function() { 'use strict'; GM_addStyle( '.ivu-checkbox-wrapper{font-size: 28px !important;}.ivu-input{font-size: 28px !important;color: blue !important;}.mlm{font-size: 28px !important;color: blue !important;}.mtm{font-size: 28px !important;color: blue !important;}.customInput horizontalLtr{font-size: 28px !important;color: lime !important;}.ivu-btn-large{height: 120px !important;}' ); $("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" }); }); })();