-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Lines 5 to 18 in bde05d2
| function inject() { | |
| browser.storage.local.get().then(store => { | |
| let javascript = store[location.host] | |
| if (!javascript) { | |
| return | |
| } | |
| let script = document.createElement("script") | |
| script.id = id() | |
| script.textContent = javascript | |
| document.body.append(script) | |
| }) | |
| } |
... is affected by CSP -
https://developer.mozilla.org/docs/Web/HTTP/CSP
I recommend using the browser.scripting API instead -
https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/scripting/executeScript
ismailsimsek
Metadata
Metadata
Assignees
Labels
No labels