Fixed The Toronto Star (#585)

This commit is contained in:
avianna
2020-04-26 14:12:23 -04:00
committed by GitHub
parent c7d46a299a
commit 0adbdf085e

View File

@ -145,12 +145,14 @@ if (matchDomain('nzherald.co.nz')) {
}
if (matchDomain('thestar.com')) {
const paywall = document.querySelector('.basic-paywall-new');
removeDOMElement(paywall);
const tbc = document.querySelectorAll('.text-block-container');
for (let i = 0; i < tbc.length; i++) {
tbc[i].removeAttribute('style');
}
setTimeout(function () {
const paywall = document.querySelector('.basic-paywall-new');
removeDOMElement(paywall);
const tbc = document.querySelectorAll('.text-block-container');
for (let i = 0; i < tbc.length; i++) {
tbc[i].removeAttribute('style');
}
}, 1000); // Delay (in milliseconds)
}
if (matchDomain('afr.com')) {