Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
fine-fiddle / mark_teams_chats_as_read.js
Last active March 23, 2023 22:12
Read All Teams Chats
View mark_teams_chats_as_read.js
* MS Teams lacks a "mark all as read" function, and doing it manually is arduous.
* This is the start of userscript to do it automatically. (for
* Teams 'lazy-loads' chats, so click the filter search, then the elipses, and sort by unread.
* Next, scroll to the bottom of your unread chats. Then you can run this script.
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));