mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 04:53:48 +02:00
Add Freitag.de
Fix The Japan Times (premium)
This commit is contained in:
parent
b4ba2baaa3
commit
1df902a7ba
8 changed files with 64 additions and 22 deletions
|
@ -597,6 +597,7 @@ Grouped in options:\
|
||||||
[Bild der Wissenschaft](https://www.wissenschaft.de) -
|
[Bild der Wissenschaft](https://www.wissenschaft.de) -
|
||||||
[Börsen-Zeitung](https://www.boersen-zeitung.de) -
|
[Börsen-Zeitung](https://www.boersen-zeitung.de) -
|
||||||
[Cicero](https://www.cicero.de) -
|
[Cicero](https://www.cicero.de) -
|
||||||
|
[Der Freitag](https://www.freitag.de) -
|
||||||
[Der Spiegel (link to archive.is)](https://www.spiegel.de) -
|
[Der Spiegel (link to archive.is)](https://www.spiegel.de) -
|
||||||
[Der Tagesspiegel (link to archive.is)](https://www.tagesspiegel.de) -
|
[Der Tagesspiegel (link to archive.is)](https://www.tagesspiegel.de) -
|
||||||
[Die Welt (link to archive.is)](https://www.welt.de) -
|
[Die Welt (link to archive.is)](https://www.welt.de) -
|
||||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Add Freitag.de
|
||||||
Add ilSecoloXIX.it (GEDI.it)
|
Add ilSecoloXIX.it (GEDI.it)
|
||||||
Add Jazziz
|
Add Jazziz
|
||||||
Add Jazzwise
|
Add Jazzwise
|
||||||
|
@ -13,6 +14,7 @@ Remove Madavor Media (domains obsolete)
|
||||||
Fix El Periodico de Catalunya (Grupo Prensa Iberica)
|
Fix El Periodico de Catalunya (Grupo Prensa Iberica)
|
||||||
Fix Groupe Nice-Matin (css)
|
Fix Groupe Nice-Matin (css)
|
||||||
Fix The Hill Times (ld_json_url)
|
Fix The Hill Times (ld_json_url)
|
||||||
|
Fix The Japan Times (premium; link to 1ft.io)
|
||||||
Fix TheTimes.co.uk (mobile scroll)
|
Fix TheTimes.co.uk (mobile scroll)
|
||||||
Update popup (fix toggle for custom flex sites)
|
Update popup (fix toggle for custom flex sites)
|
||||||
|
|
||||||
|
|
|
@ -850,6 +850,49 @@ else if (matchDomain('freiepresse.de')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('freitag.de')) {
|
||||||
|
let paywall = document.querySelector('div.qa-paywall');
|
||||||
|
if (paywall) {
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
let related = document.querySelector('div.c-teaser-plus-related--paywall');
|
||||||
|
if (related)
|
||||||
|
related.classList.remove('c-teaser-plus-related--paywall');
|
||||||
|
let article = document.querySelector('div#x-article-text');
|
||||||
|
if (article) {
|
||||||
|
let json_script = getArticleJsonScript();
|
||||||
|
if (json_script) {
|
||||||
|
let json = JSON.parse(json_script.text);
|
||||||
|
if (json) {
|
||||||
|
let json_text = breakText(json.articleBody);
|
||||||
|
let pars = json_text.split(/\n\n/g);
|
||||||
|
if (json_text) {
|
||||||
|
let intro = article.querySelectorAll('p');
|
||||||
|
removeDOMElement(...intro);
|
||||||
|
let article_new = document.createElement('div');
|
||||||
|
for (let par of pars) {
|
||||||
|
let par_new = document.createElement('p');
|
||||||
|
par_new.innerText = par;
|
||||||
|
article_new.appendChild(par_new);
|
||||||
|
}
|
||||||
|
article.appendChild(article_new);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
let hidden_article = document.querySelector('div.o-paywall');
|
||||||
|
if (hidden_article) {
|
||||||
|
article.appendChild(document.createTextNode('> > >'));
|
||||||
|
let pars = breakText(hidden_article.innerText).split(/\n\n/g);
|
||||||
|
for (let par of pars) {
|
||||||
|
let par_new = document.createElement('p');
|
||||||
|
par_new.innerText = par;
|
||||||
|
article.appendChild(par_new);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('jacobin.de')) {
|
else if (matchDomain('jacobin.de')) {
|
||||||
let paywall = pageContains('h3.m-auto', 'Dieser Artikel ist nur mit Abo zugänglich.');
|
let paywall = pageContains('h3.m-auto', 'Dieser Artikel ist nur mit Abo zugänglich.');
|
||||||
if (paywall.length) {
|
if (paywall.length) {
|
||||||
|
@ -4188,23 +4231,13 @@ else if (matchDomain('japantimes.co.jp')) {
|
||||||
let paywall = document.querySelector('div.blocker > div.tp-container-inner');
|
let paywall = document.querySelector('div.blocker > div.tp-container-inner');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
removeDOMElement(paywall.parentNode);
|
removeDOMElement(paywall.parentNode);
|
||||||
let json_script = getArticleJsonScript();
|
let article = document.querySelector('div.article-body');
|
||||||
if (json_script) {
|
if (article) {
|
||||||
let json = JSON.parse(json_script.text);
|
let url = window.location.href;
|
||||||
if (json) {
|
article.firstChild.before(nftLink(url));
|
||||||
let json_text = json.articleBody;
|
|
||||||
let article = document.querySelector('div.article-body');
|
|
||||||
if (json_text && article) {
|
|
||||||
let article_new = document.createElement('p');
|
|
||||||
article_new.innerText = breakText(json_text);
|
|
||||||
article.innerHTML = '';
|
|
||||||
article.appendChild(article_new);
|
|
||||||
article.classList.remove('blurred-text');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 2000);
|
||||||
} else
|
} else
|
||||||
ampToHtml();
|
ampToHtml();
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.4.3.7"
|
"version": "3.4.3.8"
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,11 +249,6 @@
|
||||||
"domain": "flz.de",
|
"domain": "flz.de",
|
||||||
"useragent": "googlebot"
|
"useragent": "googlebot"
|
||||||
},
|
},
|
||||||
"Freitag.de": {
|
|
||||||
"allow_cookies": 1,
|
|
||||||
"domain": "freitag.de",
|
|
||||||
"ld_json": "div.qa-paywall|div#x-article-text"
|
|
||||||
},
|
|
||||||
"Frieze.com": {
|
"Frieze.com": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"block_regex": "js\\.pelcro\\.com",
|
"block_regex": "js\\.pelcro\\.com",
|
||||||
|
|
|
@ -275,6 +275,7 @@
|
||||||
"*://*.franc-tireur.fr/*",
|
"*://*.franc-tireur.fr/*",
|
||||||
"*://*.freep.com/*",
|
"*://*.freep.com/*",
|
||||||
"*://*.freiepresse.de/*",
|
"*://*.freiepresse.de/*",
|
||||||
|
"*://*.freitag.de/*",
|
||||||
"*://*.fresnobee.com/*",
|
"*://*.fresnobee.com/*",
|
||||||
"*://*.ft.com/*",
|
"*://*.ft.com/*",
|
||||||
"*://*.ftm.eu/*",
|
"*://*.ftm.eu/*",
|
||||||
|
@ -820,5 +821,5 @@
|
||||||
"*://*.wyleex.com/*",
|
"*://*.wyleex.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.4.3.7"
|
"version": "3.4.3.8"
|
||||||
}
|
}
|
||||||
|
|
4
sites.js
4
sites.js
|
@ -477,6 +477,10 @@ var defaultSites = {
|
||||||
domain: "defector.com",
|
domain: "defector.com",
|
||||||
remove_cookies_select_drop: ["lede_defector_user"]
|
remove_cookies_select_drop: ["lede_defector_user"]
|
||||||
},
|
},
|
||||||
|
"Der Freitag": {
|
||||||
|
"domain": "freitag.de",
|
||||||
|
"allow_cookies": 1
|
||||||
|
},
|
||||||
"Der Spiegel (link to archive.is)": {
|
"Der Spiegel (link to archive.is)": {
|
||||||
domain: "spiegel.de",
|
domain: "spiegel.de",
|
||||||
allow_cookies: 1
|
allow_cookies: 1
|
||||||
|
|
|
@ -12,6 +12,12 @@
|
||||||
"block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)",
|
"block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)",
|
||||||
"upd_version": "3.2.7.1"
|
"upd_version": "3.2.7.1"
|
||||||
},
|
},
|
||||||
|
"Der Freitag": {
|
||||||
|
"domain": "freitag.de",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"ld_json": "div.qa-paywall|div#x-article-text",
|
||||||
|
"upd_version": "3.4.3.8"
|
||||||
|
},
|
||||||
"Der Tagesspiegel": {
|
"Der Tagesspiegel": {
|
||||||
"domain": "tagesspiegel.de",
|
"domain": "tagesspiegel.de",
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
|
|
Loading…
Reference in a new issue