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) Remove Griffith Review (fix obsolete)
Fix Gannett Group (identify sites) Fix Gannett Group (identify sites)
Fix LesEchos.fr (json) Fix LesEchos.fr (json)
Fix Nautil.us (cookies)
* v3.1.2.0 (2023-04-02) * v3.1.2.0 (2023-04-02)
Add Epicurious (Conde Nast) Add Epicurious (Conde Nast)

View File

@ -3710,19 +3710,8 @@ else if (matchDomain('nationalreview.com')) {
} }
else if (matchDomain('nautil.us')) { else if (matchDomain('nautil.us')) {
let hidden_images = document.querySelectorAll('img[src^="data:image"][data-src]'); let banners = document.querySelectorAll('div[class^="a__sc-np"], div.subscibe-bar');
for (let hidden_image of hidden_images) removeDOMElement(...banners);
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);
} }
else if (matchDomain('newleftreview.org')) { else if (matchDomain('newleftreview.org')) {

View File

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

View File

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