Skip to content

Instantly share code, notes, and snippets.

@watagashi
Last active Feb 12, 2018
Embed
What would you like to do?
twicli for Rambox ( http://rambox.pro )
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
});
@watagashi
Copy link
Author

watagashi commented Feb 12, 2018

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment