File tree Expand file tree Collapse file tree 1 file changed +24
-11
lines changed Expand file tree Collapse file tree 1 file changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,36 @@ chrome-cli
3
3
4
4
5
5
## Overview
6
- chrome-cli is a command line utility for controlling Google Chrome on OS X.
7
- It is a native binary that uses the Scripting Bridge to communicate
8
- with Chrome.
6
+ chrome-cli is a command line utility for controlling Google Chrome compatible browsers on OS X.
7
+ It is a native binary that uses the Scripting Bridge to communicate with Chrome.
8
+ chrome-cli has been tested with the following browsers:
9
+ * Chrome
10
+ * Chrome Canary
11
+ * Chromium
12
+ * Brave
13
+ * Vivaldi
14
+
15
+
16
+ ### Other browsers
17
+ By default chrome-cli communicates with Chrome, but you can use it with other browsers by settings
18
+ the ` CHROME_BUNDLE_IDENTIFIER ` environment variable. I.e. to use chrome-cli with Brave you can run the following command:
19
+ ``` bash
20
+ CHROME_BUNDLE_IDENTIFIER=" com.brave.Browser" chrome-cli list tabs
21
+ ```
22
+ Check the [ scripts directory] ( scripts ) for some convenient wrappers.
23
+
24
+
25
+ #### How do I find the bundle identifier?
26
+ The following command will print out the bundle identifier for Brave
27
+ ``` bash
28
+ mdls -name kMDItemCFBundleIdentifier -raw /Applications/Brave\ Browser.app
29
+ ```
9
30
10
31
## Installation
11
32
12
33
#### Homebrew
13
34
brew install chrome-cli
14
35
15
- #### Manual
16
- - Save the 'chrome-cli' binary to a location in your PATH (i.e. ` /usr/local/bin/ ` )
17
-
18
- ##### Downloads
19
- - [ chrome-cli-darwin-1.6.0-x64] ( https://github.com/prasmussen/chrome-cli/releases/download/1.6.0/chrome-cli )
20
- - [ canary-cli-darwin-1.5.0-x64] ( https://drive.google.com/uc?id=0B3X9GlR6EmbnTmZ2VmxRdmxRaFU )
21
- - [ chromium-cli-darwin-1.5.0-x64] ( https://drive.google.com/uc?id=0B3X9GlR6EmbnXy1BTF9fQ0ZVN00 )
22
-
23
36
24
37
## JavaScript execution
25
38
To execute javascript you must first allow it under ` View > Developer > Allow JavaScript from Apple Events ` .
You can’t perform that action at this time.
0 commit comments