Add Tech in Asia

merge-requests/1/head
magnolia1234 4 years ago committed by GitHub
parent 56afd1e6b9
commit b15228663c

@ -64,6 +64,7 @@
[Scientific American](https://scientificamerican.com)\
[Statista](https://www.statista.com)\
[SunSentinel](https://www.sun-sentinel.com)\
[Tech in Asia]:(https://www.techinasia.com)\
[Telegraaf](https://telegraaf.nl)\
[The Advocate](https://www.theadvocate.com.au)\
[The Age](https://www.theage.com.au)\

@ -61,6 +61,7 @@ var defaultSites = {
'Scientific American': 'scientificamerican.com',
'Statista': 'statista.com',
'SunSentinel': 'sun-sentinel.com',
'Tech in Asia': 'techinasia.com',
'Telegraaf': 'telegraaf.nl',
'The Advocate': 'theadvocate.com.au',
'The Age': 'theage.com.au',

@ -228,6 +228,16 @@ if (window.location.href.indexOf("theathletic.com") !== -1) {
removeDOMElement(banner, subscribe);
}
if (window.location.href.indexOf("techinasia.com") !== -1) {
const paywall = document.querySelector('.paywall-content');
if (paywall){
paywall.classList.remove('paywall-content');
}
const splash_subscribe = document.querySelector('.splash-subscribe');
const paywall_hard = document.querySelector('.paywall-hard');
removeDOMElement(splash_subscribe, paywall_hard);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();

@ -25,7 +25,8 @@
"*://*.the-tls.co.uk/*",
"*://*.leparisien.fr/*",
"*://*.nrc.nl/*",
"*://*.theathletic.com/*"
"*://*.theathletic.com/*",
"*://*.techinasia.com/*"
],
"js": ["contentScript.js"]
}
@ -160,7 +161,9 @@
"*://*.indiatimes.com/*",
"*://*.leparisien.fr/*",
"*://*.lesechos.fr/*",
"*://*.theathletic.com/*"
"*://*.theathletic.com/*",
"*://*.techinasia.com/*"
],
"version": "1.6.3"
}

@ -59,6 +59,7 @@ var defaultSites = {
'Scientific American': 'scientificamerican.com',
'Statista': 'statista.com',
'SunSentinel': 'sun-sentinel.com',
'Tech in Asia': 'techinasia.com',
'Telegraaf': 'telegraaf.nl',
'The Advocate': 'theadvocate.com.au',
'The Age': 'theage.com.au',

Loading…
Cancel
Save