Add The Athletic

* Add The Athletic
* sofrep subscription banner
master
frantzkamus 2020-01-05 11:18:33 +01:00 committed by magnolia1234
parent 13c776001b
commit aeab6baa92
4 changed files with 16 additions and 1 deletions

View File

@ -107,6 +107,7 @@ Visit the [Firefox repository](https://github.com/iamadamdev/bypass-paywalls-fir
[The Advocate](https://www.theadvocate.com.au)\
[The Age](https://www.theage.com.au)\
[The American Interest](https://www.the-american-interest.com)\
[The Athletic](https://theathletic.com)\
[The Atlantic](https://www.theatlantic.com)\
[The Australian Financial Review](https://www.afr.com)\
[The Australian](https://www.theaustralian.com.au)\

View File

@ -21,6 +21,7 @@ var allow_cookies = [
'scribd.com',
'techinasia.com',
'the-american-interest.com',
'theathletic.com',
'theaustralian.com.au',
'trouw.nl',
'volkskrant.nl',
@ -63,6 +64,7 @@ const use_google_bot = [
'theaustralian.com.au',
'themarker.com',
'thetimes.co.uk',
'theathletic.com',
'wsj.com',
'haaretz.co.il',
'haaretz.com',

View File

@ -351,6 +351,17 @@ if (window.location.href.indexOf("newcastleherald.com.au") !== -1) {
}
}
if (window.location.href.indexOf("sofrep.com") !== -1) {
const banner = document.getElementById('scrollerCTA');
removeDOMElement(banner);
}
if (window.location.href.indexOf("theathletic.com") !== -1) {
const banner = document.querySelector('.border-bottom-cc');
const subscribe = document.querySelector('.subscribe-ad-text');
removeDOMElement(banner, subscribe);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -58,6 +58,7 @@
"The Advocate": "theadvocate.com.au",
"The Age": "theage.com.au",
"The American Interest": "the-american-interest.com",
"The Athletic": "theathletic.com",
"The Atlantic": "theatlantic.com",
"The Australian Financial Review": "afr.com",
"The Australian": "theaustralian.com.au",
@ -97,4 +98,4 @@
"Poool.fr": "poool.fr",
"TinyPass": "tinypass.com",
"Piano.io": "piano.io"
}
}