I'm not finding a way to do this in the chrome.* API or even the experimental. It doesn't run through wscript so
ActiveXObject("Shell.Application")
isn't allowed.
I fear that my only option is to build a dll with NPAPI but I wanted to see if there was a simpler way.
Press F12 to open the chrome developer tool and then click on the console tab. Logging in Script Area example: try writing console. log('Your message') and click Execute button or alternative you can use the log method directly like log('My Message'). Try executing this script on any page.
To update this for a fellow wary lonesome traveler, even NPAPI is deprecated and being phased out. One of the alternatives mentioned in the NPAPI decprecation blog post that looks suitable for this type of problem (and pretty nifty really) is the Native Messaging API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With