mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Fix New Scientist
This commit is contained in:
parent
d8f77d0d6e
commit
34e3a849a6
5 changed files with 14 additions and 4 deletions
|
@ -7,6 +7,7 @@ Add Bloomberg Adria
|
|||
Add DN.no (cached articles only)
|
||||
Fix Mediahuis Noord
|
||||
Fix mobile user-agent for Google webcache
|
||||
Fix New Scientist
|
||||
|
||||
* v3.0.7.0 (2023-02-26)
|
||||
Add Landwirtschaftsverlag
|
||||
|
|
|
@ -440,6 +440,7 @@ else {
|
|||
par_dom.appendChild(par_elem);
|
||||
}
|
||||
let content = document.querySelector('div[class*="StyledArticleContent"]');
|
||||
content.innerHTML = '';
|
||||
if (content) {
|
||||
content.appendChild(par_dom);
|
||||
} else {
|
||||
|
@ -3808,12 +3809,14 @@ else if (matchDomain('newscientist.com')) {
|
|||
removeDOMElement(paywall);
|
||||
csDoneOnce = true;
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
|
||||
replaceDomElementExt(url_cache, true, false, 'div.article-body');
|
||||
replaceDomElementExt(url_cache, true, false, 'div.article-body, article');
|
||||
}
|
||||
window.setTimeout(function () {
|
||||
let lazy_images = document.querySelectorAll('img.lazyload[data-src]:not([src]');
|
||||
for (let elem of lazy_images)
|
||||
elem.src = elem.getAttribute('data-src').split('?')[0] + '?width=800';
|
||||
let ads = document.querySelectorAll('div[class*="Advert"]');
|
||||
removeDOMElement(...ads);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.0.7.3"
|
||||
"version": "3.0.7.4"
|
||||
}
|
||||
|
|
|
@ -745,5 +745,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.0.7.3"
|
||||
"version": "3.0.7.4"
|
||||
}
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
"domain": "bloombergadria.com",
|
||||
"allow_cookies": 1,
|
||||
"block_js_inline": "\\.bloombergadria\\.com\\/.+\\/news\\/",
|
||||
"cs_code": "[{\"cond\":\"article[style]\",\"rm_attrib\":\"style\"}]"
|
||||
"cs_code": "[{\"cond\":\"article[style]\",\"rm_attrib\":\"style\"}]",
|
||||
"new_site": 1
|
||||
},
|
||||
"DH Les Sports+": {
|
||||
"domain": "dhnet.be",
|
||||
|
@ -61,6 +62,11 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"New Scientist": {
|
||||
"domain": "newscientist.com",
|
||||
"allow_cookies": 1,
|
||||
"ld_google_webcache": "#subscription-barrier|div.article-body,article"
|
||||
},
|
||||
"NK News (free articles only)": {
|
||||
"domain": "nknews.org",
|
||||
"remove_cookies_select_drop": ["issuem_lp", "issuem_lp_kp"]
|
||||
|
|
Loading…
Reference in a new issue