Created
November 21, 2016 07:12
-
-
Save hrfmmymt/1777fafff3a26db5ef27eacff75b1271 to your computer and use it in GitHub Desktop.
Backlog の通知を雑に title に突っ込む
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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