Skip to content

Instantly share code, notes, and snippets.

@babeuloula
Last active January 16, 2023 19:45
Show Gist options
  • Save babeuloula/30a8c0bd7159b7fcf9f95f0c46fbd1fd to your computer and use it in GitHub Desktop.
Save babeuloula/30a8c0bd7159b7fcf9f95f0c46fbd1fd to your computer and use it in GitHub Desktop.
Remove Didomi cookie popup
// ==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