A tab opens, plays sound or moves
Runs the macro when a browser tab opens, starts or stops playing sound, is pinned or unpinned, or moves.
A tab event
Details #
Reports tab changes, not page loads (use A page loads, changes or closes for those). event is opened, audible, silent, pinned, unpinned or moved.
The run starts with the tab's browser, tabId, windowId, url, title, incognito, the event, and openerTabId for a tab opened from another.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
event | one of | opened audible silent pinned unpinned moved | opened, audible, silent, pinned, unpinned or moved. Default opened. | |
match | record | browser title url | Which pages. url is a pattern (https://*.github.com/*/pull/*), a plain start (github.com/apple) or /regex/; title is text (any case) or /regex/; browser is safari, chrome or any. |
Every trigger also takes Limits: a cooldown, the first time each day, every nth time, twice within seconds, a chance, only while you are at the Mac, on one Mac, or in a State. See Limits on any trigger.
Examples #
Mute a tab that starts playing sound on a news site
When
- A tab starts playing sound on https://*.example-news.com/*
Do
- Mute the tab
Gotchas #
A new tab's address is often empty when it opens; use
browser.pageto react to where it ends up.