Further to my previous topic about screenshots.
Probably a silly question, but is it possible to call Firefox Web Console helper functions from JavaScript at my website? Say, I have some button and it calls for a screenshot function:
function downloadScreenshot()
{
if(navigator.userAgent.toLowerCase().indexOf('firefox') === -1)
{ alert("Firefox-only"); return; }
eval(":screenshot --selector '#some-div' --dpr 1");
}
If I try to run this I naturally get SyntaxError: expected expression, got ':'
.
Firefox Developer Edition 63.0b10 (64-bit).