mac-brave
v2019.7.10
Published
macOS Brave Browser.app scripts
Downloads
1
Readme
macOS Brave Browser.app scripts
Installation
$ [sudo] npm i -g mac-brave
Config
$ export BRAVE_TIMEOUT=10 # 5 by default
Scripts usage
command|usage
-|-
brave
|usage: brave command [args]
brave-close
|usage: brave-close url ...
brave-frontmost
|usage: brave-frontmost
brave-fullscreen-detect
|usage: brave-fullscreen-detect
brave-fullscreen-enter
|usage: brave-fullscreen-enter
brave-fullscreen-exit
|usage: brave-fullscreen-exit
brave-isready
|usage: brave-isready timeout
brave-kill
|usage: brave-kill
brave-noisy-tabs
|usage: brave-noisy-tabs
brave-open
|usage: brave-open url ...
brave-pid
|usage: brave-pid
brave-refresh
|usage: brave-refresh url ...
brave-url
|usage: brave-url
brave-urls
|usage: brave-urls
Examples
url(s)
$ brave urls
https://github.com/
https://google.com/
$ brave url
https://github.com/
open/refresh
$ brave open "https://github.com/" "https://google.com/"
$ brave refresh "https://github.com/"
fullscreen
$ brave fullscreen-enter
$ brave fullscreen-detect
1
$ brave fullscreen-exit
frontmost (1
or 0
)
$ brave frontmost
0
Brave Browser.app
process
$ brave pid
42
$ brave isready 5 # timeout 5 seconds
1
$ brave kill