Browse the docs

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 #

ParameterTypeRequiredValuesWhat it does
eventone ofopened audible silent pinned unpinned movedopened, audible, silent, pinned, unpinned or moved. Default opened.
matchrecordbrowser title urlWhich 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
  1. A tab starts playing sound on https://*.example-news.com/*
Do
  1. Mute the tab
Open in Switchboard to try it

Gotchas #

  • A new tab's address is often empty when it opens; use browser.page to react to where it ends up.