Java教程

油猴-设置语雀夜间模式

本文主要是介绍油猴-设置语雀夜间模式,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

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

// ==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...
})();

还不过完善

这篇关于油猴-设置语雀夜间模式的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!