Use FireFox screenshot function from javascript
Asked Answered
V

0

6

For the company I work at, I have to develop an addon that takes screenshots of the page and then puts a watermark on it with a timestamp.

Is it possible to use Firefox's own screenshot function from within JavaScript? I know you can type :screenshot in the console which will make a screenshot and output where it was saved. Yet I doubt I can call this from javascript.

Vesture answered 14/11, 2018 at 10:13 Comment(3)
Even if it would be possible, you likely would need to force the user to use firefox, which is not exactly the best practice. I would suggest you to take a look at similar topics, like this: #34272774 , this: #4912592 and this: #5622407Illusive
That would not be a problem. The addon would only be available in our own product, which is an adapted firefox browser that is served to the user through rdp.Vesture
Ok, then I guess you can try with this: developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/… (make your own extension and call it from your own js) Read more here: developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/…Illusive

© 2022 - 2024 — McMap. All rights reserved.