-
Notifications
You must be signed in to change notification settings - Fork 0
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
Tamperish not working with domains restricting styles injection via Content-Security-Policy
#12
Comments
You are very correct 👍 it's caused by the security setup of the site set by the HTTP
which effectively causes the
I guess Tamperish could read & respect this value, and use it during injection if a |
Okay 😄 if you also add a Script tamper like this: window.addEventListener('load', function() {
var nonce = document.head.querySelector('meta[name="style-nonce"]').content
var style = document.head.querySelector('style[id^="_tamperish__adjustments"]')
var parent = style.parentNode
parent.removeChild(style)
style.setAttribute('nonce', nonce)
parent.appendChild(style)
}) you should be good for now. 👌 It'll tweak the |
Content-Security-Policy
WOOO! IT WORKSS!!!!! ❤️__❤️ Thanks! |
I'm having trouble getting the Tamperish extension to work with ".online" domains. I've even created a custom CSS file to apply styles to all web pages, but the styles aren't applied to websites with the ".online" TLD.
I've tried the following troubleshooting steps:
Additional context:
Could you please investigate this issue? And let me know if you need any further information. :) :)
The text was updated successfully, but these errors were encountered: