delete unused inject

This commit is contained in:
YuanHui
2025-12-18 12:54:00 +08:00
parent fa5ad535da
commit 575d7c208e

View File

@@ -1,14 +1,14 @@
// --- 1. 屏蔽无限 debugger (防止控制台卡死) ---
(function() {
var _constructor = window.Function.prototype.constructor;
window.Function.prototype.constructor = function(str) {
if (str === 'debugger') return function() {};
return _constructor.apply(this, arguments);
};
})();
// (function() {
// var _constructor = window.Function.prototype.constructor;
// window.Function.prototype.constructor = function(str) {
// if (str === 'debugger') return function() {};
// return _constructor.apply(this, arguments);
// };
// })();
// --- 2. 解除右键拦截 ---
window.addEventListener('contextmenu', (e) => e.stopPropagation(), true);
// window.addEventListener('contextmenu', (e) => e.stopPropagation(), true);
// --- 3. 自动隐藏/显示顶栏和侧边栏 (原生 JS 实现) ---
(function() {