Add Times Literary Supplement

merge-requests/1/head
magnolia1234 5 years ago committed by GitHub
parent ee5092f09d
commit b3713b52ec

@ -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)\

@ -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',

@ -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();

@ -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"
}

@ -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',

Loading…
Cancel
Save