其他分享
首页 > 其他分享> > 油猴-设置语雀夜间模式

油猴-设置语雀夜间模式

作者:互联网

大白色 半夜打字实在晃眼没有感觉

// ==UserScript==
// @name         yuque_background
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @include      *yuque.com*
// @require    http://code.jquery.com/jquery-1.11.0.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){
        var root=document.getElementsByClassName("ne-editor-body")[0];
        root.style.cssText="background-color: #595959;";
        root=document.getElementsByClassName("ne-editor-box")[0];
        root.style.cssText="background-color: #595959;";
        root=document.getElementsByClassName("ne-editor-extra-box")[0];
        root.style.cssText="background-color: #595959;";
        var title = document.querySelector("div[data-testid=title-editor]");
        title.firstChild.style.cssText="background-color: #595959;";
        // toolbar = document.querySelector("div[data-toolbar-name=default]");
        // toolbar.firstChild.style.cssText="background-color: #595959;";
        root=document.getElementsByClassName("lark-editor-header")[0];
        root.style.cssText="background-color: #595959;";
    },500)
    // Your code here...
})();

还不过完善

标签:夜间,语雀,cssText,color,595959,style,background,root,油猴
来源: https://www.cnblogs.com/huim/p/15174280.html