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 Advocate](https://www.theadvocate.com.au)\
[The Age](https://www.theage.com.au)\ [The Age](https://www.theage.com.au)\
[The American Interest](https://www.the-american-interest.com)\ [The American Interest](https://www.the-american-interest.com)\
[The Athletic](https://theathletic.com)\
[The Atlantic](https://www.theatlantic.com)\ [The Atlantic](https://www.theatlantic.com)\
[The Australian Financial Review](https://www.afr.com)\ [The Australian Financial Review](https://www.afr.com)\
[The Australian](https://www.theaustralian.com.au)\ [The Australian](https://www.theaustralian.com.au)\

View File

@ -21,6 +21,7 @@ var allow_cookies = [
'scribd.com', 'scribd.com',
'techinasia.com', 'techinasia.com',
'the-american-interest.com', 'the-american-interest.com',
'theathletic.com',
'theaustralian.com.au', 'theaustralian.com.au',
'trouw.nl', 'trouw.nl',
'volkskrant.nl', 'volkskrant.nl',
@ -63,6 +64,7 @@ const use_google_bot = [
'theaustralian.com.au', 'theaustralian.com.au',
'themarker.com', 'themarker.com',
'thetimes.co.uk', 'thetimes.co.uk',
'theathletic.com',
'wsj.com', 'wsj.com',
'haaretz.co.il', 'haaretz.co.il',
'haaretz.com', '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 // General Functions
function removeDOMElement(...elements) { function removeDOMElement(...elements) {
for (let element of elements) { for (let element of elements) {

View File

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