mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:17:46 +01:00
Add Wiwo.de
This commit is contained in:
parent
1c2842b6e8
commit
2f8e5f26fa
6 changed files with 26 additions and 4 deletions
|
@ -503,7 +503,8 @@ Grouped in options:\
|
||||||
[Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) -
|
[Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) -
|
||||||
[Schweriner Volkszeitung](https://www.svz.de) -
|
[Schweriner Volkszeitung](https://www.svz.de) -
|
||||||
[Volksstimme](https://www.volksstimme.de) -
|
[Volksstimme](https://www.volksstimme.de) -
|
||||||
[Westdeutsche Zeitung](https://www.wz.de)
|
[Westdeutsche Zeitung](https://www.wz.de) -
|
||||||
|
[WirtschaftsWoche](https://www.wiwo.de)
|
||||||
|
|
||||||
Grouped in options:\
|
Grouped in options:\
|
||||||
*Funke Mediengruppe* sites like (opt-in to custom sites for unlisted)\
|
*Funke Mediengruppe* sites like (opt-in to custom sites for unlisted)\
|
||||||
|
|
|
@ -6,7 +6,7 @@ var ext_name = manifestData.name;
|
||||||
var ext_version = manifestData.version;
|
var ext_version = manifestData.version;
|
||||||
|
|
||||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk'].concat(de_westfalen_medien_domains);
|
const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk'].concat(de_westfalen_medien_domains);
|
||||||
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'golem.de', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lesechos.fr', 'limburger.nl', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spiegel.de', 'stratfor.com', 'tagesspiegel.de', 'techinasia.com', 'thetimes.co.uk', 'timesofindia.com', 'vn.nl', 'welt.de'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains);
|
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'golem.de', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lesechos.fr', 'limburger.nl', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spiegel.de', 'stratfor.com', 'tagesspiegel.de', 'techinasia.com', 'thetimes.co.uk', 'timesofindia.com', 'vn.nl', 'welt.de', 'wiwo.de'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains);
|
||||||
var currentTabUrl = '';
|
var currentTabUrl = '';
|
||||||
var csDone = false;
|
var csDone = false;
|
||||||
var optin_setcookie = false;
|
var optin_setcookie = false;
|
||||||
|
|
|
@ -6,6 +6,7 @@ Add Limburger.nl
|
||||||
Add Standaard.be
|
Add Standaard.be
|
||||||
Add SuomenSotilas.fi
|
Add SuomenSotilas.fi
|
||||||
Add Welt.de
|
Add Welt.de
|
||||||
|
Add Wiwo.de
|
||||||
Fix Australian Community Media (css)
|
Fix Australian Community Media (css)
|
||||||
Fix Spiegel.de (Google webcache)
|
Fix Spiegel.de (Google webcache)
|
||||||
Add Tagesspiegel.de
|
Add Tagesspiegel.de
|
||||||
|
|
|
@ -764,6 +764,21 @@ else if (matchDomain('welt.de')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('wiwo.de')) {
|
||||||
|
let url = window.location.href;
|
||||||
|
let paywall = document.querySelector('div.o-paywall');
|
||||||
|
if (paywall) {
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
csDoneOnce = true;
|
||||||
|
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
|
||||||
|
replaceDomElementExt(url_cache, true, false, 'div.o-article__content');
|
||||||
|
window.setTimeout(function () {
|
||||||
|
let ads = document.querySelectorAll('div[class^="c-advertisment"]');
|
||||||
|
removeDOMElement(...ads);
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain(de_westfalen_medien_domains)) {
|
else if (matchDomain(de_westfalen_medien_domains)) {
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
if (url.includes('/amp/')) {
|
if (url.includes('/amp/')) {
|
||||||
|
@ -4262,7 +4277,7 @@ function replaceDomElementExtSrc(url, html, proxy, base64, selector, text_fail =
|
||||||
}
|
}
|
||||||
let parser = new DOMParser();
|
let parser = new DOMParser();
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
let doc = parser.parseFromString(DOMPurify.sanitize(html, {ADD_ATTR: ['layout', 'itemprop'], ADD_TAGS: ['amp-img']}), 'text/html');
|
let doc = parser.parseFromString(DOMPurify.sanitize(html, {ADD_ATTR: ['layout', 'itemprop'], ADD_TAGS: ['amp-img', 'iframe']}), 'text/html');
|
||||||
//console.log(DOMPurify.removed);
|
//console.log(DOMPurify.removed);
|
||||||
let article_new = doc.querySelector(selector_source);
|
let article_new = doc.querySelector(selector_source);
|
||||||
if (article_new) {
|
if (article_new) {
|
||||||
|
|
|
@ -644,6 +644,7 @@
|
||||||
"*://*.westfalen-blatt.de/*",
|
"*://*.westfalen-blatt.de/*",
|
||||||
"*://*.winnipegfreepress.com/*",
|
"*://*.winnipegfreepress.com/*",
|
||||||
"*://*.wired.com/*",
|
"*://*.wired.com/*",
|
||||||
|
"*://*.wiwo.de/*",
|
||||||
"*://*.wn.de/*",
|
"*://*.wn.de/*",
|
||||||
"*://*.womenshealthmag.com/*",
|
"*://*.womenshealthmag.com/*",
|
||||||
"*://*.womensrunning.com/*",
|
"*://*.womensrunning.com/*",
|
||||||
|
|
6
sites.js
6
sites.js
|
@ -1996,6 +1996,10 @@ var defaultSites = {
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /(account\.winnipegfreepress\.com\/api\/v\d\/auth\/identify|cdn\.cxense\.com\/)/
|
block_regex: /(account\.winnipegfreepress\.com\/api\/v\d\/auth\/identify|cdn\.cxense\.com\/)/
|
||||||
},
|
},
|
||||||
|
"WirtschaftsWoche": {
|
||||||
|
domain: "wiwo.de",
|
||||||
|
allow_cookies: 1
|
||||||
|
},
|
||||||
"World Politics Review": {
|
"World Politics Review": {
|
||||||
domain: "worldpoliticsreview.com",
|
domain: "worldpoliticsreview.com",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
|
@ -2164,4 +2168,4 @@ var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];
|
||||||
|
|
||||||
// sites with no fix (background)
|
// sites with no fix (background)
|
||||||
var nl_dpg_media_nofix_domains = ['ad.nl', 'bd.nl', 'bndestem.nl', 'destentor.nl', 'ed.nl', 'gelderlander.nl', 'hln.be', 'pzc.nl', 'tubantia.nl'];
|
var nl_dpg_media_nofix_domains = ['ad.nl', 'bd.nl', 'bndestem.nl', 'destentor.nl', 'ed.nl', 'gelderlander.nl', 'hln.be', 'pzc.nl', 'tubantia.nl'];
|
||||||
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.dk', 'publico.pt', 'republic.ru', 'rp-online.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'wiwo.de', 'ynet.co.il'].concat(nl_dpg_media_nofix_domains);
|
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.dk', 'publico.pt', 'republic.ru', 'rp-online.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'ynet.co.il'].concat(nl_dpg_media_nofix_domains);
|
||||||
|
|
Loading…
Reference in a new issue