diff --git a/manifest.json b/manifest.json index 60df540..6eef585 100644 --- a/manifest.json +++ b/manifest.json @@ -35,7 +35,7 @@ "name": "v_jstools", "version": "0.0.0", "description": "v_jstools js hook工具", - "permissions": ["storage", "unlimitedStorage", "activeTab", "tabs", "debugger", "storage", "contextMenus", "http://*/*", "https://*/*", "cookies"], + "permissions": ["storage", "unlimitedStorage", "activeTab", "tabs", "debugger", "storage", "contextMenus", "http://*/*", "https://*/*", "cookies", "proxy"], "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", "browser_action": { "default_popup": "popup.html" diff --git a/options.html b/options.html index 97a9dd9..167e9cf 100644 --- a/options.html +++ b/options.html @@ -117,9 +117,11 @@
- +
+
+
这里的功能:在目标网页上右键菜单选择 “打开 v_jstools 动态调试” 即可开启,使用用插件的方式 hook 住目标页面的所有代码,像是在 node 里面一样使用 ast 将原始的代码修改成期望的样子
diff --git a/options.js b/options.js index 68b3ed8..30f3335 100644 --- a/options.js +++ b/options.js @@ -553,3 +553,7 @@ proxy_js.addEventListener("click", function(){ code_model.value = clear_mode(mk_proxy_code) }) +// var proxy_config = document.getElementById('proxy_config'); +// proxy_config.addEventListener("change", function(v){ +// v.target.value +// }) \ No newline at end of file