Last active
January 16, 2023 19:45
-
-
Save babeuloula/30a8c0bd7159b7fcf9f95f0c46fbd1fd to your computer and use it in GitHub Desktop.
Remove Didomi cookie popup
This file contains 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 Didomi cookie popup remover | |
// @version 0.1 | |
// @description Remove didomi cookie popup | |
// @author BaBeuloula | |
// @match https://*/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== | |
let interval = null; | |
let removeDidomi = function() { | |
if (null !== document.querySelector('#didomi-host')) { | |
document.querySelector('#didomi-host').remove(); | |
document.querySelector('body').classList.remove('didomi-popup-open'); | |
} | |
clearInterval(interval); | |
} | |
interval = setInterval(removeDidomi, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment