Skip to content

Instantly share code, notes, and snippets.

@watagashi

watagashi/custom_code.js

Last active Jun 29, 2020
Embed
What would you like to do?
const ramboxOriginalTitle = document.title;
function ramboxUpdateTitle() {
document.title = `${
document.querySelectorAll('#reply.new, #direct.new').length > 0
? '(\u2022) '
: ''
}${ramboxOriginalTitle}`;
}
registerPlugin({
newMessageElement: ramboxUpdateTitle,
newDM: ramboxUpdateTitle,
switchTo: ramboxUpdateTitle
});
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.