The Google Chrome NPAPI is being phased out.
Without using NPAPI, is there any way to allow an extension to execute a command on the local system?
Launch the Crossover application and click Install Windows Software. Search for your .exe file and select Unlisted (filename) > Select installer > Choose Installer Files. Your Windows file should start running.
Adding Python to the Chrome extensionWe have two options to add Python into a chrome extension: Method A: Include Brython in an iframe (requires server) Method B: Compile Python to Javascript using Rapydscript (best, serverless, pure extension.)
There is chrome.runtime.sendNativeMessage which can be used to send a message to a native application and chrome.runtime.connectNative which allows for a more persistent connection.
So, you can't directly execute a command, but you can have a native app do it for you.
You can find more info on Native Messaging in the docs.
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