mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:04:16 +01:00
Fix-update Tech in Asia (homepage)
This commit is contained in:
parent
f1827ebbee
commit
4e78be92e3
4 changed files with 12 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
||||||
var ext_api = (typeof browser === 'object') ? browser : chrome;
|
var ext_api = (typeof browser === 'object') ? browser : chrome;
|
||||||
var ext_name = ext_api.runtime.getManifest().name;
|
var ext_name = ext_api.runtime.getManifest().name;
|
||||||
|
|
||||||
const cs_limit_except = ['afr.com', 'harpers.org', 'la-croix.com', 'lescienze.it'];
|
const cs_limit_except = ['afr.com', 'harpers.org', 'la-croix.com', 'lescienze.it', 'techinasia.com'];
|
||||||
var currentTabUrl = '';
|
var currentTabUrl = '';
|
||||||
var csDone = false;
|
var csDone = false;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ var csDone = false;
|
||||||
// var defaultSites = {};
|
// var defaultSites = {};
|
||||||
|
|
||||||
const restrictions = {
|
const restrictions = {
|
||||||
'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/,
|
'barrons.com': /.+\.barrons\.com\/(amp\/)?article(s)?\/.+/,
|
||||||
'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/,
|
'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/,
|
||||||
'elcomercio.pe': /.+\/elcomercio\.pe\/.+((\w)+(\-)+){3,}.+/,
|
'elcomercio.pe': /.+\/elcomercio\.pe\/.+((\w)+(\-)+){3,}.+/,
|
||||||
'faz.net': /^((?!\/zeitung\.faz\.net\/).)*$/,
|
'faz.net': /^((?!\/zeitung\.faz\.net\/).)*$/,
|
||||||
|
@ -22,7 +22,8 @@ const restrictions = {
|
||||||
'hs.fi': /^((?!\/.+\.hs\.fi\/paivanlehti\/).)*$/,
|
'hs.fi': /^((?!\/.+\.hs\.fi\/paivanlehti\/).)*$/,
|
||||||
'globo.com': /^((?!\/valor\.globo\.com\/).)*$/,
|
'globo.com': /^((?!\/valor\.globo\.com\/).)*$/,
|
||||||
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
||||||
'seekingalpha.com': /.+seekingalpha\.com\/article\/.+/,
|
'seekingalpha.com': /.+\/seekingalpha\.com\/article\/.+/,
|
||||||
|
'techinasia.com': /.+\.techinasia\.com\/.+((\w)+(\-)+){3,}.+/,
|
||||||
'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/
|
'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,6 +120,7 @@ const remove_cookies_select_hold = {
|
||||||
'groene.nl': ['accept-cookies', 'popunder-hidden'],
|
'groene.nl': ['accept-cookies', 'popunder-hidden'],
|
||||||
'newstatesman.com': ['STYXKEY_nsversion'],
|
'newstatesman.com': ['STYXKEY_nsversion'],
|
||||||
'seattletimes.com': ['st_newsletter_splash_seen'],
|
'seattletimes.com': ['st_newsletter_splash_seen'],
|
||||||
|
'telegraaf.nl': 'euconsent-v2',
|
||||||
'telegraph.co.uk': ['consentUUID'],
|
'telegraph.co.uk': ['consentUUID'],
|
||||||
'qz.com': ['gdpr'],
|
'qz.com': ['gdpr'],
|
||||||
'wsj.com': ['wsjregion', 'ResponsiveConditional_initialBreakpoint']
|
'wsj.com': ['wsjregion', 'ResponsiveConditional_initialBreakpoint']
|
||||||
|
@ -973,7 +975,7 @@ function popup_show_toggle_tab(callback) {
|
||||||
// remove cookies after page load
|
// remove cookies after page load
|
||||||
ext_api.webRequest.onCompleted.addListener(function (details) {
|
ext_api.webRequest.onCompleted.addListener(function (details) {
|
||||||
var domainVar = matchUrlDomain(remove_cookies, details.url);
|
var domainVar = matchUrlDomain(remove_cookies, details.url);
|
||||||
if (!domainVar || !enabledSites.includes(domainVar))
|
if ((!['main_frame', 'xmlhttprequest', 'other'].includes(details.type)) || !domainVar || !enabledSites.includes(domainVar))
|
||||||
return;
|
return;
|
||||||
ext_api.cookies.getAll({
|
ext_api.cookies.getAll({
|
||||||
domain: domainVar
|
domain: domainVar
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Fix-update Tech in Asia (homepage)
|
||||||
Fix show update (amo-version)
|
Fix show update (amo-version)
|
||||||
|
|
||||||
* v1.9.9.0 (2020-12-13)
|
* v1.9.9.0 (2020-12-13)
|
||||||
|
|
|
@ -555,13 +555,11 @@ else if (matchDomain("hbr.org")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain("techinasia.com")) {
|
else if (matchDomain("techinasia.com")) {
|
||||||
const paywall = document.querySelector('.paywall-content');
|
let paywall = document.querySelector('.paywall-content');
|
||||||
if (paywall){
|
if (paywall)
|
||||||
paywall.classList.remove('paywall-content');
|
paywall.classList.remove('paywall-content');
|
||||||
csDone = true;
|
let splash_subscribe = document.querySelector('.splash-subscribe');
|
||||||
}
|
let paywall_hard = document.querySelector('.paywall-hard');
|
||||||
const splash_subscribe = document.querySelector('.splash-subscribe');
|
|
||||||
const paywall_hard = document.querySelector('.paywall-hard');
|
|
||||||
removeDOMElement(splash_subscribe, paywall_hard);
|
removeDOMElement(splash_subscribe, paywall_hard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -408,5 +408,5 @@
|
||||||
"*://*.repstatic.it/*",
|
"*://*.repstatic.it/*",
|
||||||
"*://*.userzoom.com/*"
|
"*://*.userzoom.com/*"
|
||||||
],
|
],
|
||||||
"version": "1.9.9.0"
|
"version": "1.9.9.1"
|
||||||
}
|
}
|
Loading…
Reference in a new issue