diff --git a/README.md b/README.md index 13c3f6d2..41c599bc 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,6 @@ Grouped in options:\ [Philosophy Now](https://philosophynow.org) - [Quora](https://www.quora.com) - [Scribd](https://www.scribd.com) - -[Slader](https://www.slader.com) - [Statista](https://www.statista.com) - [Study.com (no videos)](https://study.com) diff --git a/background.js b/background.js index f41a246b..c9247d7a 100644 --- a/background.js +++ b/background.js @@ -138,7 +138,6 @@ var allow_cookies_default = [ 'seekingalpha.com', 'shz.de', 'si.com', - 'slader.com', 'staradvertiser.com', 'startribune.com', 'stocknews.com', @@ -260,7 +259,7 @@ var use_google_referer_default = ['statista.com']; var use_google_referer = use_google_referer_default.slice(); var use_twitter_referer_default = ['medium.com', 'towardsdatascience.com']; var use_twitter_referer = use_twitter_referer_default.slice(); -var use_random_ip = ['esprit.presse.fr', 'slader.com']; +var use_random_ip = ['esprit.presse.fr']; var change_headers = use_google_bot.concat(use_bing_bot, use_facebook_referer, use_google_referer, use_twitter_referer, use_random_ip); // block paywall-scripts individually @@ -490,10 +489,7 @@ function add_grouped_sites(init_rules) { } for (let domain of au_news_corp_domains) { allow_cookies.push(domain); - if (domain !== 'theaustralian.com.au') - use_google_bot.push(domain); - else - use_bing_bot.push(domain); + use_google_bot.push(domain); blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-(access|ad|iframe)-.+\.js/; } for (let domain of au_prov_news_domains) { @@ -1199,7 +1195,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { !(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) && !(matchUrlDomain('wsj.com', details.url) && enabledSites.includes('#options_disable_gb_wsj')); -if (matchUrlDomain(change_headers, details.url) && (['main_frame', 'sub_frame', 'xmlhttprequest'].includes(details.type) || matchUrlDomain('thetimes.co.uk', details.url))) { +if (matchUrlDomain(change_headers, details.url) && (['main_frame', 'sub_frame', 'xmlhttprequest'].includes(details.type) || matchUrlDomain(['theaustralian.com.au', 'thetimes.co.uk'], details.url))) { // if referer exists, set it requestHeaders = requestHeaders.map(function (requestHeader) { if (requestHeader.name === 'Referer') { diff --git a/changelog.txt b/changelog.txt index 1a6c4f98..0664fd6a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add Ad Age & Automotive News (& fix group Crain Communications) Add MediaNews Group (local USA) Add The Intercept +Remove Slader (obsolete) Fix group Mediahuis Nederland Regional Fix The Australian Fix The Daily Beast (proper/images) diff --git a/contentScript.js b/contentScript.js index ce0cc25a..c9a5bbd1 100644 --- a/contentScript.js +++ b/contentScript.js @@ -24,7 +24,7 @@ var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com' 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', 'charliehebdo.fr', 'cmjornal.pt', 'houstonchronicle.com', 'inc42.com', 'irishtimes.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'theaustralian.com.au', 'thehindu.com', 'thetimes.co.uk'].concat(es_unidad_domains, no_nhst_media_domains); +var arr_localstorage_hold = ['augsburger-allgemeine.de', 'charliehebdo.fr', 'cmjornal.pt', 'houstonchronicle.com', 'inc42.com', 'irishtimes.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'].concat(es_unidad_domains, no_nhst_media_domains); arr_localstorage_hold = arr_localstorage_hold.concat(de_funke_media_domains, es_grupo_vocento_domains); if (!matchDomain(arr_localstorage_hold)) { window.localStorage.clear(); @@ -2382,17 +2382,6 @@ else if (matchDomain('seekingalpha.com')) { } } -else if (matchDomain('slader.com')) { - window.setTimeout(function () { - let paywall = document.querySelector('.Paywall'); - let paywall_footer = document.querySelector('.Paywall__footer-counter'); - removeDOMElement(paywall, paywall_footer); - let blur = document.querySelector('section.Paywall__blur'); - if (blur) - blur.classList.remove('Paywall__blur'); - }, 500); // Delay (in milliseconds) -} - else if (matchDomain('slate.com')) { let slate_roadblock = document.querySelector('.slate-roadblock'); let ads = document.querySelectorAll('section[class*="-ad"]'); diff --git a/manifest.json b/manifest.json index 184d967a..485fd510 100644 --- a/manifest.json +++ b/manifest.json @@ -410,7 +410,6 @@ "*://*.sfchronicle.com/*", "*://*.shz.de/*", "*://*.si.com/*", - "*://*.slader.com/*", "*://*.slate.com/*", "*://*.sloanreview.mit.edu/*", "*://*.smh.com.au/*", diff --git a/sites.js b/sites.js index 4302377f..b1c3b424 100644 --- a/sites.js +++ b/sites.js @@ -220,7 +220,6 @@ var defaultSites = "Scientific American (free articles only)": "scientificamerican.com", "Scribd (documents only)": "scribd.com", "Seeking Alpha": "seekingalpha.com", - "Slader": "slader.com", "Slate": "slate.com", "SOFREP": "sofrep.com", "South China Morning Post": "scmp.com",