mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:07:47 +01: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) -
|
||||
[Börsen-Zeitung](https://www.boersen-zeitung.de) -
|
||||
[Cicero](https://www.cicero.de) -
|
||||
[Der Freitag](https://www.freitag.de) -
|
||||
[Der Spiegel (link to archive.is)](https://www.spiegel.de) -
|
||||
[Der Tagesspiegel (link to archive.is)](https://www.tagesspiegel.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
|
||||
|
||||
Post-release
|
||||
Add Freitag.de
|
||||
Add ilSecoloXIX.it (GEDI.it)
|
||||
Add Jazziz
|
||||
Add Jazzwise
|
||||
|
@ -13,6 +14,7 @@ Remove Madavor Media (domains obsolete)
|
|||
Fix El Periodico de Catalunya (Grupo Prensa Iberica)
|
||||
Fix Groupe Nice-Matin (css)
|
||||
Fix The Hill Times (ld_json_url)
|
||||
Fix The Japan Times (premium; link to 1ft.io)
|
||||
Fix TheTimes.co.uk (mobile scroll)
|
||||
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')) {
|
||||
let paywall = pageContains('h3.m-auto', 'Dieser Artikel ist nur mit Abo zugänglich.');
|
||||
if (paywall.length) {
|
||||
|
@ -4188,23 +4231,13 @@ else if (matchDomain('japantimes.co.jp')) {
|
|||
let paywall = document.querySelector('div.blocker > div.tp-container-inner');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall.parentNode);
|
||||
let json_script = getArticleJsonScript();
|
||||
if (json_script) {
|
||||
let json = JSON.parse(json_script.text);
|
||||
if (json) {
|
||||
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');
|
||||
if (article) {
|
||||
let url = window.location.href;
|
||||
article.firstChild.before(nftLink(url));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
} else
|
||||
ampToHtml();
|
||||
}
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.4.3.7"
|
||||
"version": "3.4.3.8"
|
||||
}
|
||||
|
|
|
@ -249,11 +249,6 @@
|
|||
"domain": "flz.de",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Freitag.de": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "freitag.de",
|
||||
"ld_json": "div.qa-paywall|div#x-article-text"
|
||||
},
|
||||
"Frieze.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "js\\.pelcro\\.com",
|
||||
|
|
|
@ -275,6 +275,7 @@
|
|||
"*://*.franc-tireur.fr/*",
|
||||
"*://*.freep.com/*",
|
||||
"*://*.freiepresse.de/*",
|
||||
"*://*.freitag.de/*",
|
||||
"*://*.fresnobee.com/*",
|
||||
"*://*.ft.com/*",
|
||||
"*://*.ftm.eu/*",
|
||||
|
@ -820,5 +821,5 @@
|
|||
"*://*.wyleex.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",
|
||||
remove_cookies_select_drop: ["lede_defector_user"]
|
||||
},
|
||||
"Der Freitag": {
|
||||
"domain": "freitag.de",
|
||||
"allow_cookies": 1
|
||||
},
|
||||
"Der Spiegel (link to archive.is)": {
|
||||
domain: "spiegel.de",
|
||||
allow_cookies: 1
|
||||
|
|
|
@ -12,6 +12,12 @@
|
|||
"block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)",
|
||||
"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": {
|
||||
"domain": "tagesspiegel.de",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue