commit
8d60e48a60
@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Cookie Dialog Monster",
|
||||
"version": "7.3.1",
|
||||
"version": "7.3.2",
|
||||
"default_locale": "en",
|
||||
"description": "__MSG_appDesc__",
|
||||
"icons": {
|
||||
|
@ -40,7 +40,7 @@ if (typeof browser === 'undefined') {
|
||||
* @description Actions done by the extension
|
||||
* @type {Set<string>}
|
||||
*/
|
||||
let actions = new Set();
|
||||
const actions = new Set();
|
||||
|
||||
/**
|
||||
* @description Data object with all the necessary information
|
||||
@ -237,10 +237,6 @@ function match(element, skipMatch) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (element.getAttribute(dataAttributeName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (seen.has(element)) {
|
||||
return false;
|
||||
}
|
||||
@ -303,9 +299,10 @@ function fix() {
|
||||
const domains = skips.domains.map((x) => (x.split('.').length < 3 ? `*${x}` : x));
|
||||
|
||||
for (const backdrop of backdrops) {
|
||||
if (backdrop.children.length === 0 && !backdrop.hasAttribute(dataAttributeName)) {
|
||||
if (backdrop.children.length === 0 && !seen.has(backdrop)) {
|
||||
actions.add(new Date().getTime().toString());
|
||||
backdrop.setAttribute(dataAttributeName, 'true');
|
||||
seen.add(backdrop);
|
||||
hide(backdrop);
|
||||
}
|
||||
}
|
||||
|
||||
@ -439,6 +436,19 @@ async function setUp(params = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Wait for the body to exist
|
||||
* @param {void} callback
|
||||
* @returns {void}
|
||||
*/
|
||||
async function setUpAfterWaitForBody() {
|
||||
if (document.body) {
|
||||
await setUp();
|
||||
} else {
|
||||
setTimeout(setUpAfterWaitForBody, 50);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Mutation Observer instance
|
||||
* @type {MutationObserver}
|
||||
@ -467,18 +477,6 @@ browser.runtime.onMessage.addListener(async (message) => {
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @async
|
||||
* @description Fix still existing elements when page loads
|
||||
* @listens window#DOMContentLoaded
|
||||
* @returns {void}
|
||||
*/
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
if (document.visibilityState === 'visible') {
|
||||
await setUp();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @description Fix bfcache issues
|
||||
* @listens window#pageshow
|
||||
@ -492,7 +490,7 @@ window.addEventListener('pageshow', async (event) => {
|
||||
|
||||
/**
|
||||
* @async
|
||||
* @description Run run if the page wasn't visible yet
|
||||
* @description Run if the page wasn't visited yet
|
||||
* @listens window#visibilitychange
|
||||
* @returns {void}
|
||||
*/
|
||||
@ -502,3 +500,10 @@ window.addEventListener('visibilitychange', async () => {
|
||||
await setUp();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @description Run as soon as possible, if the user is in front of the page
|
||||
*/
|
||||
if (document.visibilityState === 'visible') {
|
||||
setUpAfterWaitForBody();
|
||||
}
|
||||
|
@ -21,6 +21,10 @@
|
||||
{
|
||||
"version": "7.3.1",
|
||||
"update_link": "https://www.cookie-dialog-monster.com/releases/7.3.1-mozilla-mobile.xpi"
|
||||
},
|
||||
{
|
||||
"version": "7.3.2",
|
||||
"update_link": "https://www.cookie-dialog-monster.com/releases/7.3.2-mozilla-mobile.xpi"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -53,6 +53,10 @@
|
||||
{
|
||||
"version": "7.3.1",
|
||||
"update_link": "https://www.cookie-dialog-monster.com/releases/7.3.1.xpi"
|
||||
},
|
||||
{
|
||||
"version": "7.3.2",
|
||||
"update_link": "https://www.cookie-dialog-monster.com/releases/7.3.2.xpi"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
BIN
packages/web/src/releases/7.3.2-mozilla-mobile.xpi
Normal file
BIN
packages/web/src/releases/7.3.2-mozilla-mobile.xpi
Normal file
Binary file not shown.
BIN
packages/web/src/releases/7.3.2.xpi
Normal file
BIN
packages/web/src/releases/7.3.2.xpi
Normal file
Binary file not shown.
BIN
packages/web/src/releases/7.3.2.zip
Normal file
BIN
packages/web/src/releases/7.3.2.zip
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user