Update contentScript.js

master
frantzkamus 2019-10-29 11:30:06 +01:00 committed by GitHub
parent 0c8f90e490
commit 1413a4b53f
1 changed files with 12 additions and 0 deletions

View File

@ -169,6 +169,18 @@ if (window.location.href.indexOf("canberratimes.com.au") !== -1) {
}
}
if (window.location.href.indexOf("ledevoir.com") !== -1) {
const counter = document.querySelector('.full.hidden-print.popup-msg');
removeDOMElement(counter);
}
if (window.location.href.indexOf("thehindu.com") !== -1) {
const counter = document.querySelector('.hidden-xs.row.entryCommonSubDiv');
removeDOMElement(counter);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element)