运行 chrome://settings 和类似 url 上的用户脚本
run user script on chrome://settings and similar urls
为什么 tampermonkey 对 chrome://history/
或 chrome://settings/
等 URL 不起作用? 运行 这个页面上的用户脚本有什么办法吗?
不幸的是,这是不可能的,因为 chrome
方案 (chrome://
) 在 @match
的能力中不受支持。
UserScripts 也使用 Chrome 的 match
规范,因此 Chrome 扩展也不会起作用。
来自链接规范:
Host permissions and content script matching are based on a set of URLs defined by match patterns. A match pattern is essentially a URL that begins with a permitted scheme (http
, https
, file
, or ftp
, and that can contain '*
' characters).
为什么 tampermonkey 对 chrome://history/
或 chrome://settings/
等 URL 不起作用? 运行 这个页面上的用户脚本有什么办法吗?
不幸的是,这是不可能的,因为 chrome
方案 (chrome://
) 在 @match
的能力中不受支持。
UserScripts 也使用 Chrome 的 match
规范,因此 Chrome 扩展也不会起作用。
来自链接规范:
Host permissions and content script matching are based on a set of URLs defined by match patterns. A match pattern is essentially a URL that begins with a permitted scheme (
http
,https
,file
, orftp
, and that can contain '*
' characters).