zoukankan      html  css  js  c++  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...
    })();
    

    还不过完善

  • 相关阅读:
    D3.js:交互式操作
    D3.js:Update、Enter、Exit
    D3.js:动态效果
    D3.js:完整的柱形图
    D3.js:坐标轴
    D3.js
    ES 6 : 数组的扩展
    ES 6 : Math对象的扩展
    拉勾网企业图片列表效果
    拉勾网图片切换效果
  • 原文地址:https://www.cnblogs.com/huim/p/15174280.html
Copyright © 2011-2022 走看看