Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Backlog の通知を雑に title に突っ込む
let DOMNotifications = 0;
const title = document.title;
setInterval(() => {
DOMNotifications = document.querySelector("#globalNotificationsLink > span") ? document.querySelector("#globalNotificationsLink > span").innerHTML : 0;
document.title = "[" + DOMNotifications + "]" + title;
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.