commit
c2f3402e14
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.DS_Store
|
||||||
|
release
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Cookie Dialog Monster",
|
"name": "Cookie Dialog Monster",
|
||||||
"version": "5.4.5",
|
"version": "5.4.6",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_appDesc__",
|
"description": "__MSG_appDesc__",
|
||||||
"icons": {
|
"icons": {
|
||||||
@ -22,8 +22,9 @@
|
|||||||
"exclude_matches": [
|
"exclude_matches": [
|
||||||
"*://*.gfycat.com/*",
|
"*://*.gfycat.com/*",
|
||||||
"*://*.gmx.com/*",
|
"*://*.gmx.com/*",
|
||||||
|
"*://*.mediathekviewweb.de/*",
|
||||||
"*://*.rundschau-online.de/*",
|
"*://*.rundschau-online.de/*",
|
||||||
"*://*.mediathekviewweb.de/*"
|
"*://*.youtube.com/embed/*"
|
||||||
],
|
],
|
||||||
"js": ["scripts/content.js"],
|
"js": ["scripts/content.js"],
|
||||||
"matches": ["http://*/*", "https://*/*"],
|
"matches": ["http://*/*", "https://*/*"],
|
||||||
|
@ -93,20 +93,23 @@ const fix = () => {
|
|||||||
|
|
||||||
if (hostname.includes(match)) {
|
if (hostname.includes(match)) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case "click":
|
case "click": {
|
||||||
const submit = document.querySelector(selector);
|
|
||||||
submit?.click?.();
|
|
||||||
break;
|
|
||||||
case "reset":
|
|
||||||
const node = document.querySelector(selector);
|
const node = document.querySelector(selector);
|
||||||
node?.style?.setProperty?.(property, "initial", "important");
|
node?.click();
|
||||||
break;
|
}
|
||||||
case "resetAll":
|
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);
|
const nodes = document.querySelectorAll(selector);
|
||||||
nodes.forEach((node) =>
|
// prettier-ignore
|
||||||
node?.style?.setProperty?.(property, "initial", "important")
|
nodes.forEach((node) => node?.style?.setProperty(property, "initial", "important"));
|
||||||
);
|
}
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user