Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Archived

Is there any API for firefox screenshot so that I can call it from plugin or js as a simpler solution?

jscher2000 -... replied
ahmadfaizalbh

I have a web app in which I have to take a screenshot of a particular div on button click and save in system as a portable softcopy (.png file) of the report. I have to also customize the view before the report image gets created and reset back once done.

At current using firefox screenshot as it is difficult because there are few things in the app by default display, none or overflow hidden. hence if have to accommodate it then the first step would be press a expand all button then select screenshot and drag-select the region need to be converted to image hence I cant give this to the user. it should be one click download for users then it serves the purpose.

If you have API for the plugin then that would be best. By this, I intend to restrict certain users to only use Firefox.

I have a web app in which I have to take a screenshot of a particular div on button click and save in system as a portable softcopy (.png file) of the report. I have to also customize the view before the report image gets created and reset back once done. At current using firefox screenshot as it is difficult because there are few things in the app by default display, none or overflow hidden. hence if have to accommodate it then the first step would be press a expand all button then select screenshot and drag-select the region need to be converted to image hence I cant give this to the user. it should be one click download for users then it serves the purpose. If you have API for the plugin then that would be best. By this, I intend to restrict certain users to only use Firefox.

All Replies (2)

I don't believe there's a way to use the Firefox Screensohts extension from JS. Does this library do what you're looking for?

There's also another Mozilla site that's probably better for add-on developer questions than this end user support forum:

https://discourse.mozilla-community.org/c/add-ons