Clean Up Google Chrome Tabs

Trigger is setup for my setup which is off a Stream Deck. Adjust as needed.

Macro switches to Google Chrome, goes to the first tab and prompts if you want to close it or not. If you say Yes, it closes the tab and goes to the next. If you say No, it goes to the next tab. If you say Stop, the Macro stops.

I made this because my Chrome browser just overflows with tabs. This was a quick executable that made me sit down and clean it out by just saying yes or no.

Clean Google Tabs - First tab.kmmacros (6.7 KB)

1 Like

Hey @KM_newbie,

Welcome to the forum!   :smile:

-Chris

1 Like

Thanks!

Not exactly a coding masterpiece, I know. But I was looking at my Chrome browser and what a mess I always make it. This just seemed like a good way to make me clean it now and then.

1 Like

Anything that does a job faster than you can do it by hand is an improvement – even if it's clunky.

:sunglasses:

As you gain proficiency with Keyboard Maestro some of that clunkiness will diminish, and some won't – because some jobs just can't be done smoothly on macOS.

-Chris

2 Likes

Realized I was launching Chrome from my trigger device. This triggers Chrome from the Macro.

Clean Google Tabs - 1st tab v2.kmmacros (7.3 KB)

Clean Google Tabs - 1st tab v2