mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Fix Mediahuis Noord (regional)
This commit is contained in:
parent
16a14a4276
commit
5b83b6deb3
6 changed files with 10 additions and 22 deletions
|
@ -3,7 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||
|
||||
Post-release
|
||||
Add Delish, Elle Decor, Harper's Bazaar & Oprah Daily
|
||||
Add Delish, Elle Decor, Harper's Bazaar & Oprah Daily (Hearst)
|
||||
Add NWT Media.se (opt-in to custom sites)
|
||||
Add Stuttgarter-zeitung.de
|
||||
Remove Aftonbladet.se (fix obsolete)
|
||||
|
@ -15,6 +15,7 @@ Remove Quillette (fix obsolete)
|
|||
Remove Tagesspiegel.de (fix obsolete)
|
||||
Fix BusinessPost.ie (json)
|
||||
Fix Hearst Communications magazines (js)
|
||||
Fix Mediahuis Noord (regional)
|
||||
Fix Midi-Olympique.fr (new domain Rugbyrama.fr)
|
||||
|
||||
* v3.2.3.0 (2023-07-02)
|
||||
|
|
|
@ -2138,7 +2138,7 @@ else if (matchDomain(be_roularta_domains)) {
|
|||
hideDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
||||
else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('link[href*=".ndcmediagroep.nl/"]')) {
|
||||
if (true) {
|
||||
let paywall = document.querySelector('div.signupPlus, div.pw-wrapper');
|
||||
if (paywall && dompurify_loaded) {
|
||||
|
@ -2147,9 +2147,7 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
|||
let html = document.documentElement.outerHTML;
|
||||
if (html.includes('window.__NUXT__=')) {
|
||||
let json = html.split('window.__NUXT__=')[1].split('</script>')[0].trim();
|
||||
let url_nuxt = json.includes(',url:"') ? json.split(',url:"')[1].split('",')[0].replace(/\\u002F/g, '/') : '';
|
||||
if (url_nuxt.startsWith('/auteur/'))
|
||||
url_nuxt = json.includes(',routePath:"') ? json.split(',routePath:"')[1].split('",')[0].replace(/\\u002F/g, '/') : '';
|
||||
let url_nuxt = json.match(/[(,]null,/) ? json.split(/[(,]null,/)[1].match(/-\d+\.html/)[0] : false;
|
||||
if (url_nuxt && !url_nuxt.includes(window.location.pathname.match(/-\d+\.html$/)))
|
||||
refreshCurrentTab();
|
||||
else if (json.includes(',body:')) {
|
||||
|
|
|
@ -88,7 +88,7 @@ window.setTimeout(function () {
|
|||
else if (matchDomain(['gazzettadimodena.it', 'gazzettadireggio.it', 'lanuovaferrara.it']))
|
||||
group = '###_it_gruppo_sae';
|
||||
} else if (hostname.endsWith('.nl')) {
|
||||
if (document.querySelector('script[src*=".ndcmediagroep.nl/"]'))
|
||||
if (document.querySelector('link[href*=".ndcmediagroep.nl/"]'))
|
||||
group = '###_nl_mediahuis_noord';
|
||||
else if (document.querySelector('link[rel="dns-prefetch"][href^="https://vmn-"][href$="imgix.net"]'))
|
||||
group = '###_nl_vmnmedia';
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.2.3.4"
|
||||
"version": "3.2.3.5"
|
||||
}
|
||||
|
|
|
@ -757,5 +757,5 @@
|
|||
"*://*.wyleex.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.2.3.4"
|
||||
"version": "3.2.3.5"
|
||||
}
|
||||
|
|
17
sites.js
17
sites.js
|
@ -1359,26 +1359,15 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
cs_dompurify: 1
|
||||
},
|
||||
"Mediahuis Noord": {
|
||||
"Mediahuis Noord (+ regional; opt-in to custom sites)": {
|
||||
domain: "###_nl_mediahuis_noord",
|
||||
group: [
|
||||
"dvhn.nl",
|
||||
"lc.nl"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.evolok\.net\//,
|
||||
exception: [{
|
||||
domain: "dvhn.nl",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.evolok\.net\/|\.ndcmediagroep\.nl\/js\/evolok\/)/,
|
||||
cs_dompurify: 1
|
||||
}, {
|
||||
domain: "lc.nl",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.evolok\.net\/|\.ndcmediagroep\.nl\/js\/evolok\/)/,
|
||||
cs_dompurify: 1
|
||||
}
|
||||
]
|
||||
block_regex: /(\.evolok\.net\/|\.ndcmediagroep\.nl\/js\/evolok\/)/,
|
||||
cs_dompurify: 1
|
||||
},
|
||||
"MediaNews Group": {
|
||||
domain: "###_usa_mng",
|
||||
|
|
Loading…
Reference in a new issue