NSSCTF去签

給NSSCTF去掉所有提示标签这样做题就不会一目了然了,如果没去掉说明jquery没联系上,没关系用着用着就好了。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         NSSCTF去签
// @namespace    https://www.nssctf.cn/*
// @version      1.5.1
// @description  給NSSCTF去掉所有提示标签这样做题就不会一目了然了,如果没去掉说明jquery没联系上,没关系用着用着就好了。
// @author	     少世
// @match        https://www.nssctf.cn/*
// @match        https://www.ctfer.vip/*
// @grant        unsafeWindow
// ==/UserScript==

(function() {
    'use strict';

    function addJQuery(callback) {
        var script = document.createElement("script");
        script.setAttribute("src", "https://code.jquery.com/jquery-3.6.0.min.js");
        script.addEventListener('load', function() {
            callback();
        });
        document.body.appendChild(script);
    }

    function main() {
        // 在此处编写您想要执行的控制台命令
        var consoleCommand = "setInterval(function() { $('.el-tag--light').remove(); })";
        var consoleCommands = "setInterval(function() { $('.el-tag--small').remove(); })";


        // 在油猴脚本中执行控制台命令
        function executeConsoleCommand(command) {
            if (typeof unsafeWindow !== 'undefined') {
                unsafeWindow.eval(command);
            }
        }

        // 在页面加载时执行控制台命令
        executeConsoleCommand(consoleCommand);
        executeConsoleCommand(consoleCommands);
    }

    addJQuery(main);
})();