Firefox add-on tab-specific buttons and scripts, similar to Page Actions in Google Chrome

Posted by Chetan on Stack Overflow See other posts from Stack Overflow or by Chetan
Published on 2010-05-19T10:08:52Z Indexed on 2010/05/19 10:30 UTC
Read the original article Hit count: 377

I want to write a Firefox extension that acts exactly like the built-in RSS feed scanner (as an exercise). It should do the following:

  1. On each new page / tab load, it should scan the content of the page for RSS feeds
  2. If there are RSS feeds in the page, it should put a button in the location bar that the user can click
  3. On clicking the button, a speech bubble should appear under the button (the way a speech bubble appears under the bookmarks star when you click on it), with information on the feeds and buttons to subscribe to them

So my main questions are:

  • What is the process to run specific content scripts for specific pages?
  • What is the process to use the results of those scripts to update the speech bubble for each location bar button for each tab?

Basically, I'm trying to figure out how to do in Firefox what Page Actions are in Google Chrome.

Please help! :)

© Stack Overflow or respective owner

Related posts about firefox

Related posts about firefox-addon