I'd like to develop a Firefox Extension that does things when a link click opens a new tab as the result of the link's attributes, and also when "Back" button (or equivalent) is pressed.
How can I hook these two things in an extension?
Update: I've started a bounty - I hope the answer can lead to some hidden documentation site for Firefox Add-Ons. A site that is not Firefox codebase, that is. And not a collection of all extensions ever written.