更好的智学网

Better zhixue

目前為 2023-11-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         更好的智学网
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Better zhixue
// @author       ObcbO
// @license      MIT
// @match        *://*.zhixue.com/*
// @icon         https://static.zhixue.com/zhixue.ico
// @run-at       document-start
// @grant        GM.getValue
// @grant        GM.setValue
// @grant        GM_addValueChangeListener
// @grant        GM_removeValueChangeListener
// @grant        GM_addElement
// @grant        GM_addStyle
// @grant        GM.registerMenuCommand
// ==/UserScript==

(function() {
    'use strict';

    var pathname = window.location.pathname;
    if (pathname == "/activitystudy/web-report/index.html") {
    // 考试报告
    GM_addStyle(`
    .report {
    margin: 0 auto;
    width: 100%
    }
    .report-content {
    display: inline-flex;
    }
    .report-content .hierarchy {
    margin-right: 10px;
    min-width: fit-content;
    }
    .report-content .hierarchy .single .subject {
    width: 80px;
    }
    .report-content .hierarchy .single .sub-item {
    display: contents;
    }
    .subject_analysis {
    min-width: fit-content;
    }
    .subject_analysis_legend_div {
    width: 80%;
    }
    `)
    }
})();