Skip to content

Instantly share code, notes, and snippets.

@watagashi watagashi/customCode.js
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.