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,
|
||||
"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://*/*"],
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user