Skip to content

Instantly share code, notes, and snippets.

@watagashi
Last active February 12, 2018 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watagashi/cdfff7b8f723f3581eb987b3a0a6f82f to your computer and use it in GitHub Desktop.
Save watagashi/cdfff7b8f723f3581eb987b3a0a6f82f to your computer and use it in GitHub Desktop.
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

image

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