Add Tech in Asia

master
magnolia1234 2020-01-01 19:24:29 +01:00 committed by GitHub
parent 0147dfd9c7
commit d027468028
3 changed files with 11 additions and 1 deletions

View File

@ -367,7 +367,7 @@ _gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
//var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function isSiteEnabled(details) {

View File

@ -299,6 +299,15 @@ if (window.location.href.indexOf("hbr.org") !== -1) {
removeDOMElement(popup);
}
if (window.location.href.indexOf("techinasia.com") !== -1) {
const paywall = document.querySelector('.paywall-content');
if (paywall){
paywall.classList.remove('paywall-content');
}
const paywall_hard = document.querySelector('.paywall-hard');
removeDOMElement(paywall_hard);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -63,6 +63,7 @@
"SOFREP": "sofrep.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",