-1

I need to read every url that loads into the navigation bar of firefox (either by type in or by clicking a link), pass them through a filter and decide if allow the url to open or not.

I have some experience on firefox extensions but not with plugins.

Do I need to do it using extensions or plugins for this?

I currently have a BHO for IE that does this, and I get the URLs using the web browser events.

Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236
jarkam
  • 1,538
  • 5
  • 15
  • 20

2 Answers2

1

An extension would be just fine. For what you want to do, you need nsIObserverService, and http-on-modify-request observer.

racetrack
  • 3,766
  • 30
  • 30
  • or alternatively, `nsIURIContentListener`. But in my (admittedly somewhat limited) experience, the way you're suggesting is much easier. – Tyler Oct 02 '10 at 02:48
0

You can use Adblock Plus (See the video)

BrunoLM
  • 97,872
  • 84
  • 296
  • 452