Skip to content

Commit

Permalink
name change
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori committed Mar 30, 2020
1 parent c79299d commit b4cdd22
Show file tree
Hide file tree
Showing 19 changed files with 126 additions and 119 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# 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)
```
____
___ ___ ___ ___ _____ _/ / /___
/ _ \/ _ `/ // / |/|/ / _ `/ / / __/
/ .__/\_,_/\_, /|__,__/\_,_/_/_/_/
/_/ /___/
paywall + r (emove)
```
> **Tear down this ~~wall~~ paywall!**
Read articles locked behind paywalls of over 40 german local newspapers.
Read articles locked behind paywalls of over 50 german newspapers.

This extension is provided for **educational purposes *only***. I do not endorse the use of it and **strongly** encourage you to subscribe to your favourite newspaper and support local journalism.

Expand Down
12 changes: 6 additions & 6 deletions browseraction.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// browser action
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//


20 changes: 10 additions & 10 deletions components/dumont.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// dumont newsnet component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

if (document.getElementsByClassName("content-behind-wall hide-paid-content")[0]) {
removeElements(document.getElementsByClassName("ssoTemplate pay wall"), document.getElementsByClassName("logo title backToLandingPage"));
document.getElementById('c1-template-platzhalter').remove();
document.getElementsByClassName("content-behind-wall hide-paid-content")[0].classList.remove("hide-paid-content")
if (d.getElementsByClassName("content-behind-wall hide-paid-content")[0]) {
removeElements(d.getElementsByClassName("ssoTemplate pay wall"), d.getElementsByClassName("logo title backToLandingPage"));
d.getElementById('c1-template-platzhalter').remove();
d.getElementsByClassName("content-behind-wall hide-paid-content")[0].classList.remove("hide-paid-content")
};
14 changes: 7 additions & 7 deletions components/faz/faz.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// faz component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//
const d = document;

let isPaidContent; // check if article is paid content
[...d.getElementsByTagName("script")].forEach(e => {
if(e.innerText == "\n (window.isPaidContent = true);\n") isPaidContent = true
Expand Down
12 changes: 6 additions & 6 deletions components/faz/useragent.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// faz user agent component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

chrome.webRequest.onBeforeSendHeaders.addListener(
Expand Down
12 changes: 6 additions & 6 deletions components/laterpay/blocker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// laterpay blocker component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

const laterpayPaywalls = [
Expand Down
14 changes: 7 additions & 7 deletions components/laterpay/deobfuscator.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// laterpay deobfuscator (rot13 25/-1) component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

const deobfuscateLaterpay = (s) => {
Expand All @@ -14,6 +14,6 @@ const deobfuscateLaterpay = (s) => {
"ABCDEFGHIJKLMNOPQRSTUVWXYZÅÝÀ[abcdefghijklmnopqrstuvwxyzåý÷à{-/.;=?0)*".indexOf(c)]);
};

[...document.getElementsByClassName("obfuscated")].forEach(a =>
[...d.getElementsByClassName("obfuscated")].forEach(a =>
a.innerText = deobfuscateLaterpay(a.innerText)
);
14 changes: 6 additions & 8 deletions components/laterpay/vrm.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// verlagsgruppe rhein-main component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//
// notes:
// vrm uses laterpay
//

const d = document;

// remove any meta tags with the laterpay config token on any change in document
const observer = new MutationObserver(function (mutations, me) {
[...d.getElementsByTagName("meta")].map(n => n.getAttribute("property") == "laterpay:connector:config_token" && n.remove());
Expand Down
14 changes: 7 additions & 7 deletions components/lensingmedia.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// lensing media component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//
// notes:
// blocking of tinypass script done in tinypass.js
//

// removes blur from content
document.getElementById("BaseText").classList.contains("PianoContent") && document.getElementById("BaseText").classList.remove("PianoContent");
d.getElementById("BaseText").classList.contains("PianoContent") && d.getElementById("BaseText").classList.remove("PianoContent");
13 changes: 6 additions & 7 deletions components/madsack.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// madsack component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

const d = document;
if (d.getElementsByClassName("pdb-article-paidcontent-registration")) {
d.getElementsByClassName("pdb-article-body-paidcontentintro")[0].classList.remove("pdb-article-body-paidcontentintro")
// throws an error in chrome, but important and works.
Expand Down
14 changes: 7 additions & 7 deletions components/saarbruecker-zeitung.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// saarbruecker zeitung component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

document.getElementById("park-webtrekk-paywall-hook").remove();
d.getElementById("park-webtrekk-paywall-hook").remove();
14 changes: 7 additions & 7 deletions components/shz.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// shz component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

[...document.getElementsByTagName("p")].map(n => n.classList.remove("blurred"));
[...d.getElementsByTagName("p")].forEach(n => n.classList.remove("blurred"));
14 changes: 7 additions & 7 deletions components/steady-cleanslate.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// steady cleanslate component
// nahvehrkehr & neue rottweiler zeitung
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

removeElements(document.getElementsByClassName("cleanslate"));
removeElements(d.getElementsByClassName("cleanslate"));
12 changes: 6 additions & 6 deletions components/tinypass.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// tinypass component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

const tinypassPaywalls = [
Expand Down
12 changes: 6 additions & 6 deletions components/zettgreen.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// ze.tt green component
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//
// notes:
// function ph.callIfNoPaywall is defined in header.js which also includes
Expand Down
14 changes: 8 additions & 6 deletions lib.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// standard library
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

const d = document;

// browser detection by rob-w on stackoverflow
// Firefox
const isFirefox = typeof InstallTrigger !== 'undefined';
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"manifest_version": 2,

"name": "Unpaywall",
"name": "paywallr",
"version": "2.0",
"author": "tobimori",

Expand Down Expand Up @@ -37,7 +37,7 @@
"96": "icons/icon-96.png",
"128": "icons/icon-128.png"
},
"default_title": "Unpaywall"
"default_title": "paywallr"
},

"permissions": [
Expand Down
12 changes: 6 additions & 6 deletions settings.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// settings content script
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

12 changes: 6 additions & 6 deletions settingslib.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// ____
// __ _____ ___ ___ ___ ___ _____ _/ / /
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
// /_/ /___/
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// settings library
// github.com/tobimori/unpaywall
// github.com/tobimori/paywallr
//

0 comments on commit b4cdd22

Please sign in to comment.