Last active
February 12, 2018 16:18
-
-
Save watagashi/cdfff7b8f723f3581eb987b3a0a6f82f to your computer and use it in GitHub Desktop.
twicli for Rambox ( http://rambox.pro )
This file contains hidden or 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
var originalTitle = document.title; | |
function updateTitle() { | |
document.title = document.querySelectorAll('#reply.new, #direct.new').length > 0 ? '(\u2022) ' + originalTitle : originalTitle; | |
} | |
registerPlugin({ | |
newMessageElement: updateTitle, | |
newDM: updateTitle, | |
switchTo: updateTitle | |
}); |
Author
watagashi
commented
Feb 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment