mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Remove Slader (obsolete)
This commit is contained in:
parent
b8c3cdd037
commit
9b3ccb0e2b
@ -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)
|
||||
|
||||
|
@ -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') {
|
||||
|
@ -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)
|
||||
|
@ -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"]');
|
||||
|
@ -410,7 +410,6 @@
|
||||
"*://*.sfchronicle.com/*",
|
||||
"*://*.shz.de/*",
|
||||
"*://*.si.com/*",
|
||||
"*://*.slader.com/*",
|
||||
"*://*.slate.com/*",
|
||||
"*://*.sloanreview.mit.edu/*",
|
||||
"*://*.smh.com.au/*",
|
||||
|
1
sites.js
1
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",
|
||||
|
Loading…
Reference in New Issue
Block a user