diff --git a/README.md b/README.md index 57c050be..f1e6d7ab 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ So don't update to Firefox 79 or use Firefox Nightly (and load BPC from a custom ##### World news [First Things](https://www.firstthings.com) - +[Foreign Affairs](https://www.foreignaffairs.com) - [Foreign Policy](https://www.foreignpolicy.com) - [Harper's Magazine](https://harpers.org) - [Inkl](https://www.inkl.com) - diff --git a/background.js b/background.js index 746964ff..2dbf7fa1 100644 --- a/background.js +++ b/background.js @@ -188,6 +188,7 @@ var blockedRegexes = { 'exame.abril.com.br': /.+\.tinypass\.com\/.+/, 'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/, 'globo.com': /.+\.tinypass\.com\/.+/, +'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_P9zr.+\.js/, 'foreignpolicy.com': /.+\.tinypass\.com\/.+/, 'fortune.com': /.+\.tinypass\.com\/.+/, 'ftm.nl': /.+\.ftm\.nl\/js\/routing\?/, diff --git a/changelog.txt b/changelog.txt index 49c9d1ef..47ed4335 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Foreign Affairs Add Il Resto del Carlino (Italy) Add The Logic (Canada) Add The New York Review of Books diff --git a/contentScript.js b/contentScript.js index 3cf8d40b..e0d43980 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1383,6 +1383,15 @@ else if (matchDomain("thelogic.co")) { removeDOMElement(article_subscribe); } +else if (matchDomain("foreignaffairs.com")) { + let paywall = document.querySelector('.paywall'); + let loading_indicator = document.querySelector('.loading-indicator'); + removeDOMElement(paywall, loading_indicator); + let article_dropcap = document.querySelectorAll('.article-dropcap'); + for (let elem of article_dropcap) + elem.classList.add('loaded'); +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/manifest.json b/manifest.json index b84b4c6a..6586d5b3 100644 --- a/manifest.json +++ b/manifest.json @@ -107,6 +107,7 @@ "*://*.firstthings.com/*", "*://*.fnlondon.com/*", "*://*.folha.uol.com.br/*", + "*://*.foreignaffairs.com/*", "*://*.foreignpolicy.com/*", "*://*.fortune.com/*", "*://*.frasercoastchronicle.com.au/*", @@ -332,5 +333,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.9.1.4" + "version": "1.9.1.5" } \ No newline at end of file diff --git a/sites.js b/sites.js index e65dc709..18be4047 100644 --- a/sites.js +++ b/sites.js @@ -55,6 +55,7 @@ var defaultSites = "First Things": "firstthings.com", "Folha de S. Paulo": "folha.uol.com.br", "Follow the Money (ftm.nl)": "ftm.nl", + "Foreign Affairs": "foreignaffairs.com", "Foreign Policy": "foreignpolicy.com", "Fortune": "fortune.com", "Frankfurter Allgemeine Zeitung": "faz.net",