Last active
February 17, 2022 04:41
-
-
Save pbrdmn/dcfa56ecfe9983b38adf62764899e185 to your computer and use it in GitHub Desktop.
Automatically show new messages in Slack "All unread" channel in a browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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