diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e693165 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +release diff --git a/data/elements.txt b/data/elements.txt index 8c0fe5b..e5ecd55 100644 --- a/data/elements.txt +++ b/data/elements.txt @@ -12509,4 +12509,4 @@ body > .page-container > .flex > #header > aside.bg-light.color-main.full-width. .zbottom-cookie-container-outer module-rgpd-component .consent.consent__side--right-bottom -iframe[src="https://www.tumblr.com/dashboard/iframe/consent"] \ No newline at end of file +iframe[src="https://www.tumblr.com/dashboard/iframe/consent"] diff --git a/manifest.json b/manifest.json index 886d4f9..c0ad2ba 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Cookie Dialog Monster", - "version": "5.4.5", + "version": "5.4.6", "default_locale": "en", "description": "__MSG_appDesc__", "icons": { @@ -22,8 +22,9 @@ "exclude_matches": [ "*://*.gfycat.com/*", "*://*.gmx.com/*", + "*://*.mediathekviewweb.de/*", "*://*.rundschau-online.de/*", - "*://*.mediathekviewweb.de/*" + "*://*.youtube.com/embed/*" ], "js": ["scripts/content.js"], "matches": ["http://*/*", "https://*/*"], diff --git a/scripts/content.js b/scripts/content.js index 81d32e8..13e74ac 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -93,20 +93,23 @@ const fix = () => { if (hostname.includes(match)) { switch (action) { - case "click": - const submit = document.querySelector(selector); - submit?.click?.(); - break; - case "reset": + case "click": { const node = document.querySelector(selector); - node?.style?.setProperty?.(property, "initial", "important"); - break; - case "resetAll": + node?.click(); + } + case "remove": { + const node = document.querySelector(selector); + node?.style?.removeProperty(property); + } + case "reset": { + const node = document.querySelector(selector); + node?.style?.setProperty(property, "initial", "important"); + } + case "resetAll": { const nodes = document.querySelectorAll(selector); - nodes.forEach((node) => - node?.style?.setProperty?.(property, "initial", "important") - ); - break; + // prettier-ignore + nodes.forEach((node) => node?.style?.setProperty(property, "initial", "important")); + } default: break; }