mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:47:46 +01:00
Add group Mediahuis Noord
This commit is contained in:
parent
67ef039425
commit
b79721d226
6 changed files with 23 additions and 20 deletions
|
@ -543,14 +543,12 @@ Grouped in options:\
|
||||||
[La Nazione](https://www.lanazione.it)
|
[La Nazione](https://www.lanazione.it)
|
||||||
|
|
||||||
##### Netherlands/Flanders
|
##### Netherlands/Flanders
|
||||||
[Dagblad van het Noorden](https://www.dvhn.nl) -
|
|
||||||
[De Morgen](https://www.demorgen.be) -
|
[De Morgen](https://www.demorgen.be) -
|
||||||
[Financieele Dagblad](https://fd.nl) -
|
[Financieele Dagblad](https://fd.nl) -
|
||||||
[Follow the Money](https://www.ftm.nl) -
|
[Follow the Money](https://www.ftm.nl) -
|
||||||
[Groene Amsterdammer](https://www.groene.nl) -
|
[Groene Amsterdammer](https://www.groene.nl) -
|
||||||
[Humo](https://www.humo.be) -
|
[Humo](https://www.humo.be) -
|
||||||
[Knack](https://www.knack.be) -
|
[Knack](https://www.knack.be) -
|
||||||
[Leeuwarder Courant](https://www.lc.nl) -
|
|
||||||
[NRC Handelsblad](https://www.nrc.nl) -
|
[NRC Handelsblad](https://www.nrc.nl) -
|
||||||
[Parool](https://www.parool.nl) -
|
[Parool](https://www.parool.nl) -
|
||||||
[Telegraaf](https://www.telegraaf.nl) -
|
[Telegraaf](https://www.telegraaf.nl) -
|
||||||
|
@ -564,7 +562,10 @@ Grouped in options:\
|
||||||
[Haarlems Dagblad](https://www.haarlemsdagblad.nl) -
|
[Haarlems Dagblad](https://www.haarlemsdagblad.nl) -
|
||||||
[Leidsch Dagblad](https://www.leidschdagblad.nl) -
|
[Leidsch Dagblad](https://www.leidschdagblad.nl) -
|
||||||
[IJmuider Courant](https://www.ijmuidercourant.nl) -
|
[IJmuider Courant](https://www.ijmuidercourant.nl) -
|
||||||
[De Gooi- en Eemlander](https://www.gooieneemlander.nl)
|
[De Gooi- en Eemlander](https://www.gooieneemlander.nl)\
|
||||||
|
*Mediahuis Noord* sites like (opt-in to custom sites for unlisted):\
|
||||||
|
[Dagblad van het Noorden](https://www.dvhn.nl) -
|
||||||
|
[Leeuwarder Courant](https://www.lc.nl)
|
||||||
|
|
||||||
##### Portugal
|
##### Portugal
|
||||||
[Correio da Manhã](https://www.cmjornal.pt) -
|
[Correio da Manhã](https://www.cmjornal.pt) -
|
||||||
|
|
|
@ -810,6 +810,12 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
var fi_sanoma_sndp_domain = (matchUrlDomain('sanoma-sndp.fi', details.url) && ['xmlhttprequest'].includes(details.type) && !matchUrlDomain(fi_sanoma_domains, header_referer) && enabledSites.includes('###_fi_sanoma'));
|
var fi_sanoma_sndp_domain = (matchUrlDomain('sanoma-sndp.fi', details.url) && ['xmlhttprequest'].includes(details.type) && !matchUrlDomain(fi_sanoma_domains, header_referer) && enabledSites.includes('###_fi_sanoma'));
|
||||||
if (fi_sanoma_sndp_domain)
|
if (fi_sanoma_sndp_domain)
|
||||||
fi_sanoma_domains = customAddRules(fi_sanoma_domains, true, '', 'googlebot');
|
fi_sanoma_domains = customAddRules(fi_sanoma_domains, true, '', 'googlebot');
|
||||||
|
} else if (header_referer_hostname.endsWith('.nl')) {
|
||||||
|
// block Evolok for Mediahuis Noord sites (opt-in to custom sites)
|
||||||
|
var nl_mediahuis_noord_domains = [];
|
||||||
|
var nl_mediahuis_noord_domain = (matchUrlDomain('ndcmediagroep.nl', details.url) && ['script'].includes(details.type) && !matchUrlDomain(nl_mediahuis_noord_domains, header_referer) && enabledSites.includes('###_nl_mediahuis_noord'));
|
||||||
|
if (nl_mediahuis_noord_domain)
|
||||||
|
nl_mediahuis_noord_domains = customAddRules(nl_mediahuis_noord_domains, true, blockedRegexes['lc.nl']);
|
||||||
} else if (header_referer_hostname.match(/\.(ca|com|org)$/)) {
|
} else if (header_referer_hostname.match(/\.(ca|com|org)$/)) {
|
||||||
// block TinyPass for Postmedia Network sites
|
// block TinyPass for Postmedia Network sites
|
||||||
var ca_postmedia_domains = grouped_sites['###_ca_postmedia'];
|
var ca_postmedia_domains = grouped_sites['###_ca_postmedia'];
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Add group Mediahuis Noord (opt-in to custom sites for unlisted)
|
||||||
|
|
||||||
* v2.6.7.0 (2022-05-01)
|
* v2.6.7.0 (2022-05-01)
|
||||||
Add Puck.news
|
Add Puck.news
|
||||||
|
|
|
@ -1799,14 +1799,9 @@ else if (matchDomain(['knack.be', 'levif.be'])) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(["lc.nl", "dvhn.nl"])) {
|
else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
|
||||||
if (window.location.href.includes('?'))
|
|
||||||
window.location.href = window.location.href.split('?')[0];
|
|
||||||
});
|
|
||||||
let top_ad = document.querySelector('.top__ad');
|
let top_ad = document.querySelector('.top__ad');
|
||||||
let plus = document.querySelector('.plusJustRead');
|
removeDOMElement(top_ad);
|
||||||
removeDOMElement(top_ad, plus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(nl_mediahuis_region_domains)) {
|
else if (matchDomain(nl_mediahuis_region_domains)) {
|
||||||
|
|
|
@ -657,6 +657,7 @@
|
||||||
"*://*.mcclatchy-wires.com/*",
|
"*://*.mcclatchy-wires.com/*",
|
||||||
"*://*.mcclatchyinteractive.com/*",
|
"*://*.mcclatchyinteractive.com/*",
|
||||||
"*://*.natgeofe.com/*",
|
"*://*.natgeofe.com/*",
|
||||||
|
"*://*.ndcmediagroep.nl/*",
|
||||||
"*://*.nyt.com/*",
|
"*://*.nyt.com/*",
|
||||||
"*://*.pasedigital.cl/*",
|
"*://*.pasedigital.cl/*",
|
||||||
"*://*.postmedia.digital/*",
|
"*://*.postmedia.digital/*",
|
||||||
|
|
19
sites.js
19
sites.js
|
@ -282,11 +282,6 @@ var defaultSites = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Dagblad van het Noorden": {
|
|
||||||
domain: "dvhn.nl",
|
|
||||||
allow_cookies: 1,
|
|
||||||
block_regex: /\.evolok\.net\//
|
|
||||||
},
|
|
||||||
"Dagens Industri": {
|
"Dagens Industri": {
|
||||||
domain: "di.se",
|
domain: "di.se",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
|
@ -1003,11 +998,6 @@ var defaultSites = {
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /(api\.bntech\.io\/js\/|\.com\/shared-content\/art\/tncms\/user\/user\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
block_regex: /(api\.bntech\.io\/js\/|\.com\/shared-content\/art\/tncms\/user\/user\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||||
},
|
},
|
||||||
"Leeuwarder Courant": {
|
|
||||||
domain: "lc.nl",
|
|
||||||
allow_cookies: 1,
|
|
||||||
block_regex: /\.evolok\.net\//
|
|
||||||
},
|
|
||||||
"Les Échos": {
|
"Les Échos": {
|
||||||
domain: "lesechos.fr",
|
domain: "lesechos.fr",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
|
@ -1109,6 +1099,15 @@ var defaultSites = {
|
||||||
],
|
],
|
||||||
allow_cookies: 1
|
allow_cookies: 1
|
||||||
},
|
},
|
||||||
|
"Mediahuis Noord": {
|
||||||
|
domain: "###_nl_mediahuis_noord",
|
||||||
|
group: [
|
||||||
|
"dvhn.nl",
|
||||||
|
"lc.nl"
|
||||||
|
],
|
||||||
|
allow_cookies: 1,
|
||||||
|
block_regex: /\.evolok\.net\//
|
||||||
|
},
|
||||||
"MediaNama": {
|
"MediaNama": {
|
||||||
domain: "medianama.com",
|
domain: "medianama.com",
|
||||||
allow_cookies: 1
|
allow_cookies: 1
|
||||||
|
|
Loading…
Reference in a new issue