kakaolover21
(kakaolover21@proton.me)
1
Hello forum, I have a noob question:
There is this basic error coming up with all basic extensions I’m testing:
My Extensions “Can’t read and edit Data on this website”
Even this basic tutorial doesn’t work: Your first extension - Mozilla | MDN
I reainstalled Firefox and also deleted all the settings files. Still.
What could it be?
Thanks so much, Kakaoboy
zombie
(Tomislav Jovanovic)
2
Which page are you testing this on? That example should only work on https://mozilla.org.
kakaolover21
(kakaolover21@proton.me)
3
Hey @zombie thanks for answering.
I’m testing on all kind of sites. You said, it should only work on Mozillla.org.
Why is that so?
How can I make it work on all sites?
Thanks for your support.
zombie
(Tomislav Jovanovic)
4
That example has a content script which only targets mozilla.org:
"content_scripts": [
{
"matches": ["*://*.mozilla.org/*"],
"js": ["borderify.js"]
}
]
You can change that using a different match pattern: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns