Work with tabs and windows
Lists, opens, focuses, closes, reloads, moves and groups tabs in any connected browser.
op tabs
Details #
op is one of:
list:[{tabId, windowId, url, title, active, pinned, audible, browser}], filtered bymatch.open(withurl,background),newWindow(private),navigate(url).focus,close,reload,back,forward,duplicate,pin,unpin,mute,unmute.dedupe: close duplicate tabs, keeping the oldest.move(toWindow,index), andgroup(name,color, Chrome family).
Ops that act on tabs take match with all: true, so "close every tab on twitter.com" is one step. Without match or tab they act on the front tab.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
op | one of | Yes | list open focus close reload back forward duplicate pin unpin mute unmute dedupe move newWindow group navigate | Required. |
all | yes / no | |||
background | yes / no | |||
browser | one of | safari chrome front | ||
color | text | |||
index | number | |||
into | text | The variable that receives the result. | ||
match | record | browser title url | , all: Which tabs. | |
name | text | |||
private | yes / no | |||
sample | any value | |||
tab | any value | |||
toWindow | number | |||
url | text | , background, private, toWindow, index, name, color. |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Close every tab on twitter.com
Do
- Close every tab on https://twitter.com/*
Gotchas #
Private windows are left out unless Settings ▸ Browsers allows them.