Add Foreign Affairs
parent
531ea27375
commit
bf0208980c
|
@ -63,6 +63,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
|||
|
||||
##### 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) -
|
||||
|
|
|
@ -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\?/,
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add Foreign Affairs
|
||||
Add Il Resto del Carlino (Italy)
|
||||
Add The Logic (Canada)
|
||||
Add The New York Review of Books
|
||||
Fix-update Funke Medien (TinyPass)
|
||||
Fix-update NY Times (hidden iframe-content)
|
||||
Fix bug in NY Times (hidden iframe-content)
|
||||
|
||||
* v1.9.1.1 (2020-10-19)
|
||||
Hotfix remove cookies (www)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
"*://*.firstthings.com/*",
|
||||
"*://*.fnlondon.com/*",
|
||||
"*://*.folha.uol.com.br/*",
|
||||
"*://*.foreignaffairs.com/*",
|
||||
"*://*.foreignpolicy.com/*",
|
||||
"*://*.fortune.com/*",
|
||||
"*://*.frasercoastchronicle.com.au/*",
|
||||
|
@ -318,5 +319,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.1.4"
|
||||
"version": "1.9.1.5"
|
||||
}
|
1
sites.js
1
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",
|
||||
|
|
Loading…
Reference in New Issue