Skip to content

Instantly share code, notes, and snippets.

@pbrdmn
Last active February 17, 2022 04:41
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 pbrdmn/dcfa56ecfe9983b38adf62764899e185 to your computer and use it in GitHub Desktop.
Save pbrdmn/dcfa56ecfe9983b38adf62764899e185 to your computer and use it in GitHub Desktop.
Automatically show new messages in Slack "All unread" channel in a browser
setInterval(()=>{
document.querySelector('button.c-button.c-button--primary.c-button--medium')?.textContent.includes('new message')?.click();
document.querySelector('button.c-button-unstyled.p-ia__view_header__button.p-ia__view_header__button--with_label')?.textContent.includes('new message')?.click();
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment