Skip to content

Instantly share code, notes, and snippets.

@TerrorJack
Last active September 20, 2022 14:29
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 TerrorJack/20224d78518168ef4d6516c8abc4b2b4 to your computer and use it in GitHub Desktop.
Save TerrorJack/20224d78518168ef4d6516c8abc4b2b4 to your computer and use it in GitHub Desktop.
setInterval(() => {
for (const sel of [
".c-button",
".p-ia__view_header__button_text",
".p-unreads_view__show_newer",
])
for (const e of document.querySelectorAll(sel))
if (e.innerText && e.innerText.toLowerCase().includes("new message"))
e.click();
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment