Add The Athletic

This commit is contained in:
magnolia1234 2020-01-05 13:02:44 +01:00 committed by GitHub
parent 81a30341a3
commit bacbe52913
5 changed files with 20 additions and 7 deletions

View file

@ -67,6 +67,7 @@
[Telegraaf](https://telegraaf.nl)\
[The Advocate](https://www.theadvocate.com.au)\
[The Age](https://www.theage.com.au)\
[The Athletic](https://theathletic.com)\
[The Atlantic](https://www.theatlantic.com)\
[The Australian](https://www.theaustralian.com.au)\
[The Australian Financial Review](https://www.afr.com)\

View file

@ -64,6 +64,7 @@ var defaultSites = {
'Telegraaf': 'telegraaf.nl',
'The Advocate': 'theadvocate.com.au',
'The Age': 'theage.com.au',
'The Athletic': 'theathletic.com',
'The Atlantic': 'theatlantic.com',
'The Australian': 'theaustralian.com.au',
'The Australian Financial Review': 'afr.com',
@ -139,6 +140,7 @@ const allow_cookies = [
'telegraaf.nl',
'theadvocate.com.au',
'theage.com.au',
'theathletic.com',
'theatlantic.com',
'theaustralian.com.au',
'thediplomat.com',
@ -211,19 +213,20 @@ const remove_cookies_select_drop = {
// Override User-Agent with Googlebot
const use_google_bot = [
'barrons.com',
'haaretz.co.il',
'haaretz.com',
'lemonde.fr',
'nknews.org',
'nytimes.com',
'prime.economictimes.indiatimes.com',
'quora.com',
'telegraph.co.uk',
'theathletic.com',
'theaustralian.com.au',
'themarker.com',
'themercury.com.au',
'thetimes.co.uk',
'wsj.com',
'haaretz.co.il',
'haaretz.com',
'themarker.com',
'nknews.org',
'prime.economictimes.indiatimes.com'
]
function setDefaultOptions() {

View file

@ -222,6 +222,12 @@ if (window.location.href.indexOf("nrc.nl") !== -1) {
paywall_overlay.classList.remove("has-paywall-overlay");
}
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);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();

View file

@ -24,7 +24,8 @@
"*://*.economist.com/*",
"*://*.the-tls.co.uk/*",
"*://*.leparisien.fr/*",
"*://*.nrc.nl/*"
"*://*.nrc.nl/*",
"*://*.theathletic.com/*"
],
"js": ["contentScript.js"]
}
@ -158,7 +159,8 @@
"*://*.inquirer.com/*",
"*://*.indiatimes.com/*",
"*://*.leparisien.fr/*",
"*://*.lesechos.fr/*"
"*://*.lesechos.fr/*",
"*://*.theathletic.com/*"
],
"version": "1.6.3"
}

View file

@ -62,6 +62,7 @@ var defaultSites = {
'Telegraaf': 'telegraaf.nl',
'The Advocate': 'theadvocate.com.au',
'The Age': 'theage.com.au',
'The Athletic': 'theathletic.com',
'The Atlantic': 'theatlantic.com',
'The Australian': 'theaustralian.com.au',
'The Australian Financial Review (javascript disabled)': 'afr.com',