Script Kit
by John Lindquist
Open main menu
Browse Scripts
Blog
Discuss
Scripts
/
John Lindquist
/
Chrome Tab Switcher
Install
Add to Kit.app
John Lindquist
// Menu: Chrome Tab Switcher
// Description: List all Chrome tabs. Then switch to that tab
// Author: John Lindquist
// Twitter: @johnlindquist
let
tabs
=
await
getTabs
(
)
let
url
=
await
arg
(
"Select Chrome tab:"
,
tabs
.
map
(
(
{
url
,
title
}
)
=>
(
{
name
:
url
,
value
:
url
,
description
:
title
,
}
)
)
)
focusTab
(
url
)