macOS Google Chrome.app 脚本
项目描述
安装
$ [sudo] pip install mac-chrome
$ [sudo] npm i -g mac-chrome
配置
$ export CHROME_TIMEOUT=10 # 5 by default
示例
url(s)
$ chrome urls
https://github.com/
https://google.com/
$ chrome url
https://github.com/
打开/刷新
$ chrome open "https://github.com/" "https://google.com/"
$ chrome refresh "https://github.com/"
全屏
$ chrome fullscreen-enter
$ chrome fullscreen-detect
1
$ chrome fullscreen-exit
前端(1
或 0
)
$ chrome frontmost
0
Google Chrome.app
进程
$ chrome pid
42
$ chrome isready 5 # timeout 5 seconds
1
$ chrome kill