问题
Why doesn't tampermonkey work on urls such as chrome://history/ or chrome://settings/? Any way to run an user script on this pages as well?
回答1:
Unfortunately, this isn't possible, because the chrome scheme (chrome://) isn't supported in @match's abilities.
UserScripts also use Chrome's match spec, so a Chrome extension to do that wouldn't work either.
From the linked spec:
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).
来源:https://stackoverflow.com/questions/41732961/tampermonkey-script-doesnt-work