These are chat archives for rosshinkley/nightmare

29th
Jun 2016
Antonello Pasella
@antonellopasella
Jun 29 2016 05:43
Hi all, there is a working demo with security disabled?
I need to scrape a <embed src> svg but I don't know how
coyotte508
@coyotte508
Jun 29 2016 09:46
I'm not sure that's what you want but you can disable security by giving webPreferences: {webSecurity: false} to the browser when constructing it: https://github.com/electron/electron/blob/master/docs/api/browser-window.md
then you can use javascript as you want by evaluating it in the browser's context
Antonello Pasella
@antonellopasella
Jun 29 2016 11:12
Already tried, I'll share a gist with my example 😓
Ross Hinkley
@rosshinkley
Jun 29 2016 12:18
@antonellopasella i'd like to see the example :)