From ac000612165964c1b49807c2418b7519a4a9527e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 21 Jul 2022 08:23:34 +0200 Subject: [PATCH] Fix Foreign Affairs (js) --- background.js | 1 - changelog.txt | 1 + custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 2 +- sites_updated.json | 4 ++++ 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/background.js b/background.js index f39ea27..d850a61 100755 --- a/background.js +++ b/background.js @@ -22,7 +22,6 @@ var restrictions = { 'elespanol.com': /^((?!\/cronicaglobal\.elespanol\.com\/).)*$/, 'espn.com': /^((?!espn\.com\/watch).)*$/, 'faz.net': /^((?!\.faz\.net\/aktuell\/(\?switchfaznet)?$).)*$/, - 'foreignaffairs.com': /\.foreignaffairs\.com\/((articles|fa-caching|interviews|reviews|sites)\/)/, 'globo.com': /^((?!\/valor\.globo\.com\/).)*$/, 'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/, 'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/, diff --git a/changelog.txt b/changelog.txt index e83b995..c50194d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add StuDocu (no downloads) Remove The Ken (fix not working) +Fix Foreign Affairs (js) Fix Krautreporter.de Fix Scientific American (magazine) diff --git a/custom/manifest.json b/custom/manifest.json index 7acb10c..f0a00b7 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -43,5 +43,5 @@ "webRequestBlocking", "" ], - "version": "2.7.6.3" + "version": "2.7.6.4" } diff --git a/manifest.json b/manifest.json index 34c3667..23487cb 100755 --- a/manifest.json +++ b/manifest.json @@ -681,5 +681,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.6.3" + "version": "2.7.6.4" } diff --git a/sites.js b/sites.js index be61657..77663bf 100755 --- a/sites.js +++ b/sites.js @@ -511,7 +511,7 @@ var defaultSites = { }, "Foreign Affairs": { domain: "foreignaffairs.com", - block_regex: /\.foreignaffairs\.com\/sites\/default\/files\/js\/js_[^y].+\.js/ + block_regex: /\.foreignaffairs\.com\/modules\/custom\/fa_paywall_js\/js\/paywall\.js/ }, "Foreign Policy": { domain: "foreignpolicy.com", diff --git a/sites_updated.json b/sites_updated.json index 0a1795c..3ae240b 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -1,4 +1,8 @@ { + "Foreign Affairs": { + "domain": "foreignaffairs.com", + "block_regex": "\\.foreignaffairs\\.com\\/modules\\/custom\\/fa_paywall_js\\/js\\/paywall\\.js" + }, "Krautreporter.de": { "domain": "krautreporter.de", "cs_code": [{