I need to create an about: page, to display addon options. I have seen ti done before, but there seems to be no option in the SDK that allows you to do that.
Is there another way I could let users type about:pagename and get to my page?
I would prefer not to redirect all tabs with a URL of about:pagename
to another options page.
Thanks in advance
I think this is a better solution if you are using the addons-sdk:
Credit goes here: https://stackoverflow.com/a/9196046/1038866
But there are other ways. You could take a look at the
Scroll to Top
addon which implements this: https://addons.mozilla.org/firefox/addon/402816This is the
index.js
file for a restartless add-on developed usingjpm
:Basically it registers a custom about page that will be loaded when you access
about:foobar
. The loaded page is just a line of text.This is how it looks like:
You can see a working example here: https://github.com/matagus/about-foobar-addon