I’d like to zoom in and out webpages using Firefox addon but I can’t find anything in documentation addon docs. I’d like to make it work as Ctrl + mouse wheel or Ctrl + + / - but it should use my addon. Please help.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ChromeWindow exposes a FullZoom object which allows to programmatically control zoom.
However I don’t think you can reach it from the Add-on SDK.
Edit:
In light of Wladimir’s answer, I would recommend the following
While you can’t set arbitrary zoom factors, the bonus is that you get housekeeping for free, i.e. per site persistance of the zoom factor.
Check FullZoom at mxr