Merge pull request #905 from wanhose/v7.2.4

7.2.4
This commit is contained in:
wanhose 2024-09-09 23:16:52 +02:00 committed by GitHub
commit 66062ae898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 41 additions and 23 deletions

View File

@ -296,7 +296,7 @@
}, },
{ {
"action": "click", "action": "click",
"domain": "consent.google.com", "domain": "consent.google",
"selector": "[aria-label=\"Alle ablehnen\"], [aria-label=\"Odrzuć wszystko\"], [aria-label=\"Rechazar todo\"], [aria-label=\"Recusar tudo\"], [aria-label=\"Reject all\"], [aria-label=\"Rejeitar tudo\"], [aria-label=\"Respinge tot\"], [aria-label=\"Rifiuta tutto\"], [aria-label=\"Tout refuser\"], [aria-label=\"Отклонить все\"]" "selector": "[aria-label=\"Alle ablehnen\"], [aria-label=\"Odrzuć wszystko\"], [aria-label=\"Rechazar todo\"], [aria-label=\"Recusar tudo\"], [aria-label=\"Reject all\"], [aria-label=\"Rejeitar tudo\"], [aria-label=\"Respinge tot\"], [aria-label=\"Rifiuta tutto\"], [aria-label=\"Tout refuser\"], [aria-label=\"Отклонить все\"]"
}, },
{ {
@ -306,7 +306,7 @@
}, },
{ {
"action": "click", "action": "click",
"domain": "consent.youtube.com", "domain": "consent.youtube",
"selector": "[aria-label=\"Alle ablehnen\"], [aria-label=\"Odrzuć wszystko\"], [aria-label=\"Rechazar todo\"], [aria-label=\"Recusar tudo\"], [aria-label=\"Reject all\"], [aria-label=\"Rejeitar tudo\"], [aria-label=\"Respinge tot\"], [aria-label=\"Rifiuta tutto\"], [aria-label=\"Tout refuser\"], [aria-label=\"Отклонить все\"]" "selector": "[aria-label=\"Alle ablehnen\"], [aria-label=\"Odrzuć wszystko\"], [aria-label=\"Rechazar todo\"], [aria-label=\"Recusar tudo\"], [aria-label=\"Reject all\"], [aria-label=\"Rejeitar tudo\"], [aria-label=\"Respinge tot\"], [aria-label=\"Rifiuta tutto\"], [aria-label=\"Tout refuser\"], [aria-label=\"Отклонить все\"]"
}, },
{ {
@ -481,6 +481,7 @@
"||chollometro.com/assets/js/CookiesMessage*.js^", "||chollometro.com/assets/js/CookiesMessage*.js^",
"||cmp.inmobi.com^", "||cmp.inmobi.com^",
"||consent.cookiebot.com^", "||consent.cookiebot.com^",
"||consent.cookiefirst.com^",
"||consent.trustarc.com^", "||consent.trustarc.com^",
"||consentcdn.cookiebot.com^", "||consentcdn.cookiebot.com^",
"||cookiehub.net^", "||cookiehub.net^",
@ -525,15 +526,19 @@
"ircan.org", "ircan.org",
"jobs.lever.co", "jobs.lever.co",
"key-shortcut.com", "key-shortcut.com",
"live.com",
"login.microsoftonline.com", "login.microsoftonline.com",
"mantisbt.org", "mantisbt.org",
"mein.stadtmobil.de", "mein.stadtmobil.de",
"mossgreen.github.io", "mossgreen.github.io",
"musicmeter.nl", "musicmeter.nl",
"office.com",
"office365.com",
"personio.com", "personio.com",
"restaurantguru.com", "restaurantguru.com",
"retroachievements.org", "retroachievements.org",
"seeklogo.com", "seeklogo.com",
"sharepoint.com",
"shuttledirect.com", "shuttledirect.com",
"sis.redsys.es", "sis.redsys.es",
"socialdeal.be", "socialdeal.be",
@ -5303,6 +5308,7 @@
".modal-ley-cookies", ".modal-ley-cookies",
".modal-mask-class", ".modal-mask-class",
".modal-strip[data-cookie]", ".modal-strip[data-cookie]",
".modal[aria-live=\"assertive\"]:has(.cookie-button)",
".modalcooky", ".modalcooky",
".modCookieBar", ".modCookieBar",
".modCookiesConsent", ".modCookiesConsent",
@ -6804,6 +6810,7 @@
"[class$=\"BandeauCookies\"]", "[class$=\"BandeauCookies\"]",
"[class$=\"UpdatePanelCookie\"]", "[class$=\"UpdatePanelCookie\"]",
"[cnn-cookie-policy]", "[cnn-cookie-policy]",
"[consent-skip-blocker][data-bg] > dialog",
"[consent-skip-blocker][data-bg]", "[consent-skip-blocker][data-bg]",
"[cookie-unique-name]", "[cookie-unique-name]",
"[css-main-site] #policy-div", "[css-main-site] #policy-div",
@ -13865,5 +13872,5 @@
"ytm-consent-bump-v2-renderer" "ytm-consent-bump-v2-renderer"
] ]
}, },
"version": "1725700173038" "version": "1725777170641"
} }

View File

@ -14,7 +14,7 @@
- All browsers based on Chromium 88+ (Blisk, Brave, Colibri, Epic Browser, Iron Browser, Vivaldi and many more) - All browsers based on Chromium 88+ (Blisk, Brave, Colibri, Epic Browser, Iron Browser, Vivaldi and many more)
- Google Chrome 109+ - Google Chrome 109+
- Microsoft Edge 109+ - Microsoft Edge 109+
- Mozilla Firefox 109+ - Mozilla Firefox 113+
- Mozilla Firefox Mobile 126+ - Mozilla Firefox Mobile 126+
## Installation (for Mozilla Firefox users) ## Installation (for Mozilla Firefox users)

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Cookie Dialog Monster", "name": "Cookie Dialog Monster",
"version": "7.2.3", "version": "7.2.4",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_appDesc__", "description": "__MSG_appDesc__",
"icons": { "icons": {
@ -22,7 +22,7 @@
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "{77e2c00b-e173-4604-863d-01645d8d2826}", "id": "{77e2c00b-e173-4604-863d-01645d8d2826}",
"strict_min_version": "109.0", "strict_min_version": "113.0",
"update_url": "https://www.cookie-dialog-monster.com/mozilla/updates.json" "update_url": "https://www.cookie-dialog-monster.com/mozilla/updates.json"
} }
}, },
@ -34,12 +34,7 @@
"*://*.codesandbox.io/*", "*://*.codesandbox.io/*",
"*://*.facebook.com/*", "*://*.facebook.com/*",
"*://*.googleapis.com/embed/*", "*://*.googleapis.com/embed/*",
"*://*.messenger.com/*",
"*://*.office365.com/*",
"*://*.officeapps.live.com/*",
"*://*.olympics.com/*", "*://*.olympics.com/*",
"*://*.sharepoint.com/*",
"*://*.suite.office.com/*",
"*://*.youtube-nocookie.com/embed/*", "*://*.youtube-nocookie.com/embed/*",
"*://*.youtube.com/embed/*", "*://*.youtube.com/embed/*",
"*://translate.google.ca/*", "*://translate.google.ca/*",

View File

@ -65,13 +65,13 @@ const refreshData = (callback) => {
const report = async (message, tab, callback) => { const report = async (message, tab, callback) => {
try { try {
const reason = message.reason; const reason = message.reason;
const url = message.url;
const userAgent = message.userAgent; const userAgent = message.userAgent;
const version = browser.runtime.getManifest().version; const version = browser.runtime.getManifest().version;
const body = JSON.stringify({ reason, url: tab.url, userAgent, version }); const body = JSON.stringify({ reason, url, userAgent, version });
const headers = { 'Cache-Control': 'no-cache', 'Content-type': 'application/json' }; const headers = { 'Cache-Control': 'no-cache', 'Content-type': 'application/json' };
const url = `${apiUrl}/report/`;
const response = await fetch(url, { body, headers, method: 'POST' }); const response = await fetch(`${apiUrl}/report/`, { body, headers, method: 'POST' });
callback?.((await response.json()).data); callback?.((await response.json()).data);
} catch { } catch {
console.error("Can't send report"); console.error("Can't send report");

View File

@ -125,8 +125,12 @@ function clean(elements, skipMatch) {
if (match(element, skipMatch)) { if (match(element, skipMatch)) {
const observer = new MutationObserver(forceElementStyles); const observer = new MutationObserver(forceElementStyles);
element.setAttribute(dataAttributeName, 'true'); if (element instanceof HTMLDialogElement) {
element.style.setProperty('display', 'none', 'important'); element.close();
} else {
element.setAttribute(dataAttributeName, 'true');
element.style.setProperty('display', 'none', 'important');
}
observer.observe(element, { observer.observe(element, {
attributes: true, attributes: true,
@ -185,8 +189,6 @@ function forceElementStyles(mutations, observer) {
if (value === null) { if (value === null) {
observer.disconnect(); observer.disconnect();
element.removeAttribute(dataAttributeName);
element.style.removeProperty('display');
} else { } else {
element.style.setProperty('display', 'none', 'important'); element.style.setProperty('display', 'none', 'important');
} }
@ -404,10 +406,13 @@ function restoreDOM() {
} }
} }
const elements = getElements(`[${dataAttributeName}]`); for (const element of removables) {
for (const element of elements) {
element.removeAttribute(dataAttributeName); element.removeAttribute(dataAttributeName);
element.style.removeProperty('display');
if (element instanceof HTMLDialogElement) {
element.showModal();
}
} }
for (const element of [document.body, document.documentElement]) { for (const element of [document.body, document.documentElement]) {
@ -500,7 +505,7 @@ browser.runtime.onMessage.addListener(async (message) => {
break; break;
} }
case 'RUN': { case 'RUN': {
await setUp({ skipRunFn: true }); await setUp({ skipRunFn: !!removables.length });
run({ elements: removables, skipMatch: true }); run({ elements: removables, skipMatch: true });
break; break;
} }

View File

@ -247,7 +247,6 @@ async function submitButtonClickHandler(event) {
const issueButton = dialog?.getElementsByClassName('report-dialog-issue-button')[0]; const issueButton = dialog?.getElementsByClassName('report-dialog-issue-button')[0];
const submitView = dialog?.getElementsByClassName('report-dialog-submit-view')[0]; const submitView = dialog?.getElementsByClassName('report-dialog-submit-view')[0];
const userAgent = window.navigator.userAgent; const userAgent = window.navigator.userAgent;
const issueUrl = await dispatch({ userAgent, reason: reasonText, url: urlText, type: 'REPORT' }); const issueUrl = await dispatch({ userAgent, reason: reasonText, url: urlText, type: 'REPORT' });
formView?.setAttribute('hidden', 'true'); formView?.setAttribute('hidden', 'true');

View File

@ -5,6 +5,14 @@
{ {
"version": "7.2.2", "version": "7.2.2",
"update_link": "https://www.cookie-dialog-monster.com/releases/7.2.2-mozilla-mobile.xpi" "update_link": "https://www.cookie-dialog-monster.com/releases/7.2.2-mozilla-mobile.xpi"
},
{
"version": "7.2.3",
"update_link": "https://www.cookie-dialog-monster.com/releases/7.2.3-mozilla-mobile.xpi"
},
{
"version": "7.2.4",
"update_link": "https://www.cookie-dialog-monster.com/releases/7.2.4-mozilla-mobile.xpi"
} }
] ]
} }

View File

@ -41,6 +41,10 @@
{ {
"version": "7.2.3", "version": "7.2.3",
"update_link": "https://www.cookie-dialog-monster.com/releases/7.2.3.xpi" "update_link": "https://www.cookie-dialog-monster.com/releases/7.2.3.xpi"
},
{
"version": "7.2.4",
"update_link": "https://www.cookie-dialog-monster.com/releases/7.2.4.xpi"
} }
] ]
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.