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