commit
7e5cf9cace
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Cookie Dialog Monster",
|
"name": "Cookie Dialog Monster",
|
||||||
"version": "5.4.0",
|
"version": "5.4.1",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_appDesc__",
|
"description": "__MSG_appDesc__",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
@ -79,6 +79,7 @@ const fix = () => {
|
|||||||
const automobiel = /automobielmanagement.nl/g.test(hostname);
|
const automobiel = /automobielmanagement.nl/g.test(hostname);
|
||||||
const body = document.body;
|
const body = document.body;
|
||||||
const facebook = document.getElementsByClassName("_31e")[0];
|
const facebook = document.getElementsByClassName("_31e")[0];
|
||||||
|
const frame = document.location.ancestorOrigins.length;
|
||||||
const google = document.querySelector('form[action*="consent.google"]');
|
const google = document.querySelector('form[action*="consent.google"]');
|
||||||
const html = document.documentElement;
|
const html = document.documentElement;
|
||||||
const play = hostname.startsWith("play.google.");
|
const play = hostname.startsWith("play.google.");
|
||||||
@ -95,10 +96,13 @@ const fix = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (body) {
|
if (body) {
|
||||||
if (classes.length) body.classList.remove(...classes);
|
body.classList.remove(...classes);
|
||||||
|
|
||||||
|
if (!frame) {
|
||||||
body.style.setProperty("overflow-y", "initial", "important");
|
body.style.setProperty("overflow-y", "initial", "important");
|
||||||
body.style.setProperty("position", "initial", "important");
|
body.style.setProperty("position", "initial", "important");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (facebook) {
|
if (facebook) {
|
||||||
facebook.style.setProperty("position", "initial", "important");
|
facebook.style.setProperty("position", "initial", "important");
|
||||||
@ -113,10 +117,13 @@ const fix = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (html) {
|
if (html) {
|
||||||
if (classes.length) html.classList.remove(...classes);
|
html.classList.remove(...classes);
|
||||||
|
|
||||||
|
if (!frame) {
|
||||||
html.style.setProperty("position", "initial", "important");
|
html.style.setProperty("position", "initial", "important");
|
||||||
html.style.setProperty("overflow-y", "initial", "important");
|
html.style.setProperty("overflow-y", "initial", "important");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (play) {
|
if (play) {
|
||||||
const node = document.querySelector("body > div");
|
const node = document.querySelector("body > div");
|
||||||
@ -181,14 +188,13 @@ const setupSelectors = () =>
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
document.addEventListener("readystatechange", () => {
|
document.addEventListener("readystatechange", () => {
|
||||||
if (document.readyState === "complete") {
|
dispatch({ hostname, type: "GET_CACHE" }, null, async ({ enabled }) => {
|
||||||
|
if (document.readyState === "complete" && enabled && !isConsentPreview) {
|
||||||
fix();
|
fix();
|
||||||
|
|
||||||
if (!isConsentPreview) {
|
|
||||||
clean();
|
clean();
|
||||||
setTimeout(clean, 2000);
|
setTimeout(clean, 2000);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user