From 06eede6db858c942c1cbd057c2466eeabc41b18e Mon Sep 17 00:00:00 2001 From: tobimori Date: Fri, 13 Mar 2020 17:16:20 +0100 Subject: [PATCH] Added NahverkehrHAMBURG --- README.md | 31 ++++++++++++++++--------------- components/nahverkehrhamburg.js | 1 + manifest.json | 19 ++++--------------- popout/popout.html | 1 + 4 files changed, 22 insertions(+), 30 deletions(-) create mode 100644 components/nahverkehrhamburg.js diff --git a/README.md b/README.md index b5b1f14..54dae5b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # unpaywall [![Mozilla Add-on](https://img.shields.io/amo/v/unpaywall-germany?style=flat-square&logo=mozilla-firefox)](https://addons.mozilla.org/firefox/addon/unpaywall-germany/?src=external-github-shield-downloads) -Read articles locked behind paywalls of over 40 german local newspapers. +Read articles locked behind paywalls of over 40 german local newspapers. This extension is provided for educational purposes only. I strongly encourage you to subscribe to your favourite newspaper and support local journalism. @@ -34,20 +34,21 @@ This extension is provided for educational purposes only. I strongly encourage y * [Peiner Allgemeine](https://www.paz-online.de/) * [Schaumburger Nachrichten](https://www.sn-online.de/) * [Allgemeine Zeitung](https://www.allgemeine-zeitung.de/) -* [Burgstädter Zeitung](https://www.buerstaedter-zeitung.de/) -* [Echo Online](https://www.echo-online.de/) -* [Mittelhessen.de](https://www.mittelhessen.de/) -* [Giessener Anzeiger](https://www.giessener-anzeiger.de/) -* [Hochheimer Zeitung](https://www.hochheimer-zeitung.de/) -* [Hofheimer Zeitung](https://www.hofheimer-zeitung.de/) -* [Wiesbadener Kurier](https://www.wiesbadener-kurier.de/) -* [Kreis-Anzeiger](https://www.kreis-anzeiger.de/) -* [Lampertheimer Zeitung](https://www.lampertheimer-zeitung.de/) -* [Lauterbacher Anzeiger](https://www.lauterbacher-anzeiger.de/) -* [Main-Spitze](https://www.main-spitze.de/) -* [Oberhessische Zeitung](https://www.oberhessische-zeitung.de/) -* [Usinger Anzeiger](https://www.usinger-anzeiger.de/) +* [Burgstädter Zeitung](https://www.buerstaedter-zeitung.de/) +* [Echo Online](https://www.echo-online.de/) +* [Mittelhessen.de](https://www.mittelhessen.de/) +* [Giessener Anzeiger](https://www.giessener-anzeiger.de/) +* [Hochheimer Zeitung](https://www.hochheimer-zeitung.de/) +* [Hofheimer Zeitung](https://www.hofheimer-zeitung.de/) +* [Wiesbadener Kurier](https://www.wiesbadener-kurier.de/) +* [Kreis-Anzeiger](https://www.kreis-anzeiger.de/) +* [Lampertheimer Zeitung](https://www.lampertheimer-zeitung.de/) +* [Lauterbacher Anzeiger](https://www.lauterbacher-anzeiger.de/) +* [Main-Spitze](https://www.main-spitze.de/) +* [Oberhessische Zeitung](https://www.oberhessische-zeitung.de/) +* [Usinger Anzeiger](https://www.usinger-anzeiger.de/) * [Wormser Zeitung](https://www.wormser-zeitung.de/) * [Saarbrücker Zeitung](https://www.saarbruecker-zeitung.de/) +* [NahverkehrHAMBURG](https://www.nahverkehrhamburg.de/) -Feel free to add support for new sites :) \ No newline at end of file +Feel free to add support for new sites. :) diff --git a/components/nahverkehrhamburg.js b/components/nahverkehrhamburg.js new file mode 100644 index 0000000..9d26301 --- /dev/null +++ b/components/nahverkehrhamburg.js @@ -0,0 +1 @@ +[...document.getElementsByClassName("cleanslate")].map(n => n.remove()); \ No newline at end of file diff --git a/manifest.json b/manifest.json index db75374..106ea47 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "manifest_version": 2, "name": "Unpaywall", - "version": "1.0", + "version": "1.1", "author": "tobimori", "description": "Read articles locked behind paywalls of over 40 german newspapers.", @@ -15,17 +15,6 @@ "96": "icons/icon-96.png", "128": "icons/icon-128.png" }, - - "browser_action": { - "default_popup": "popout/popout.html", - "default_icon": { - "32": "icons/icon-32.png", - "48": "icons/icon-48.png", - "64": "icons/icon-64.png", - "96": "icons/icon-96.png", - "128": "icons/icon-128.png" - } - }, "content_scripts": [ { @@ -94,10 +83,10 @@ "run_at": "document_start" }, { "matches": [ - "*://*.faz.net/*" + "*://*.nahverkehrhamburg.de/*" ], - "js": ["components/faz.js"], - "run_at": "document_end" + "js": ["components/nahverkehrhamburg.js"], + "run_at": "document_idle" } ] diff --git a/popout/popout.html b/popout/popout.html index ee3bcde..d8f4f3e 100644 --- a/popout/popout.html +++ b/popout/popout.html @@ -2,6 +2,7 @@ + Unpaywall