Skip to content

Instantly share code, notes, and snippets.

View fine-fiddle's full-sized avatar
💭
apologetic

fine-fiddle

💭
apologetic
View GitHub Profile
@fine-fiddle
fine-fiddle / mark_teams_chats_as_read.js
Last active February 22, 2024 16:16
Read All Teams Chats
/*
* 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.microsoft.com)
*
* 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));