Fix Lc.nl

merge-requests/13/head
magnolia1234 1 year ago
parent ed5fb70cc2
commit 4a748dd4c4

@ -6,6 +6,7 @@ Post-release
Add DHnet.be
Add TagesAnzeiger.ch (link to archive.is)
Remove Finance.si (fix obsolete)
Fix Lc.nl
Update block general paywall script (FewCents)
* v3.0.5.0 (2023-02-12)

@ -2105,7 +2105,7 @@ else if (matchDomain(['knack.be', 'kw.be', 'levif.be'])) {
}
else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
if (matchDomain('dvhn.nl')) {
if (true) {
let paywall = document.querySelector('div.signupPlus');
if (paywall) {
let intro = document.querySelector('div.startPayWall');
@ -2113,7 +2113,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.split(',url:"')[1].split('",')[0].replace(/\\u002F/g, '/');
let url_nuxt = json.includes(',url:"') ? json.split(',url:"')[1].split('",')[0].replace(/\\u002F/g, '/') : '';
if (url_nuxt && !url_nuxt.includes(window.location.pathname))
refreshCurrentTab();
else if (json.includes(',body:')) {
@ -2190,8 +2190,8 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
}
}
}
let top_ad = document.querySelector('.top__ad');
removeDOMElement(top_ad);
let ads = document.querySelectorAll('.top__ad, .marketingblock-article');
removeDOMElement(...ads);
}
else if (matchDomain(['limburger.nl'])) {

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.0.5.1"
"version": "3.0.5.2"
}

@ -735,5 +735,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.5.1"
"version": "3.0.5.2"
}

@ -1278,6 +1278,10 @@ var defaultSites = {
domain: "dvhn.nl",
allow_cookies: 1,
block_regex: /(\.evolok\.net\/|\.ndcmediagroep\.nl\/js\/evolok\/)/
}, {
domain: "lc.nl",
allow_cookies: 1,
block_regex: /(\.evolok\.net\/|\.ndcmediagroep\.nl\/js\/evolok\/)/
}
]
},

@ -92,6 +92,25 @@
"domain": "latimes.com",
"block_regex": "\\.californiatimes\\.com\\/meteringjs"
},
"Mediahuis Noord": {
"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\\/)"
}, {
"domain": "lc.nl",
"allow_cookies": 1,
"block_regex": "(\\.evolok\\.net\\/|\\.ndcmediagroep\\.nl\\/js\\/evolok\\/)"
}
]
},
"Saarbrücker Zeitung": {
"domain": "saarbruecker-zeitung.de",
"allow_cookies": 1,

Loading…
Cancel
Save