Anda juga bisa menggunakan utilitas open-source chrome-cli
. Anda dapat menginstal dengan Homebrew:
brew install chrome-cli
Juga, perhatikan satu hal dari README:
Untuk menjalankan javascript, Anda harus mengizinkannya terlebih dahulu di bawah View > Developer > Allow JavaScript from Apple Events
.
Begini tampilannya:
$ chrome-cli list tabs
[1889] Edit - Super User
[1918] prasmussen/chrome-cli: Control Google Chrome from the command line
[1905] Yotto Winter Mix 19 by Yotto
$ chrome-cli list links
[1889] /superuser//posts/1407956/edit
[1918] https://github.com/prasmussen/chrome-cli
[1905] https://soundcloud.com/yotto/yotto-winter-mix-2019