mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:11:56 +01:00
Add Foreign Affairs
This commit is contained in:
parent
81d46fc21e
commit
ab605cf816
6 changed files with 15 additions and 1 deletions
|
@ -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) -
|
||||
|
|
|
@ -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,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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
}
|
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 a new issue