Add feature to bypass Content Security Policy - #7
Conversation
As pointed out by @deatondg in #6, some sites have a CSP that prevents userscripts from running properly. This PR makes it possible to either bypass the CSP specifically for any userscripts that are injected (inline or not) or disable the CSP altogether whenever a userscript is injected. The latter is often necessary because userscripts tend to inject at least one resource into the page, be it an external image or just some inline CSS. Resolves #6. Co-authored-by: deatondg <deaton.dg@gmail.com>
|
The one thing I'm not really sure about is the default value of So I'm kind of torn between security and usability here. Right now, I'm actually leaning towards going with |
|
|
|
I have changed the default value to |
|
This looks excellent and completely addresses my use case. Thanks! |
|
I have now pushed v1.1.0 to Docker Hub! 🙂 |
As pointed out by @deatondg in #6, some sites have a CSP that prevents
userscripts from running properly. This PR makes it possible to either
bypass the CSP specifically for any userscripts that are injected
(inline or not) or disable the CSP altogether whenever a userscript is
injected. The latter is often necessary because userscripts tend to
inject at least one resource into the page, be it an external image or
just some inline CSS.
Resolves #6.
Co-authored-by: deatondg deaton.dg@gmail.com