Fix Nautil.us (cookies)

This commit is contained in:
magnolia1234 2023-04-07 10:06:43 +02:00
parent 2069a6c515
commit dda8dde350
4 changed files with 8 additions and 15 deletions

View File

@ -7,6 +7,7 @@ Add Haas Mediengruppe (opt-in to custom sites)
Remove Griffith Review (fix obsolete)
Fix Gannett Group (identify sites)
Fix LesEchos.fr (json)
Fix Nautil.us (cookies)
* v3.1.2.0 (2023-04-02)
Add Epicurious (Conde Nast)

View File

@ -3710,19 +3710,8 @@ else if (matchDomain('nationalreview.com')) {
}
else if (matchDomain('nautil.us')) {
let hidden_images = document.querySelectorAll('img[src^="data:image"][data-src]');
for (let hidden_image of hidden_images)
hidden_image.src = hidden_image.getAttribute('data-src');
let empty_video_iframes = document.querySelectorAll('iframe[src="about:blank"][data-litespeed-src]');
for (let empty_video_iframe of empty_video_iframes)
empty_video_iframe.src = empty_video_iframe.getAttribute('data-litespeed-src');
window.setTimeout(function () {
let banners = document.querySelectorAll('div[class^="a__sc-np"], div.subscibe-bar');
removeDOMElement(...banners);
let overflows = document.querySelectorAll('html[style], body[style]');
for (let overflow of overflows)
overflow.removeAttribute('style');
}, 1000);
let banners = document.querySelectorAll('div[class^="a__sc-np"], div.subscibe-bar');
removeDOMElement(...banners);
}
else if (matchDomain('newleftreview.org')) {

View File

@ -1377,8 +1377,7 @@ var defaultSites = {
},
"Nautilus": {
domain: "nautil.us",
allow_cookies: 1,
block_js_inline: /\/nautil\.us\/((\w)+(\-)+){3,}/
remove_cookies_select_drop: ["arc", "sfa"]
},
"NOZ/MHN Mediengruppe": {
domain: "###_de_noz_mhn",

View File

@ -65,6 +65,10 @@
"remove_cookies_select_drop": ["TID_ID"],
"block_regex": "(\\.margriet\\.nl\\/temptation\\/resolve|temptation\\.margriet\\.nl\\/temptation\\.js)"
},
"Nautilus": {
"domain": "nautil.us",
"remove_cookies_select_drop": ["arc", "sfa"]
},
"Revue Conflits": {
"domain": "revueconflits.com",
"allow_cookies": 1,