commit
0f2f28f74c
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Cookie Dialog Monster",
|
"name": "Cookie Dialog Monster",
|
||||||
"version": "5.2.0",
|
"version": "5.2.1",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_appDesc__",
|
"description": "__MSG_appDesc__",
|
||||||
"icons": {
|
"icons": {
|
||||||
@ -20,6 +20,7 @@
|
|||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"all_frames": true,
|
"all_frames": true,
|
||||||
|
"css": ["styles/fixes.css"],
|
||||||
"exclude_matches": ["*://*.gfycat.com/*"],
|
"exclude_matches": ["*://*.gfycat.com/*"],
|
||||||
"js": ["scripts/content.js"],
|
"js": ["scripts/content.js"],
|
||||||
"matches": ["http://*/*", "https://*/*"],
|
"matches": ["http://*/*", "https://*/*"],
|
||||||
|
@ -55,8 +55,12 @@ const observer = new MutationObserver((mutations, instance) => {
|
|||||||
|
|
||||||
for (let j = mutation.addedNodes.length; j--; ) {
|
for (let j = mutation.addedNodes.length; j--; ) {
|
||||||
const node = mutation.addedNodes[j];
|
const node = mutation.addedNodes[j];
|
||||||
|
const valid =
|
||||||
|
node instanceof HTMLElement &&
|
||||||
|
node.parentElement &&
|
||||||
|
!["BODY", "HTML"].includes(node.tagName);
|
||||||
|
|
||||||
if (!(node instanceof HTMLElement)) continue;
|
if (!valid) continue;
|
||||||
|
|
||||||
if (node.matches(selectors)) node.outerHTML = "";
|
if (node.matches(selectors)) node.outerHTML = "";
|
||||||
}
|
}
|
||||||
|
3
styles/fixes.css
Normal file
3
styles/fixes.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
body > * {
|
||||||
|
filter: initial !important;
|
||||||
|
}
|
@ -1,5 +1,3 @@
|
|||||||
/* Globals */
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--color-chocolate: #47321e;
|
--color-chocolate: #47321e;
|
||||||
--color-cookie: #f2e9df;
|
--color-cookie: #f2e9df;
|
||||||
|
Loading…
Reference in New Issue
Block a user