跳到正文

个人记录

NFLSOJ Helper FOR 192.168.188.77

Carey_chen约 54 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年1月17日
篇幅
约 54 分钟

版本

  1. v1当前

v0.21

JavaScript
// ==UserScript==
// @name         NFLSOJ Helper
// @version      0.21
// @author       Carey_chen
// @description  NFLSOJ Helper,部分借鉴 Smart-Lougu。
// @match        http://www.nfls.com.cn:20035/*
// @match        http://192.168.188.77/*
// ==/UserScript==

var image, DefaultImage =
[
    "https://www.helloimg.com/i/2025/03/23/67dfa10f0406f.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa11ace69d.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa131ba844.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa13186e6f.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa13692d9d.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa13771a7f.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa13789fd0.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa13c1f0a4.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa13de0f83.jpg",
    "https://www.helloimg.com/i/2025/03/23/67dfa122833a2.jpg",
    "https://www.helloimg.com/i/2025/07/06/686a6b34cc00d.jpeg",
    "https://www.helloimg.com/i/2025/07/07/686b62f1a6d57.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62f2d1b48.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62f2ee62e.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62f3c73f3.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62f34176c.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62f600653.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62fdd0eaa.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62fe14474.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b62ff14ffe.jpg",
    "https://www.helloimg.com/i/2025/07/07/686b6300206a5.jpg",
];

function Move(str)
{
    const element = document.querySelector('.ui.container');
    if(element == undefined)
    {
        return;
    }
    element.innerHTML = element.innerHTML.replace(new RegExp(str, 'gi'), '<i class="text">$&</i>' );
}

function LoginByCooie()
{
    console.log("NFLSOJ helper:曲奇登录成功!");
    document.cookie = "LoginByCookie=true";
    document.cookie = "login=" + document.getElementById("Cookie").value;
    window.location.href = "/";
}

var created = false;
function ConfirmToSubmit()
{
    if(created == false)
    {
        document.querySelector('body').insertAdjacentHTML('afterend', '<div id="confirmer" class="ui dimmer modals page transition visible active" style="display: flex !important;"><div class="ui basic modal transition visible active" style="display: block !important;"><div class="ui icon header"><i class="edit icon"></i></div><div class="content" style="text-align: center; "><p>确认要以曲奇(Cookie)登录时提交此代码吗?。<br></p><b>Tips: 若使用曲奇(Cookie)登录将不会被记录IP地址,但若提交代码,你的IP将被记录。<br> Tips: 若要跳过确认,请在代码框中填入代码,之后在控制台(console)中输入 “submit_code()”(不含引号)。</b></div><div class="actions"><div id="ConfirmToSubmit_Cancel" class="ui red basic cancel inverted button"><i class="remove icon"></i>否</div><a id="ConfirmToSubmit_OK" class="ui green ok inverted button"><i class="checkmark icon"></i>是</a></div></div></div>');
        created = true;
    }
    else
    {
        document.querySelector("#confirmer").style = "display: flex !important;";
    }

    document.getElementById('ConfirmToSubmit_Cancel').addEventListener('click', function()
    {
        document.querySelector("#confirmer").style = "display: none !important;";
    });
    document.getElementById('ConfirmToSubmit_OK').addEventListener('click', function()
    {
        document.querySelector("#confirmer").style = "display: none !important;";
        document.querySelector("#ConfirmToSubmit").style = "display: none !important;";

        const element = document.querySelector('.ui.center.aligned.vertical.segment > button:nth-of-type(2)');
        element.innerHTML = element.innerHTML.replace(new RegExp("若要提交代码,请先完成确认", 'gi'), '<i class="text">提交</i>' );
        document.querySelector('.ui.center.aligned.vertical.segment > button:nth-of-type(2)').disabled = "";
    });
}

function PowerfulLogin()
{
    document.querySelector('#login').insertAdjacentHTML('afterend', '<div class="ui fluid large submit button" id="LoginByCooie">使用曲奇登录</div>');
    document.querySelector('#login').insertAdjacentHTML('afterend', '<i class="text">或</i><div class="field"><div class="ui left icon input"></svg><i class="cookie icon"><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --><svg width="20px" height="20px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 16H9.01M12 11H12.01M7 10H7.01M15 16H15.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C12 5.76142 13.7909 8 16 8C16 10.2091 18.2386 12 21 12Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></i><input name="Cookie" placeholder="曲奇(Cookie)" id="Cookie"></div></div>');
    document.getElementById('LoginByCooie').addEventListener('click', LoginByCooie, false);
    document.getElementById('login').addEventListener('click', function(){document.cookie = "LoginByCookie=false"}, false);
}

function show_problem_tag(i)
{
    $('#statisticsNum_' + i).show()
    $('#statisticsPlaceholder_' + i).hide()
    $('#show_tag_controled_' + i).show()
}

function FindCookie(name)
{
    return document.cookie.replace(new RegExp("(?:(?:^|.*;\\s*)" + name + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1");
}

function ChangeBackground()
{
    var i = 1;
    while(document.querySelector("#_td" + i.toString()))
    {
        var element = document.querySelector("#_td" + i.toString());
        var newStyle = element.style.background.replaceAll("rgb(255, 255, 255)", "rgba(255, 255, 255, 0)").replace("rgb(255, 255, 255)", "rgba(255, 255, 255, 0)");
        element.style.background = newStyle;
        if(localStorage.getItem("ShowProblemTag") == "true")
        {
            document.getElementById("problem_cb_" + i.toString()).checked = true;
            show_problem_tag(i);
        }
        i++;
    }
}

function Onclick(id, Notcheckclick = false)
{
    console.log("check ID'" + id + "'");
    if (Notcheckclick || document.getElementById(id).checked == true)
    {
        console.log("checked");
        localStorage.setItem(id, true);
    }
    else
    {
        console.log("not checked");
        localStorage.setItem(id, false);
    }
}

var Name = ["背景图片", "自动跳转", "使用 Cookie 登录", "Cookie 登录提示(建议开启)", "强制显示题目标签", "内嵌 Tldraw 白板"];
var Id = ["Image", "Jump", "Cookie-Login", "Cookie-Tips", "ShowProblemTag", "Tldraw"];

//https://www.tldraw.com/

function TldrawWindows()
{
    document.querySelector('body').insertAdjacentHTML('beforeend', '<div class="ui dimmer modals page transition visible active" style="display: flex !important;" id="TldrawWin"><div class="ui modal transition visible active scrolling" id="__modal" style="width: 80%; height: 84%; display: block !important;"><div class="header"><div> Tldraw 白板 </div></div><div class="content" style="height: 88%"><iframe name="__iframe" id="__iframe" width="100%" height="100%" style="border: medium none" src="https://www.tldraw.com/"></iframe></div><div class="actions"><button class="ui cancel button primary" id="CloseTldrawWin"> 关闭 </button></div></div></div>');
    document.getElementById('CloseTldrawWin').addEventListener('click', function(){document.getElementById('TldrawWin').remove();}, false);
}

function SettingWindows()
{
    document.querySelector('body').insertAdjacentHTML('beforeend', '<div class="ui dimmer modals page transition visible active" style="display: flex !important;" id="setting"><div style="width: 80%; height: 84%; display: block !important;" id="" class="ui modal transition visible active scrolling"><div class="header" id="forList">插件设置</div><div class="content" style="overflow:auto; height: 88%"><div class="ui main container"><div class="padding"><div class="inline field"><label class="ui header">开启或关闭功能</label><br><br><br><div id="ChangeFunction"></div><div class="inline field"><label class="ui header">重置所有数据</label><br><br><div class="ui green cancel inverted button" id="DeteteAll"><i class="remove icon"></i>重置所有数据</div></div><div style="text-align: center; margin-top: 30px; "></div></div></div></div></div><div class="actions"><button id="SubmitSetting" type="submit" class="ui blue labeled icon button"><i class="ui  icon edit"></i>保存修改并重新加载页面</button><button class="ui labeled icon button" id="CloseSetting"><i class="ui icon angle left"></i>不保存</button></div></div></div>');

    const ChangeFunction = document.getElementById("ChangeFunction");
    for(var i = 0; i < Name.length; i++)
    {
        ChangeFunction.insertAdjacentHTML('beforeend', '<div class="ui toggle checkbox" style="margin-right: 20px; "><input type="checkbox" id="' + Id[i] + '"><label>' + Name[i] + '</label></div>');
        if(localStorage.getItem(Id[i]) == 'true')
        {
            document.getElementById(Id[i]).checked = true;
        }
    }

    ChangeFunction.insertAdjacentHTML('beforeend', '<br><br><div class="ui toggle text" style="margin-right: 20px; "><label class="ui header">自定义背景图片</label><br><br><br><textarea style="width: 1066px; height: 420px; resize: none;" rows="15" id="ImageDetail" name="content" class="markdown-edit"></textarea>');
    document.getElementById("ImageDetail").innerHTML = image.join("\n");
    document.getElementById('CloseSetting').addEventListener('click', function(){document.getElementById('setting').remove();}, false);
    document.getElementById('DeteteAll').addEventListener('click', function(){localStorage.removeItem("FirstUses");window.location.reload();}, false);
    document.getElementById('SubmitSetting').addEventListener('click',
    function()
    {
        for(var i = 0; i < Name.length; i++)
        {
            Onclick(Id[i])
        };
        var NewImage = document.getElementById("ImageDetail").value.split("\n");

        console.log("ImageDetail:");
        console.log(NewImage);
        localStorage.setItem('ImageDetail', JSON.stringify(NewImage));
        window.location.reload();
    }, false);
}

(function() {
    'use strict'

    if(localStorage.getItem("FirstUses") == null)
    {
        console.log("Welcome to use NFLSOJ Helper (For the first time)!");
        for(var i = 0; i < Name.length; i++)
        {
            Onclick(Id[i], true);
        }
        Onclick("FirstUses", true);
        localStorage.setItem('ImageDetail', JSON.stringify(DefaultImage));
    }

    image = JSON.parse(localStorage.getItem("ImageDetail"));
	window.setTimeout(ChangeBackground, 700);

    if(document.querySelector(".negative") && document.querySelector('.content>.header') && localStorage.getItem("Jump") == 'true')
    {
		const element = document.querySelector('.content>.header');
        element.innerHTML = element.innerHTML.replace(new RegExp("您没有权限进行此操作", 'gi'), '您没有权限进行此操作,3s后自动返回' );
        element.innerHTML = element.innerHTML.replace(new RegExp("您已经登录了,请先注销", 'gi'), '您已经登录了,请先注销,3s后自动返回' );
		window.setTimeout("window.history.back();", 3000);
    }
    else if(new RegExp("http://.*/login*").test(window.location.href.toString()) && localStorage.getItem("Cookie-Login") == 'true')
    {
        PowerfulLogin();
    }

    //var myCookie = document.cookie.replace(/(?:(?:^|.*;\s*)LoginByCookie\s*\=\s*([^;]*).*$)|^.*$/, "$1");
    if(FindCookie("LoginByCookie") == "true" && !new RegExp("http://.*/login*").test(window.location.href.toString()) && localStorage.getItem("Cookie-Tips"))
    {
        console.log("NFLSOJ helper:曲奇时间!");

        if(document.querySelector('body > div:has(.ui.main.container)'))
        {
            document.querySelector('body > div:has(.ui.main.container)').insertAdjacentHTML('afterbegin', '<div class="ui main container"><div class="ui positive icon message"><i class="cookie icon"><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --><svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 16H9.01M12 11H12.01M7 10H7.01M15 16H15.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C12 5.76142 13.7909 8 16 8C16 10.2091 18.2386 12 21 12Z" stroke="#1a531b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></i><div class="content"><div class="header" style="margin-bottom: 10px; ">Tips:您正在使用曲奇(Cookie)登录。</div></div><i class="cancel icon" style="color: #000000;margin-bottom: 20px;font-size: 1em;" id="CloseCookie"></i></div></div><br>');
        }
        else
        {
            document.querySelector('body').insertAdjacentHTML('afterbegin', '<div class="ui main container"><div class="ui positive icon message"><i class="cookie icon"><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --><svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 16H9.01M12 11H12.01M7 10H7.01M15 16H15.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C12 5.76142 13.7909 8 16 8C16 10.2091 18.2386 12 21 12Z" stroke="#1a531b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></i><div class="content"><div class="header" style="margin-bottom: 10px; ">Tips:您正在使用曲奇(Cookie)登录。</div></div><i class="cancel icon" style="color: #000000;margin-bottom: 20px;font-size: 1em;" id="CloseCookie"></i></div></div><br>');
        }
        document.getElementById('CloseCookie').addEventListener('click', function(){document.cookie = "LoginByCookie=false"; location.reload() }, false);
        const element = document.querySelector('.ui.center.aligned.vertical.segment > button');
        if(element && localStorage.getItem("Cookie-Tips") == 'true')
        {
            element.disabled = true;
            element.insertAdjacentHTML('beforebegin', '<button id="ConfirmToSubmit" class="ui labeled icon button"> <i class="ui checkmark icon"></i><i class="text">确认</i></button>');
            document.getElementById('ConfirmToSubmit').addEventListener('click', ConfirmToSubmit, false);
            element.innerHTML = element.innerHTML.replace(new RegExp("提交", 'gi'), '<i class="text">若要提交代码,请先完成确认</i>' );
        }
    }

    Move("首页");
    Move("题库");
    Move("课程 &amp; 比赛");
    Move("练习");
    Move("评测");
    Move("排名");
    Move("讨论");
    Move("帮助");
    Move("返回比赛");
    Move("修改资料");
    Move("上传视频");
    Move("后台管理");
    Move("重启服务");
    Move("注销");
    var RightMenu = document.querySelector('.ui.fixed.borderless.menu>div>.right.menu');

    if(RightMenu != undefined)
    {
        if(localStorage.getItem("Tldraw") == 'true')
        {
            RightMenu.insertAdjacentHTML('beforebegin', '<a class="item"  id="Tldraw_er"><i class="pencil icon"></i> <i class="text">Tldraw 白板</i></a>');
            document.getElementById('Tldraw_er').addEventListener('click', TldrawWindows, false);
        }

        RightMenu.insertAdjacentHTML('beforebegin', '<a class="item"  id="Setting"><i class="setting icon"></i> <i class="text">插件设置</i></a>');
        document.getElementById('Setting').addEventListener('click', SettingWindows, false);

        RightMenu.parentElement.insertAdjacentElement("afterend", RightMenu);
        RightMenu.parentElement.insertAdjacentElement("afterend", RightMenu);
        RightMenu.className = "ui borderless menu right menu";
        RightMenu.id = "RightMenu";
    }

    var css = "";
    if(localStorage.getItem("Image") == 'true')
    {
        const a = Math.floor(Math.random() * image.length);
        css += [
            "body{",
            "    background-image: url('" + image[a] + "');",
            "    background-repeat: no-repeat;",
            "    background-size: cover;",
            "    background-position: center;",
            "    background-attachment: fixed;",
            "}",
            "h1:first-child,.padding > h1{",
            "    color: white !important;",
            "}",
        ].join("\n");
    }

    if(localStorage.getItem("Opacity") == "false")
    {
        return;
    }

    if(new RegExp("http://.*/help*").test(window.location.href.toString()))
    {
        document.querySelector('.ui.main.container > .padding > div:first-of-type').className = "attached";
        document.querySelector('.ui.main.container > .padding > div:first-of-type').style = "font-content;padding: 10px 10px 10px 10px;";
    }

    if(document.querySelector("div.ui.fixed.borderless.menu") != undefined)
    {
        document.querySelector("div.ui.fixed.borderless.menu").style = "display: flex !important;flex-direction: column;align-items: center;";
        // document.querySelector("div.ui.fixed.borderless.menu").insertAdjacentHTML('afterbegin', '<a id="Unshow"><i class="long arrow alternate left icon"></i> <i class="text">隐藏</i></a>');
        document.querySelector("div.ui.container").removeAttribute("class");
        document.querySelector("body").removeAttribute("style");
    }
    if(new RegExp("http://.*/(admin*|videos*)").test(window.location.href.toString()))
    {
        css += [
            ".ui.main.container > .ui.grid{",
            "    transition-duration: 0.4s !important;",
            "    backdrop-filter: blur(10px) !important;",
            "    border-radius: 20px ;",
            "    background: rgba(255, 255, 255, .8) !important; ",
            "}",
            ".ui.main.container > .ui.grid:hover{",
            "    transition-duration: 0.4s !important;",
            "    background: rgba(255, 255, 255, .9) !important;",
            "}",
            ".ui.secondary.menu,.ui.tab.basic.segment.active{",
            "    transition-duration: 0.4s !important;",
            "    backdrop-filter: blur(10px) !important;",
            "    border-radius: 20px ;",
            "    background: rgba(255, 255, 255, .8) !important;",
            "}",
            ".ui.secondary.menu:hover,.ui.tab.basic.segment.active:hover{",
            "    background: rgba(255, 255, 255, .9) !important;",
            "}"
        ].join("\n");
    }
    css += [
        "#RightMenu {",
        "    width: 150px;",
        "    left: 1300px;",
        "    position: relative;",
        "}",
        "#Unshow {",
        "    display: block !important;",
        "}",
        "#Unshow > .long.arrow.alternate.left.icon{",
        "    width: auto;",
        "    display: block !important;",
        "}",
        "#ImageDetail {",
        "    margin: 0;",
        "    -webkit-appearance: none;",
        "    tap-highlight-color: rgba(255,255,255,0);",
        "    padding: .78571429em 1em;",
        "    background: #fff;",
        "    border: 1px solid rgba(34, 36, 38, .15);",
        "    outline: 0;",
        "    color: rgba(0, 0, 0, .87);",
        "    border-radius: .28571429rem;",
        "    -webkit-box-shadow: 0 0 0 0 transparent inset;",
        "    box-shadow: 0 0 0 0 transparent inset;",
        "    -webkit-transition: color .1s ease, border-color .1s ease;",
        "    transition: color .1s ease, border-color .1s ease;",
        "    font-size: 1em;",
        "    line-height: 1.2857;",
        "    resize: vertical;",
        "}",
        "#ImageDetail:focus {",
        "    color: rgba(0, 0, 0, .95);",
        "    border-color: #85b7d9;",
        "    border-radius: .28571429rem;",
        "    background: #fff;",
        "    -webkit-box-shadow: 0 0 0 0 rgba(34, 36, 38, .35) inset;",
        "    box-shadow: 0 0 0 0 rgba(34, 36, 38, .35) inset;",
        "    -webkit-appearance: none;",
        "}",
        "body{",
        "    margin-top: 0px !important;",
        "    height: 100% !important;",
        "    margin-left: 150px !important;",
        "    width: calc(100% - 150px) !important;",
        "}",
        ".cookie{",
        "    display: flex !important;",
        "    flex-wrap: wrap !important;",
        "    justify-content: center;",
        "    align-content: center !important;",
        "}",
        "/*边栏*/",
        ".ui.fixed.borderless.menu{",
        "    margin-top: 0.5% !important;",
        "    transform: scale(0.95, 0.95);",
        "    background: none;",
        "    width: auto !important;",
        "    height: auto !important;",
        "    position: fixed !important;",
        "    float: left !important;",
        "    backdrop-filter: blur(10px) !important;",
        "}",
        "#RightMenu, #RightMenu .menu{",
        "    display: flex;",
        "    background: none;",
        "    align-content: center;",
        "    justify-content: center;",
        "    flex-direction: column;",
        "    flex-wrap: wrap;",
        "    align-items: center;",
        "    backdrop-filter: blur(10px) !important;",
        "}",
        ".ui.fixed.borderless.menu div:not(#modal-restart){",
        "    display: flex;",
        "    background-attachment: revert;",
        "    align-content: center;",
        "    justify-content: center;",
        "    flex-direction: column;",
        "    flex-wrap: wrap;",
        "    align-items: center;",
        "    backdrop-filter: blur(10px) !important;",
        "}",
        // ".right.menu{",
        // "    position: fixed;",
        // "    right:100px;",
        // "    top: 0px!important;",
        // "    margin-top: 0px;",
        // "}",
        "/*边栏上的按钮*/",
        ".ui.fixed.borderless.menu > div > a:first-of-type{",
        "    width: 100px !important;",
        "    height: 100px !important;",
        "    border-radius: 50px !important;",
        "    background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/mj3q9q5d.png) !important;",
        "    background-repeat: no-repeat;",
        "    background-size: cover;",
        "    background-position: center;",
        "    background-attachment: revert;",
        "}",
        "#Setting, .ui.fixed.borderless.menu a, #RightMenu>div>div a{",
        "    border-radius: 20px !important;",
        "    backdrop-filter: blur(10px) !important;",
        "    transition-duration: 0.4s !important;",
        "    display: flex !important;",
        "    align-content: stretch;",
        "    flex-wrap: wrap;",
        "    flex-direction: column;",
        "    align-items: center;",
        "    justify-content: center;",
        "    background: none;",
        "}",
        ".ui.fixed.borderless.menu a:hover, #RightMenu>div>div a:hover{",
        "    box-shadow:1px 1px 10px #00000073;",
        "    background-color: white !important;",
        "}",
        ".text{",
        "    font-style:normal;",
        "}",
        ".ui.fixed.borderless.menu .icon, #RightMenu .icon{",
        "    color: #61eee9f5 !important;",
        "    display: flex !important;",
        "    justify-content: center;",
        "    align-items: center;",
        "    line-height: 1.5em;",
        "    font-size: 17px;",
        "    width: 100%;",
        "    margin: 0 !important;",
        "    transition: all 0.2s ease;",
        "}",
        ".ui.fixed.borderless.menu .text, #RightMenu .text{",
        "    color: #0e0063 !important;",
        "    display: flex !important;",
        "    justify-content: center;",
        "    align-items: center;",
        "    position: relative !important;",
        "    top: 10px;",
        "    opacity: 0;",
        "    margin-top: -0.4em;",
        "    display: block;",
        "    transition: all 0.8s ease;",
        "}",
        ".ui.fixed.borderless.menu  a:hover > .icon, #RightMenu>div>div a:hover > .icon{",
        "    color: #0e0063 !important;",
        "    line-height: 1.5em;",
        "    font-size: 17px;",
        "}",
        ".ui.fixed.borderless.menu  a:hover > .text, #RightMenu>div>div a:hover > .text{",
        "    color: #0e0063 !important;",
        "    opacity: 1;",
        "    margin-top: 0.4em;",
        "}",
        "/*回复*/",
        ".comment{",
        "    padding: 7px 7px 7px 7px !important;",
        "}",
        ".comments>.header{",
        "    padding: 7px 7px 7px 7px !important;",
        "}",
        "/*各种块*/",
		"#vueAppFuckSafari, #vueAppFuckSafari>table{",
        "    position: relative;",
        "    z-index: 3 !important; ",
        "}",
		".ui.mini.form,.item{",
        "    position: relative;",
        "    z-index: 12 !important; ",
        "}",
        ".form:not(.ui.main.container > .ui.grid .form),.comments:not(.comments.icon),.attached,.table:not(.attached .table, .ui.main.container > .ui.grid .table){",
        "    transition-duration: 0.4s !important;",
        "    backdrop-filter: blur(10px) !important;",
        "    border-radius: 20px ;",
        "    background: rgba(255, 255, 255, .8) !important; ",
        "}",
        ".form:hover:not(.ui.main.container > .ui.grid:hover .form),.comments:hover:not(.comments.icon:hover),.attached:hover,.table:hover:not(.attached:hover .table, .ui.main.container > .ui.grid:hover .table){",
        "    transition-duration: 0.4s !important;",
        "    background: rgba(255, 255, 255, .9) !important;",
        "}",
		".attached.header{",
        "    background: rgba(255, 255, 255, .85) !important; ",
        "}",
        ".field,.fields{",
        "    padding: 7px 7px 7px 7px !important;;",
        "}",
        "label{",
        "    padding-top: 15px; !important;",
        "    padding-bottom: 15px; !important;",
        "}",
        "div.inline.fields > label:first-of-type{",
        "    padding-left: 10px; !important;",
        "}",
        ".fields:not(.form .fields){",
        "    transition-duration: 0.4s !important;",
        "    backdrop-filter: blur(10px) !important;",
        "    border-radius: 5px;",
        "    background: rgba(255, 255, 255, .8) !important; ",
        "}",
        ".fields:hover:not(.form:hover .fields){",
        "    transition-duration: 0.4s !important;",
        "    background: rgba(255, 255, 255, .9) !important;",
        "    box-shadow: 5px 5px 5px #000;",
        "}",
        "::-webkit-scrollbar-thumb {",
        "    background-color: rgba(137, 81, 234, .99);",
        "}",
        "::-webkit-scrollbar-thumb:hover {",
        "    background-color: #5e72e4;",
        "}",
        ".ui[class*=\"very basic\"].table:not(.sortable):not(.striped) td:first-child, .ui[class*=\"very basic\"].table:not(.sortable):not(.striped) th:first-child {",
        "    padding-left: 10px !important;",
        "}",
        ".ui[class*=\"very basic\"].table:not(.sortable):not(.striped) thead tr:first-child th {",
        "    padding-top: 10px !important;",
        "}",
        "::-webkit-scrollbar {",
        "    width: 5px;",
        "    height: 10px;",
        "    background-color: rgba(0, 0, 0, .12);",
        "}",
    ].join("\n");

    var node = document.createElement("style");
    node.type = "text/css";
    node.appendChild(document.createTextNode(css));
    var heads = document.getElementsByTagName("head");
    if (heads.length > 0)
    {
        heads[0].appendChild(node);
    }
    else
    {
        document.documentElement.appendChild(node);
    }
})();
原文