Skip to content

Instantly share code, notes, and snippets.

@watagashi watagashi/custom_code.js
Last active Feb 13, 2018

Embed
What would you like to do?
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
});
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.