From 7f36f7277614eee153e88eaeba11cddc411ff68d Mon Sep 17 00:00:00 2001 From: tobimori Date: Thu, 12 Mar 2020 14:38:15 +0100 Subject: [PATCH] Structure update --- {js => components}/dumont.js | 0 {js => components}/funke.js | 3 ++- {js => components}/laterpay-vrm.js | 0 {js => components}/madsack.js | 0 {js => components}/saarbruecker-zeitung.js | 0 main.js | 0 manifest.json | 10 +++++----- 7 files changed, 7 insertions(+), 6 deletions(-) rename {js => components}/dumont.js (100%) rename {js => components}/funke.js (80%) rename {js => components}/laterpay-vrm.js (100%) rename {js => components}/madsack.js (100%) rename {js => components}/saarbruecker-zeitung.js (100%) create mode 100644 main.js diff --git a/js/dumont.js b/components/dumont.js similarity index 100% rename from js/dumont.js rename to components/dumont.js diff --git a/js/funke.js b/components/funke.js similarity index 80% rename from js/funke.js rename to components/funke.js index d593f44..7b8d8f4 100644 --- a/js/funke.js +++ b/components/funke.js @@ -2,7 +2,8 @@ const d = document; const observer = new MutationObserver(function (mutations, me) { if (d.getElementsByClassName('article__header__headline ispayedcontent')) { - [...d.getElementsByTagName("script")].map(n => n.remove()); + [...d.getElementsByTagName("script")].map(n => + console.log(n) + n.remove()); [...d.getElementsByClassName("paging__wrapper")].map(n => n.remove()); [...d.getElementsByClassName("pager pager__bottom")].map(n => n.remove()); } diff --git a/js/laterpay-vrm.js b/components/laterpay-vrm.js similarity index 100% rename from js/laterpay-vrm.js rename to components/laterpay-vrm.js diff --git a/js/madsack.js b/components/madsack.js similarity index 100% rename from js/madsack.js rename to components/madsack.js diff --git a/js/saarbruecker-zeitung.js b/components/saarbruecker-zeitung.js similarity index 100% rename from js/saarbruecker-zeitung.js rename to components/saarbruecker-zeitung.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..e69de29 diff --git a/manifest.json b/manifest.json index eda6422..0986474 100644 --- a/manifest.json +++ b/manifest.json @@ -32,7 +32,7 @@ "*://*.ostsee-zeitung.de/*", "*://*.paz-online.de/*", "*://*.sn-online.de/*"], - "js": ["js/madsack.js"], + "js": ["components/madsack.js"], "run_at": "document_end" }, { "matches": [ @@ -40,7 +40,7 @@ "*://*.rundschau-online.de/*", "*://*.mz-web.de/*" ], - "js": ["js/dumont.js"], + "js": ["components/dumont.js"], "run_at": "document_idle" }, { "matches": [ @@ -53,13 +53,13 @@ "*://*.otz.de/*", "*://*.morgenpost.de/*" ], - "js": ["js/funke.js"], + "js": ["components/funke.js"], "run_at": "document_start" }, { "matches": [ "*://*.saarbruecker-zeitung.de/*" ], - "js": ["js/saarbruecker-zeitung.js"], + "js": ["components/saarbruecker-zeitung.js"], "run_at": "document_idle" }, { "matches": [ @@ -79,7 +79,7 @@ "*://*.usinger-anzeiger.de/*", "*://*.wormser-zeitung.de/*" ], - "js": ["js/laterpay-vrm.js"], + "js": ["components/laterpay-vrm.js"], "run_at": "document_start" } ]