Add Times Literary Supplement

This commit is contained in:
magnolia1234 2019-12-05 21:32:20 +01:00 committed by GitHub
parent ee5092f09d
commit b3713b52ec
5 changed files with 13 additions and 3 deletions

View file

@ -89,6 +89,7 @@
[The Toronto Star](https://www.thestar.com)\
[The Washington Post](https://www.washingtonpost.com)\
[The Wall Street Journal](https://www.wsj.com)\
[Times Literary Supplement](https://www.the-tls.co.uk)\
[Towards Data Science](https://www.towardsdatascience.com)\
[Trouw](https://www.trouw.nl)\
[Vanity Fair](https://www.vanityfair.com)\

View file

@ -86,6 +86,7 @@ var defaultSites = {
'The Toronto Star': 'thestar.com',
'The Washington Post': 'washingtonpost.com',
'The Wall Street Journal': 'wsj.com',
'Times Literary Supplement': 'the-tls.co.uk',
'Towards Data Science': 'towardsdatascience.com',
'Trouw': 'trouw.nl',
'Vanity Fair': 'vanityfair.com',

View file

@ -176,6 +176,11 @@ if (window.location.href.indexOf("economist.com") !== -1) {
removeDOMElement(wrapper);
}
if (window.location.href.indexOf("the-tls.co.uk") !== -1) {
const paywall = document.querySelector('.tls-subscriptions-banner__closed-skin');
removeDOMElement(paywall);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();

View file

@ -21,7 +21,8 @@
"*://*.trouw.nl/*",
"*://*.volkskrant.nl/*",
"*://*.washingtonpost.com/*",
"*://*.economist.com/*"
"*://*.economist.com/*",
"*://*.the-tls.co.uk/*"
],
"js": ["contentScript.js"]
}
@ -147,8 +148,9 @@
"*://*.scientificamerican.com/*",
"*://*.thehindu.com/*",
"*://*.demorgen.be/*",
"*://*.tinypass.com/*",
"*://*.lrb.co.uk/*"
"*://*.tinypass.com/*",
"*://*.lrb.co.uk/*",
"*://*.the-tls.co.uk/*"
],
"version": "1.6.2"
}

View file

@ -84,6 +84,7 @@ var defaultSites = {
'The Toronto Star (javascript disabled)': 'thestar.com',
'The Washington Post': 'washingtonpost.com',
'The Wall Street Journal': 'wsj.com',
'Times Literary Supplement': 'the-tls.co.uk',
'Towards Data Science': 'towardsdatascience.com',
'Trouw': 'trouw.nl',
'Vanity Fair': 'vanityfair.com',