mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:57:48 +01:00
Add The Athletic
This commit is contained in:
parent
81a30341a3
commit
bacbe52913
5 changed files with 20 additions and 7 deletions
|
@ -67,6 +67,7 @@
|
||||||
[Telegraaf](https://telegraaf.nl)\
|
[Telegraaf](https://telegraaf.nl)\
|
||||||
[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 Athletic](https://theathletic.com)\
|
||||||
[The Atlantic](https://www.theatlantic.com)\
|
[The Atlantic](https://www.theatlantic.com)\
|
||||||
[The Australian](https://www.theaustralian.com.au)\
|
[The Australian](https://www.theaustralian.com.au)\
|
||||||
[The Australian Financial Review](https://www.afr.com)\
|
[The Australian Financial Review](https://www.afr.com)\
|
||||||
|
|
|
@ -64,6 +64,7 @@ var defaultSites = {
|
||||||
'Telegraaf': 'telegraaf.nl',
|
'Telegraaf': 'telegraaf.nl',
|
||||||
'The Advocate': 'theadvocate.com.au',
|
'The Advocate': 'theadvocate.com.au',
|
||||||
'The Age': 'theage.com.au',
|
'The Age': 'theage.com.au',
|
||||||
|
'The Athletic': 'theathletic.com',
|
||||||
'The Atlantic': 'theatlantic.com',
|
'The Atlantic': 'theatlantic.com',
|
||||||
'The Australian': 'theaustralian.com.au',
|
'The Australian': 'theaustralian.com.au',
|
||||||
'The Australian Financial Review': 'afr.com',
|
'The Australian Financial Review': 'afr.com',
|
||||||
|
@ -139,6 +140,7 @@ const allow_cookies = [
|
||||||
'telegraaf.nl',
|
'telegraaf.nl',
|
||||||
'theadvocate.com.au',
|
'theadvocate.com.au',
|
||||||
'theage.com.au',
|
'theage.com.au',
|
||||||
|
'theathletic.com',
|
||||||
'theatlantic.com',
|
'theatlantic.com',
|
||||||
'theaustralian.com.au',
|
'theaustralian.com.au',
|
||||||
'thediplomat.com',
|
'thediplomat.com',
|
||||||
|
@ -211,19 +213,20 @@ const remove_cookies_select_drop = {
|
||||||
// Override User-Agent with Googlebot
|
// Override User-Agent with Googlebot
|
||||||
const use_google_bot = [
|
const use_google_bot = [
|
||||||
'barrons.com',
|
'barrons.com',
|
||||||
|
'haaretz.co.il',
|
||||||
|
'haaretz.com',
|
||||||
'lemonde.fr',
|
'lemonde.fr',
|
||||||
|
'nknews.org',
|
||||||
'nytimes.com',
|
'nytimes.com',
|
||||||
|
'prime.economictimes.indiatimes.com',
|
||||||
'quora.com',
|
'quora.com',
|
||||||
'telegraph.co.uk',
|
'telegraph.co.uk',
|
||||||
|
'theathletic.com',
|
||||||
'theaustralian.com.au',
|
'theaustralian.com.au',
|
||||||
|
'themarker.com',
|
||||||
'themercury.com.au',
|
'themercury.com.au',
|
||||||
'thetimes.co.uk',
|
'thetimes.co.uk',
|
||||||
'wsj.com',
|
'wsj.com',
|
||||||
'haaretz.co.il',
|
|
||||||
'haaretz.com',
|
|
||||||
'themarker.com',
|
|
||||||
'nknews.org',
|
|
||||||
'prime.economictimes.indiatimes.com'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
function setDefaultOptions() {
|
function setDefaultOptions() {
|
||||||
|
|
|
@ -222,6 +222,12 @@ if (window.location.href.indexOf("nrc.nl") !== -1) {
|
||||||
paywall_overlay.classList.remove("has-paywall-overlay");
|
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) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
if (element) element.remove();
|
if (element) element.remove();
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
"*://*.economist.com/*",
|
"*://*.economist.com/*",
|
||||||
"*://*.the-tls.co.uk/*",
|
"*://*.the-tls.co.uk/*",
|
||||||
"*://*.leparisien.fr/*",
|
"*://*.leparisien.fr/*",
|
||||||
"*://*.nrc.nl/*"
|
"*://*.nrc.nl/*",
|
||||||
|
"*://*.theathletic.com/*"
|
||||||
],
|
],
|
||||||
"js": ["contentScript.js"]
|
"js": ["contentScript.js"]
|
||||||
}
|
}
|
||||||
|
@ -158,7 +159,8 @@
|
||||||
"*://*.inquirer.com/*",
|
"*://*.inquirer.com/*",
|
||||||
"*://*.indiatimes.com/*",
|
"*://*.indiatimes.com/*",
|
||||||
"*://*.leparisien.fr/*",
|
"*://*.leparisien.fr/*",
|
||||||
"*://*.lesechos.fr/*"
|
"*://*.lesechos.fr/*",
|
||||||
|
"*://*.theathletic.com/*"
|
||||||
],
|
],
|
||||||
"version": "1.6.3"
|
"version": "1.6.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ var defaultSites = {
|
||||||
'Telegraaf': 'telegraaf.nl',
|
'Telegraaf': 'telegraaf.nl',
|
||||||
'The Advocate': 'theadvocate.com.au',
|
'The Advocate': 'theadvocate.com.au',
|
||||||
'The Age': 'theage.com.au',
|
'The Age': 'theage.com.au',
|
||||||
|
'The Athletic': 'theathletic.com',
|
||||||
'The Atlantic': 'theatlantic.com',
|
'The Atlantic': 'theatlantic.com',
|
||||||
'The Australian': 'theaustralian.com.au',
|
'The Australian': 'theaustralian.com.au',
|
||||||
'The Australian Financial Review (javascript disabled)': 'afr.com',
|
'The Australian Financial Review (javascript disabled)': 'afr.com',
|
||||||
|
|
Loading…
Reference in a new issue