Browser Controller 作者: Matthias Hörmann
Provides a way to inspect and control browser windows and tabs from a Rust CLI program. It also allows watching an event stream of window and tab events. The Event stream and CLI output use JSON for simple scripting with e.g. jq
擴充套件後設資料
關於此擴充套件
This is meant to allow a power user to integrate browser window and tab control with other parts of their environment, e.g. shell scripts, window manager or compositor shortcuts, system services or timed jobs.
For ease of scripting the output can optionally use JSON and the event stream of browser events uses newline delimited JSON objects.
Currently, as of 0.1.5 it allows listing, opening and closing windows as well as setting and removing a window title prefix that can be used to e.g. distinguish different Firefox windows from each other if you want your window system rules to always move one to your left screen and the other to your right screen or want to open work tabs in a specific window and personal tabs in another.
For tabs it allows listing, opening, activating, navigating to a new URL, closing, pinning, unpinning, warming discarded tabs up, muting and unmuting tab audio, moving the tab to a different position in the window's tab bar and going forward and backward in history.
When opening a new tab it can also optionally remove credentials embedded in the URL of basic auth pages after they have been cached by the browser so they can't be seen over the user's shoulder or accidentally copied.
The event stream includes events for basic window and tab operations like opening, closing and activating another tab as well as changes in titles and notifications when a page has finished loading.
Note: My primary testing and development platform for this is Linux but I do provide binaries for other desktop platforms for the Rust side of this. Bug reports from users on those platforms are welcome if I overlooked some minor platform-specific issues. This is not really meant for use on mobile platforms since CLI use is uncommon there.
For ease of scripting the output can optionally use JSON and the event stream of browser events uses newline delimited JSON objects.
Currently, as of 0.1.5 it allows listing, opening and closing windows as well as setting and removing a window title prefix that can be used to e.g. distinguish different Firefox windows from each other if you want your window system rules to always move one to your left screen and the other to your right screen or want to open work tabs in a specific window and personal tabs in another.
For tabs it allows listing, opening, activating, navigating to a new URL, closing, pinning, unpinning, warming discarded tabs up, muting and unmuting tab audio, moving the tab to a different position in the window's tab bar and going forward and backward in history.
When opening a new tab it can also optionally remove credentials embedded in the URL of basic auth pages after they have been cached by the browser so they can't be seen over the user's shoulder or accidentally copied.
The event stream includes events for basic window and tab operations like opening, closing and activating another tab as well as changes in titles and notifications when a page has finished loading.
Note: My primary testing and development platform for this is Linux but I do provide binaries for other desktop platforms for the Rust side of this. Bug reports from users on those platforms are welcome if I overlooked some minor platform-specific issues. This is not really meant for use on mobile platforms since CLI use is uncommon there.
由 1 位評論者給出 0 分
權限與資料
更多資訊
- 附加元件網址
- 版本
- 0.1.5
- 大小
- 15.44 KB
- 最近更新
- 10 天前 (2026年4月2日)
- 相關分類
- 隱私權保護政策
- 閱讀此附加元件的隱私權保護政策
- 版本紀錄
- 新增至收藏集