prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

`source` command no longer working #48

Closed lthurston closed 6 years ago

lthurston commented 6 years ago

I haven't updated chrome-cli since this last worked just fine, so perhaps it's a change in Chrome itself.

I'm running Version 69.0.3497.81 (Official Build) (64-bit) on High Sierra.

Here's what I get:

$ chrome-cli list tabs
[990718318] Untitled spreadsheet - Google Sheets
[990718323] Issues · prasmussen/chrome-cli
$ chrome-cli source
$ chrome-cli source -t 990718323
$

Just nothing. The last time this worked fine for me was the beginning of August and today is the first time I've used my script that relies on this since then.

prasmussen commented 6 years ago

It's a change in chrome. The following also applies to the view source command. To execute javascript you must first allow it under View > Developer > Allow JavaScript from Apple Events. More details here.

lthurston commented 6 years ago

Awesome, thank you!