I would like to add a button on a webpage that will execute a command line (let's say a simple echo "The HTML page title is: ...";
), with parameters taken from the webpage.
I'm almost sure it won't be allowed using plain JS (because of security issues) but is there a Greasemonkey way to do so?
I didn't see anything that would match in the greasemonkey API doc, but I still have hope there can be a way to do that (besides using a localhost PHP script loaded by GM_getResourceURL
: I would like to avoid asking the GM script users to setup a local server first; note that this one requires a local server too)...