您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allow to use Developer Tools on some website which use the debugger to break it.
当前为
// ==UserScript== // @name Allow F12 // @name:zh-CN 允许使用 F12 // @namespace http://lab.wsl.moe/ // @match http://*/* // @match https://*/* // @license WTFPL // @version 0.1 // @description Allow to use Developer Tools on some website which use the debugger to break it. // @description:zh-cn 令某些打开 Developer Tools 的网站就弹 debugger 的功能失效。 // @author MisakaMikoto // @run-at document-start // @grant none // ==/UserScript== (function() { const originalConsole = {}; for (let k in console) { originalConsole[k] = console[k]; } const setConsoleFunc = () => { for (let k in originalConsole) { console[k] = originalConsole[k]; } } setInterval(() => { setConsoleFunc(); }, 1000); })();