How do I limit the sites my extension runs on? #182
Answered
by
tmkx
CodyBontecou
asked this question in
Q&A
-
How can I limit the sites my extension runs on? I've attempted the following In my content_scripts: [
{
matches: [
'https://twitter.com/*',
'https://mobile.twitter.com/*',
'https://x.com/*',
],
js: [
'dist/contentScripts/index.global.js',
],
}
] But, it doesn't work. My extension is still loading and applying its effect on other tabs/domains. |
Beta Was this translation helpful? Give feedback.
Answered by
tmkx
Jun 27, 2024
Replies: 1 comment 1 reply
-
https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#static-declarative have you reloaded the extension after you changed the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CodyBontecou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#static-declarative
have you reloaded the extension after you changed the
matches
rules?