Add The Athletic
* Add The Athletic * sofrep subscription banner
This commit is contained in:
parent
13c776001b
commit
aeab6baa92
@ -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)\
|
||||
|
@ -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',
|
||||
|
@ -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) {
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user