Close Browser Tab with Specific Title (Zoom usecase)

Like just about everyone now a days, I use Zoom..

Zoom works great, just click on a link, and the browser opens a tab, that pages launches zoom. Easy Enough.

But, annoyingly, those stale browser Tabs fill up the browser.. Annoying.

I'm trying to figure out how to close a Chrome Browser Tab.. The Tabs have a common Title.

The title is Something like this "Launch Meeting - Zoom"

Any tips, or advice to close these tabs, I think I can figure out the rest.. I guess worst case, I could open a new Chrome Browser, then Close that Chrome Windows once I launch a Meeting.

Fun Product, saves me so many keystrokes !

An old request, but still very relevant.

This is what I came up with, and it's working well for me. It scans all Chrome windows, and closes all of the open "leftover" browser tabs left by MS Teams meetings as well as Zoom meetings.

Clean-Tabs.kmmacros (2.5 KB)

(this is basically cribbed from this comment from @cdthomer - gracias!)

It's been a while but, IIRC, when you click the link your browser activates and creates a new tab/window frontmost. Then Zoom/Teams activates.

If that's right then you could simply test the %FrontBrowserTitle% every time you activate Zoom/Teams, sending ⌘W if required. Something like:

oooh, I really like your approach from the standpoint of "avoid the mess in the first place" - however there is an occasional situation where I might still reference that leftover tab, perhaps as an easy way to quickly rejoin the same meeting. So I think I'll stick with my slightly-more-manual cleanup.