Activate Macro Group on Specific Google Chrome Websites

Hi and welcome to the forum!

I would do this on a per-macro basis rather than activate groups or macros, simply because I'd prefer a macro didn't run on every window title change.

URL-Dependent Snippet.kmmacros (21 KB)

Macro screenshot

However, I can understand why you might prefer to do it the way you're suggesting. For one thing, setting up the snippet macros is a bit simpler, as you can use the trigger string auto-delete feature.

URL-Dependent Macro Enable-Disable .kmmacros (22 KB)

Macro screenshot

You can simplify this further to an If/Else rather than a Switch/Case if you want to enable/disable a group rather than individual macros. I just figured I'd cover as many options as possible; maybe you'd like some snippets only available on certain sites. Here, I've chosen to use matches for brevity, but you could equally use multiple if any conditions.

URL-Dependent Group Enable-Disable .kmmacros (21 KB)

Macro screenshot

2 Likes