mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:27:48 +01:00
Remove Sueddeutsche Zeitung (obsolete)
This commit is contained in:
parent
3207a8924c
commit
002f648487
6 changed files with 2 additions and 34 deletions
|
@ -365,7 +365,6 @@ Grouped in options:\
|
|||
[Sächsische Zeitung](https://www.saechsische.de) -
|
||||
[Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) -
|
||||
[Schweriner Volkszeitung](https://www.svz.de) -
|
||||
[Süddeutsche Zeitung](https://www.sueddeutsche.de) -
|
||||
[Westfalen-Blatt](https://www.westfalen-blatt.de) -
|
||||
[Westfälische Nachrichten](https://www.wn.de)
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ const restrictions = {
|
|||
'repubblica.it': /^((?!\/video\.repubblica\.it\/).)*$/,
|
||||
'seekingalpha.com': /.+\/seekingalpha\.com\/($|(amp\/)?(article|news)\/|samw\/)/,
|
||||
'statista.com': /^((?!\.statista\.com\/(outlook|study)\/).)*$/,
|
||||
'sueddeutsche.de': /^((?!(projekte|zeitung)\.sueddeutsche\.de\/).)*$/,
|
||||
'techinasia.com': /\.techinasia\.com\/.+/,
|
||||
'timeshighereducation.com': /.+\.timeshighereducation\.com\/(sites\/default\/files\/|.+((\w)+(\-)+){3,}.+)/
|
||||
}
|
||||
|
@ -151,7 +150,6 @@ var allow_cookies_default = [
|
|||
'stratfor.com',
|
||||
'study.com',
|
||||
'sudouest.fr',
|
||||
'sueddeutsche.de',
|
||||
'svz.de',
|
||||
'tampabay.com',
|
||||
'techinasia.com',
|
||||
|
@ -1277,7 +1275,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
let usa_today_site = (matchUrlDomain('gannett-cdn.com', details.url) && matchUrlDomain(['usatoday.com'], header_referer));
|
||||
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || es_elesp_site || it_repubblica_site || usa_law360_site || usa_mw_site || usa_natgeo_site || usa_today_site;
|
||||
|
||||
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['aachener-zeitung.de', 'asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'economist.com', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'ft.com', 'handelsblatt.com', 'ilfattoquotidiano.it', 'inc42.com', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'scmp.com', 'seekingalpha.com', 'shz.de', 'staradvertiser.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk', 'washingtonpost.com', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(amp_unhide, au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
|
||||
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['aachener-zeitung.de', 'asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'economist.com', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'ft.com', 'handelsblatt.com', 'ilfattoquotidiano.it', 'inc42.com', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'scmp.com', 'seekingalpha.com', 'shz.de', 'staradvertiser.com', 'svz.de', 'telegraph.co.uk', 'washingtonpost.com', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(amp_unhide, au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
|
||||
}
|
||||
|
||||
if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_swm_site) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Remove Sueddeutsche Zeitung (obsolete)
|
||||
Fix ABC.es (Evolok)
|
||||
Fix Business Standard
|
||||
Fix Il Tirreno (GElocal.it)
|
||||
|
|
|
@ -561,34 +561,6 @@ else if (matchDomain(['ruhrnachrichten.de', 'hellwegeranzeiger.de'])) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('sueddeutsche.de')) {
|
||||
let url = window.location.href;
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let offer_page = document.querySelector('div.offer-page');
|
||||
if (url.startsWith('https://www.sueddeutsche.de') && (url.includes('reduced=true') || offer_page))
|
||||
window.location.href = url.split('?')[0].split('!')[0].replace('www.', 'amphtml.');
|
||||
else if (url.startsWith('https://sz-magazin.sueddeutsche.de')) {
|
||||
if (url.includes('reduced=true') || offer_page)
|
||||
window.location.href = new URL(url).pathname + '!amp';
|
||||
}
|
||||
});
|
||||
window.setTimeout(function () {
|
||||
if (url.includes('!amp')) {
|
||||
let paragraph_reduced = document.querySelector('.paragraph--reduced');
|
||||
if (paragraph_reduced)
|
||||
paragraph_reduced.classList.remove('paragraph--reduced');
|
||||
let paragraph_hidden = document.querySelectorAll('.paragraph--hidden');
|
||||
for (let par_hidden of paragraph_hidden)
|
||||
par_hidden.classList.remove('paragraph--hidden');
|
||||
let paragraph_dynamic = document.querySelector('.paragraph--dynamic');
|
||||
if (paragraph_dynamic)
|
||||
paragraph_dynamic.classList.remove('paragraph--dynamic');
|
||||
let amp_offerpage = document.querySelector('.amp-offerpage');
|
||||
removeDOMElement(amp_offerpage);
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
else if (matchDomain(['westfalen-blatt.de', 'wn.de'])) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('/amp/')) {
|
||||
|
|
|
@ -430,7 +430,6 @@
|
|||
"*://*.study.com/*",
|
||||
"*://*.sudinfo.be/*",
|
||||
"*://*.sudouest.fr/*",
|
||||
"*://*.sueddeutsche.de/*",
|
||||
"*://*.sun-sentinel.com/*",
|
||||
"*://*.svz.de/*",
|
||||
"*://*.talouselama.fi/*",
|
||||
|
|
1
sites.js
1
sites.js
|
@ -227,7 +227,6 @@ var defaultSites =
|
|||
"Stratfor": "stratfor.com",
|
||||
"Study.com (no videos)": "study.com",
|
||||
"Sud Ouest": "sudouest.fr",
|
||||
"Süddeutsche Zeitung": "sueddeutsche.de",
|
||||
"Tampa Bay Times": "tampabay.com",
|
||||
"Tech in Asia": "techinasia.com",
|
||||
"Telegraaf": "telegraaf.nl",
|
||||
|
|
Loading…
Reference in a new issue