diff --git a/changelog.txt b/changelog.txt index 34d80d5..9f3ea88 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Remove Morgenpost.de (Funke; fix obsolete) Remove The Star Malaysia (fix obsolete) Fix Beobachter.ch (json) Fix Bloomberg (css) +Fix Crikey.com.au (cookie) Fix Nikkei Asian Review (cookie) * v3.4.5.0 (2023-12-03) diff --git a/contentScript.js b/contentScript.js index 75e2608..49ffd3a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -50,7 +50,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com']; // clean local storage of sites (with an exemption for hold-list) -var arr_localstorage_hold = ['augsburger-allgemeine.de', 'barrons.com', 'business-standard.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'columbian.com', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'digiday.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'indiatoday.in', 'inews.co.uk', 'janes.com', 'jazziz.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nwzonline.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'ruhrnachrichten.de', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'techinasia.com', 'telegraph.co.uk', 'tes.com', 'the-tls.co.uk', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'theweek.com', 'tt.com', 'tuttosport.com', 'uol.com.br', 'vol.at', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, ca_torstar_domains, de_funke_medien_domains, de_lv_domains, de_vrm_domains, de_vrm_custom_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains); +var arr_localstorage_hold = ['augsburger-allgemeine.de', 'barrons.com', 'business-standard.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'columbian.com', 'corriere.it', 'corrieredellosport.it', 'crikey.com.au', 'cyclingtips.com', 'digiday.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'indiatoday.in', 'inews.co.uk', 'janes.com', 'jazziz.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nwzonline.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'ruhrnachrichten.de', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'techinasia.com', 'telegraph.co.uk', 'tes.com', 'the-tls.co.uk', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'theweek.com', 'tt.com', 'tuttosport.com', 'uol.com.br', 'vol.at', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, ca_torstar_domains, de_funke_medien_domains, de_lv_domains, de_vrm_domains, de_vrm_custom_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains); if (!matchDomain(arr_localstorage_hold)) { window.localStorage.clear(); } @@ -345,11 +345,8 @@ if (matchDomain('medium.com') || matchDomain(medium_custom_domains) || (!matchDo else if (window.location.hostname.match(/\.(com|net)\.au$/)) {//australia if (matchDomain('crikey.com.au')) { - if (dompurify_loaded) - getJsonUrl('div.locked-content', '', 'div.article-body > div.paywall'); - let fade = document.querySelector('article.article-locked'); - if (fade) - fade.classList.remove('article-locked'); + let ads = document.querySelectorAll('.advert'); + hideDOMElement(...ads); } else if (matchDomain('macrobusiness.com.au')) { @@ -3570,6 +3567,8 @@ else if (matchDomain('artnet.com')) { let body_hidden = document.querySelector('.article-body'); if (body_hidden) body_hidden.style = 'display:block;'; + let banner = document.querySelector('div[id^="issuem-leaky-paywall-"]'); + removeDOMElement(banner); } } diff --git a/custom/manifest.json b/custom/manifest.json index d0089a3..5bf2b7c 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.4.5.2" + "version": "3.4.5.3" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 7f1ade2..fcc4aad 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -244,6 +244,10 @@ "domain": "flz.de", "useragent": "googlebot" }, + "Foxnews.com (regwall)": { + "cs_code": "[{\"cond\":\"div.article-gating-wrapper\", \"rm_elem\":1}, {\"cond\":\"div[class*='gated-overlay']\", \"rm_attrib\":\"class\"}]", + "domain": "foxnews.com" + }, "Frieze.com": { "allow_cookies": 1, "block_regex": "js\\.pelcro\\.com", diff --git a/manifest.json b/manifest.json index 5a91408..8700d46 100644 --- a/manifest.json +++ b/manifest.json @@ -824,5 +824,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.4.5.2" + "version": "3.4.5.3" } diff --git a/sites.js b/sites.js index 3438ab2..7cd03d0 100644 --- a/sites.js +++ b/sites.js @@ -457,8 +457,8 @@ var defaultSites = { }, "Crikey.com.au": { domain: "crikey.com.au", - allow_cookies: 1, - cs_dompurify: 1 + block_regex: /\.crickey\.com\.au\/zephr\/feature/, + remove_cookies_select_drop: ["blaize_session"] }, "Crusoe.com.br": { domain: "crusoe.com.br", diff --git a/sites_updated.json b/sites_updated.json index 93b7cd0..45cef50 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -11,6 +11,12 @@ "block_regex": "(paywall\\.correiodopovo\\.com\\.br|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)", "upd_version": "3.4.4.7" }, + "Crikey.com.au": { + "domain": "crikey.com.au", + "block_regex": "\\.crickey\\.com\\.au\\/zephr\\/feature", + "remove_cookies_select_drop": ["blaize_session"], + "upd_version": "3.4.5.3" + }, "Defector": { "domain": "defector.com", "allow_cookies": 1,