Tampermonkey 脚本不能用,提示打开开发模式
https://www.tampermonkey.net/faq.php#Q209
Q209: 执行用户脚本的权限
A209 对于在基于 Chrome 的浏览器中使用 Tampermonkey 扩展(版本 5.3+)的用户,必须启用 “允许用户脚本”切换开关(在 Chrome 138+ 中可通过扩展设置找到)或 开发者模式。
为什么需要执行用户脚本的权限?
由于用户脚本的两步授权过程,需要额外的权限:userScripts 权限和切换开关或开发者模式。 仅有 userScripts 权限在安装时不会触发用户警告,反映了 Google 确保用户在运行使用用户脚本的扩展时做出明智决定的意图。
启用步骤
要启用这些设置:
在桌面版 Chrome/Edge 138+ 中:
- 右键点击 Tampermonkey 图标 **(1)**,选择“管理扩展程序” **(2)**,打开扩展设置。
Click the image to view it in full size - 找到并启用 “允许用户脚本”切换开关。
Click the image to view it in full size
在桌面版 Chrome/Edge 中:
- 在新标签页中访问
chrome://extensions或edge://extensions。
Click the image to view it in full size - 点击右上角的切换开关启用 开发者模式。
Click the image to view it in full size
在 Microsoft Edge Android 中:
- 按照下方图片中的步骤启用开发者模式。
Click the image to view it in full size
此操作可通过 Tampermonkey 启用 userScripts API 的使用。

Click the image to view it in full size
Click the image to view it in full size
Click the image to view it in full size
Click the image to view it in full size
Click the image to view it in full size
浙公网安备 33010602011771号