xTapd.cn

调整tapd界面

// ==UserScript==
// @name         xTapd.cn
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  调整tapd界面
// @author       Jack.Chan
// @home-url     https://greasyfork.org/zh-CN/scripts/41108-xtaped-cn/
// @match        https://www.tapd.cn/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    var rules = [];
    rules.push(".left-tree-brick .left-tree-brick-text{opacity:1;}");
    rules.push(".left-tree-project-list{top: 0;left: 0;right: 0;bottom: auto;height: 40px;width: 1366px;background-color:#3d424a;overflow:hidden;}{}");
    rules.push(".left-tree-project-list .status-list .myprojects-content ul.list-content li i.font-public-star{margin-left:2px;margin-right:2px;}");
    rules.push("body .project-nav{top:50px;left:75px;right:16px;}");
    rules.push("body .subject_title{padding:5px 20px;}");
    rules.push("body .subject_title .fr.right-operation{top:10px;}");
    rules.push("body .worktable-preview{z-index:6;}");
    rules.push("body .tab>li>a{height:38px;line-height:38px;}");
    rules.push("body .left-tree-brick.my-project-list-btn{display:none;}");
    rules.push("#page-wrapper #page-content, #page-wrapper.read-like-card #page-content{margin-top:65px;}");
    rules.push(".left-tree-project-list-title,");
    rules.push(".left-tree-project-list .status-list,");
    rules.push(".left-tree-project-list .left-tree-project-list-title,");
    rules.push(".g-sidebar .projects.list-content li,");
    rules.push(".add-projects-wrap");
    rules.push("{display:inline-block !important;vertical-align:top;}");
    rules.push("body .g-sidebar .projects.list-content li{padding:0;}");
    rules.push("body .add-projects-wrap{padding-top:5px;}");
    rules.push("body .left-tree-project-list a.add-projects{width:auto;padding:5px;}");
    rules.push(".left-tree-project-list .status-list{padding-top:0;padding-bottom:0;}");
    rules.push(".left-tree-project-list .status-list .myprojects-content{display:inline-block;}");
    rules.push(".g-sidebar .projects.list-content li{padding:5px 10px}");
    rules.push("body #page-content{min-width:1040px !important;}");
    rules.push(".left-tree-project-list .status-list .myprojects-content{padding-top:0;vertical-align:middle;}");
    rules.push("ul.projects a{padding-left:10px;}");
    rules.push("ul.projects .project-name{width:auto;padding-right:10px;}");
    rules.push(".add-projects-wrap{vertical-align:middle;}");
    rules.push("body .worktable-wrap{padding:50px 30px;}");
    rules.push("body .worktable-table{top:118px;}");
    rules.push("");

    var style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = rules.join('');
    document.head.appendChild(style);

    if(jQuery){
         $(window).on('resize', function(e){
             $('.left-tree-project-list').width($(window).width());
         }).trigger('resize');;
    }
})();