Greasy Fork

thoughts-ui优化

优化Thoughs样式

目前为 2020-03-06 提交的版本。查看 最新版本

// ==UserScript==
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @name         thoughts-ui优化
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  优化Thoughs样式
// @author       邱道长
// @include      *://thoughts.teambition.com/*
// @grant        none
// ==/UserScript==


(function() {
    'use strict';
     window.setTimeout(function() {
        $(function() {
            
            $('h2 span[data-slate-content]').css('marginLeft','1em');
            $('h2').css('backgroundColor','#64ACE4').css('color','white')
            .css('marginLeft','0');
            // 普通段落设置
            $('span[data-slate-content]').css('fontSize','24px');
            $('p').css('textIndent','50px');
            // 有序列表数字符号字体大小和普通段落,字体大小保持一致,否则会不协调。
            $('.number__31Gh').css('fontSize','24px');
            $('h1 span').css('fontSize','36px');// 一级标题设置字体
            $('h1').css('textAlign','center');
            $('a').css('fontSize','18px');//修改链接字体
        })

      
    },1500)// 延时执行防止渲染不出来
})();