diff --git a/background.js b/background.js index 407730a..82eee72 100755 --- a/background.js +++ b/background.js @@ -4,7 +4,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome; var ext_name = ext_api.runtime.getManifest().name; -const cs_limit_except = ['afr.com', 'discovermagazine.com', 'elcomercio.pe', 'elmercurio.com', 'elpais.com', 'faz.net', 'gestion.pe', 'harpers.org', 'inkl.com', 'jpost.com', 'la-croix.com', 'lescienze.it', 'lne.es', 'marketwatch.com', 'newleftreview.org', 'prospectmagazine.co.uk', 'techinasia.com', 'thepointmag.com']; +const cs_limit_except = ['inkl.com', 'la-croix.com']; var currentTabUrl = ''; var csDone = false; @@ -25,7 +25,7 @@ const restrictions = { 'globo.com': /^((?!\/valor\.globo\.com\/).)*$/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, 'seekingalpha.com': /.+\/seekingalpha\.com\/($|(amp\/)?(article|news)\/|samw\/)/, - 'techinasia.com': /.+\.techinasia\.com\/.+((\w)+(\-)+){3,}.+/, + 'techinasia.com': /\.techinasia\.com\/.+/, 'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/ } @@ -1017,7 +1017,7 @@ if (['main_frame', 'xmlhttprequest'].includes(details.type) && matchUrlDomain(ch csDone = false; currentTabUrl = currentTab.url; } - if ((['main_frame', 'script', 'other', 'xmlhttprequest'].includes(details.type) || matchUrlDomain(cs_limit_except, currentTabUrl)) && !csDone) { + if ((['main_frame', 'script', 'image', 'sub_frame', 'xmlhttprequest'].includes(details.type) || matchUrlDomain(cs_limit_except, currentTabUrl)) && !csDone) { ext_api.tabs.executeScript(tabId, { file: 'contentScript.js', runAt: 'document_start' diff --git a/changelog.txt b/changelog.txt index b7a6321..6f0fd5a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release +Update limit contentScript (add image/sub_frame) * v2.0.8.0 (2021-02-14) Add Augsburger Allgemeine (Germany) diff --git a/contentScript.js b/contentScript.js index bd9d9bf..a98f1c7 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1707,8 +1707,6 @@ else if (matchDomain('la-croix.com')) { if (!url.includes('la-croix.com/amp/')) { let paywall_host_param = document.querySelector('#paywall-host-param'); removeDOMElement(paywall_host_param); - if (paywall_host_param) - csDone = true; } else { let paywall_block = document.querySelector('#paywall_block'); let amp_ads = document.querySelectorAll('amp-ad, amp-embed'); diff --git a/manifest.json b/manifest.json index 7f73cdf..7774676 100755 --- a/manifest.json +++ b/manifest.json @@ -459,5 +459,5 @@ "*://*.userzoom.com/*", "*://*.wsj.net/*" ], - "version": "2.0.8.0" + "version": "2.0.8.1" } \ No newline at end of file