关于在Edge无法看到“允许用户脚本”开关的问题 #2660
JinYihang1011
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📝 Edge Dev 版本中启用 Tampermonkey 用户脚本权限的解决方案(English version follows.)
🔍 问题描述
Edge Dev 版本跟随 Chrome 更新时,没有引入 "允许用户脚本" 开关,导致 Tampermonkey 等用户脚本管理器无法正常工作。目前 Edge Dev 版本以及普通版本中确实缺失此功能开关。
💡 临时解决方案
通过 Edge 开发者 API 手动启用用户脚本权限。此方法已在 Edge 普通版本 143.0.3650.96 (正式版本) (64 位)中测试有效。
操作步骤:
获取扩展ID
edge://extensions启用用户脚本权限
edge://extensions页面按F12打开开发者工具你的扩展ID替换为实际的扩展ID):重启浏览器
✅ 验证成功
Promise {<pending>} ... [[PromiseState]]: "fulfilled"表示操作成功edge://extensions→ 右上角开启)🔄 备选方案
📚 参考来源
📝 Solution to Enable Tampermonkey User Script Access in Edge Dev Version
🔍 Problem Description
When Edge Dev version follows Chrome updates, it does not introduce the "Allow user scripts" switch, causing user script managers like Tampermonkey to malfunction. Currently, the Edge Dev version indeed lacks this feature switch.
💡 Temporary Solution
Manually enable user script permissions via the Edge Developer API. This method has been tested and confirmed effective in Edge Dev version.
Steps:
Get the Extension ID
edge://extensionsEnable User Script Access
F12to open Developer Tools on theedge://extensionspageyour_extension_idwith the actual extension ID):Restart the Browser
✅ Verification of Success
Promise {<pending>} ... [[PromiseState]]: "fulfilled"indicating successful operationedge://extensions→ toggle on in the top-right corner)🔄 Alternative Solutions
📚 References
chrome.developerPrivateAPIHope Microsoft can add official support to Edge Dev soon! 🚀
If this method helps you, please 👍 like or share your experience. If you have any issues, feel free to discuss here.
All reactions