From 575d7c208e8a96933b6008db6f9e2905eff3505b Mon Sep 17 00:00:00 2001 From: YuanHui <31339626+alsesa@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:54:00 +0800 Subject: [PATCH] delete unused inject --- src-tauri/src/inject/custom.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src-tauri/src/inject/custom.js b/src-tauri/src/inject/custom.js index e930dc9..41193fa 100644 --- a/src-tauri/src/inject/custom.js +++ b/src-tauri/src/inject/custom.js @@ -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() {