Greasy Fork

禁用控制台

disableControl

目前为 2021-08-04 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/430327/957135/%E7%A6%81%E7%94%A8%E6%8E%A7%E5%88%B6%E5%8F%B0.js

// ==UserScript==
// @name         禁用控制台
// @namespace    coderWyh
// @version      1.0
// @description  disableControl
// @author       coderWyh
// @match        http://www.gczl360.com:8084/Admin/ZLKGL/Template*
// @run-at       document-end
// ==/UserScript==
(function() {
    'use strict';
    setInterval(function() {
        check()
    }, 1500);
    var check = function() {
        function doCheck(a) {
            if (("" + a/a)["length"] !== 1 || a % 20 === 0) {
                (function() {}
                 ["constructor"]("debugger")())
            } else {
                (function() {}
                 ["constructor"]("debugger")())
            }
            doCheck(++a)
        }
        try {
            doCheck(0)
        } catch (err) {}
    };
    check();
})();