Merge pull request #420 from wanhose/v6.4.7

6.4.7
This commit is contained in:
wanhose 2024-02-24 18:26:06 +01:00 committed by GitHub
commit 444f50a130
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View File

@ -9929,8 +9929,6 @@ _evidon-barrier-wrapper
#f_cookie #f_cookie
#f-cookie-policy #f-cookie-policy
#f6-cp-cookiebanner #f6-cp-cookiebanner
#facebook > body > div.__fb-light-mode
#facebook-tracking-notice
#facerig-cookies #facerig-cookies
#faldon-cookies #faldon-cookies
#fancybox-overlay #fancybox-overlay

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Cookie Dialog Monster", "name": "Cookie Dialog Monster",
"version": "6.4.6", "version": "6.4.7",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_appDesc__", "description": "__MSG_appDesc__",
"icons": { "icons": {
@ -23,7 +23,9 @@
"all_frames": true, "all_frames": true,
"exclude_matches": [ "exclude_matches": [
"*://*.codesandbox.io/*", "*://*.codesandbox.io/*",
"*://*.facebook.com/*",
"*://*.googleapis.com/embed/*", "*://*.googleapis.com/embed/*",
"*://*.messenger.com/*",
"*://*.officeapps.live.com/*", "*://*.officeapps.live.com/*",
"*://*.sharepoint.com/*", "*://*.sharepoint.com/*",
"*://*.suite.office.com/*", "*://*.suite.office.com/*",

View File

@ -158,7 +158,6 @@ function match(element, skipMatch) {
function fix() { function fix() {
const backdrop = document.getElementsByClassName('modal-backdrop')[0]; const backdrop = document.getElementsByClassName('modal-backdrop')[0];
const facebook = document.getElementsByClassName('_31e')[0];
const fixes = data?.fixes ?? []; const fixes = data?.fixes ?? [];
const skips = (data?.skips ?? []).map((x) => (x.split('.').length < 3 ? `*${x}` : x)); const skips = (data?.skips ?? []).map((x) => (x.split('.').length < 3 ? `*${x}` : x));
@ -166,8 +165,6 @@ function fix() {
backdrop.remove(); backdrop.remove();
} }
facebook?.classList.remove('_31e');
for (const fix of fixes) { for (const fix of fixes) {
const [match, selector, action, property] = fix.split('##'); const [match, selector, action, property] = fix.split('##');
@ -193,7 +190,7 @@ function fix() {
} }
} }
if (skips.every((x) => !hostname.match(x.replace(/\*/g, '[^ ]*')))) { if (skips.every((x) => !hostname.match(x.replaceAll(/\*/g, '[^ ]*')))) {
for (const element of [document.body, document.documentElement]) { for (const element of [document.body, document.documentElement]) {
element?.classList.remove(...(data?.classes ?? [])); element?.classList.remove(...(data?.classes ?? []));
element?.style.setProperty('position', 'initial', 'important'); element?.style.setProperty('position', 'initial', 'important');