mirror of
https://gitlab.com/arnekeller/yt-addiction-control.git
synced 2024-11-22 16:34:59 +00:00
Hide notification count in tab title
This commit is contained in:
parent
6abd98e142
commit
0fde7b618f
@ -97,4 +97,14 @@ function modifyThings() {
|
||||
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);
|
Loading…
Reference in New Issue
Block a user