mirror of
https://gitlab.com/arnekeller/yt-addiction-control.git
synced 2024-11-09 10:20:39 +00:00
Hide notification count in tab title
This commit is contained in:
parent
6abd98e142
commit
0fde7b618f
@ -98,3 +98,13 @@ function modifyThings() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
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