Hide notification count in tab title

This commit is contained in:
Arne Keller 2019-07-14 11:48:15 +02:00
parent 6abd98e142
commit 0fde7b618f

View File

@ -97,4 +97,14 @@ function modifyThings() {
showMoreButton[0].click(); showMoreButton[0].click();
} }
} }
modifyThings(); modifyThings();
// attempt to hide the notification count in the title
function hideNotificationCount() {
let a = document.getElementsByTagName("title")[0];
if (a.innerText.match("^\\(\\d+\\).*")) {
a.innerText = a.innerText.substr(a.innerText.indexOf(")") + 2);
}
}
setInterval(hideNotificationCount, 1000);