-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matches on content_script dont work #116
Comments
Hello there! Did you find a way to do that? |
the reproduction link is invalid, can u provide a new one? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello, first of all thank you very much for your contribution, it has helped me a lot.
I need my extension to work only on a specific URL (the whatsapp one) I needed the extension not to appear on other sites, nor the popup (or be disabled to click if it is outside whatsapp)
I tried adding "matches: ["*://web.whatsapp.com/"]," inside the content_scripts but it doesn't work, how would I do that?
it doesn't add any match statements to the manifest.json inside the extension folder.
There is no way to put a minimum reproduction in this case, because the "problem" happens after you put the extension in the browser
You can see my manifest.ts on the reproduction link.
As you can see, extension works on every page.
![CleanShot 2023-03-07 at 13 38 31@2x](https://user-images.githubusercontent.com/21159928/223488641-777680a5-f9e1-4d82-831e-cac73ffe0649.png)
Reproduction
https://stackblitz.com/github/antfu/vitesse-webext?file=src/manifest.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: