Created
March 1, 2019 06:55
-
-
Save Jpsern/5ce89dbd0f01ad7cca76d0df230ab47a to your computer and use it in GitHub Desktop.
Qiita の通知カウント欄をいじって遊ぶ
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
//count up | |
javascript:(function(d){ | |
var node = d.querySelector(".st-Header_notifications"); | |
node.classList.add("st-Header_notifications-active"); | |
node.innerText = parseInt(node.innerText, 10) + 1; | |
})(document); | |
//reset | |
javascript:(function(d){ | |
var node = d.querySelector(".st-Header_notifications"); | |
node.classList.remove("st-Header_notifications-active"); | |
node.innerText = 0; | |
})(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment