Last active
September 27, 2025 15:05
-
-
Save rekire/9147bde8de5596749b576dcaac46dc26 to your computer and use it in GitHub Desktop.
I don't care about cosent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name I don't care about cosent | |
| // @version 1 | |
| // @grant none | |
| // @include /^https:// | |
| // @downloadURL https://gist.github.com/rekire/9147bde8de5596749b576dcaac46dc26/raw/no-consent.user.js | |
| // ==/UserScript== | |
| function clean() { | |
| document.getElementsByTagName('body')[0].style.overflow=null; | |
| let element = document.getElementsByClassName('pw-premium'); | |
| if(element.length > 0) { | |
| element[0].className = element[0].className.replace(/pw-premium/g, ''); | |
| } | |
| let element2 = document.getElementsByClassName('sp-message-open'); | |
| if(element2.length > 0) { | |
| element2[0].className = element2[0].className.replace(/sp-message-open/g, ''); | |
| } | |
| [...document.getElementsByTagName('div')].filter((e)=>(e.id||'').indexOf('sp_message_container')==0).forEach((e)=>e.style.display='none'); | |
| window.setTimeout(clean, 500); | |
| } | |
| clean(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install the Greasemonkey user script click this link.