On Aug 14, 1:14 pm, mlabs <[EMAIL PROTECTED]> wrote: > ok well I have been hunting high and ow for the answer to this and > have found nothing promising so far. What I am trying to do is write > the equivalent of an MS IE 'BHO', which is an extension that get's > loaded into Internet explorer every time IE runs. From there, I want > to access the DOM. But I need all this running on Firefox. > I turned to XPCOM, hoping that this would offer similar capabilities - > and maybe it does, but I have yet to figure it out. I wrote a dummy > XPCOM component and got that running in firefox, but the problem is > that the component dll only gets loaded into the firefox process space > when the component is created - currently I test that using some > javascript on an HTML test page. But of course this isn't what I want > - I need my extension loaded all the time - and I need to access the > DOM of every web page, and I need to listen in on various events such > as 'document loaded' and so on ... > > could somebody please point me to the api's i'm looking for... > > 1. BHO-like extensions ... always loaded .. > 2. once loaded, how do I listen to browser events? > 3. once loaded, how do I get access to the DOM ? > > TIA
"Extensions" are Firefox's version of a BHO. The high-level process is: 1. create an extension that merges with the Firefox browser 2. the extension's code will execute in the process of the Firefox browser and can access the Firefox widgets 3. you can use the code samples on http://developer.mozilla.org to listen to browser events and access the DOM how-to build an extension: - http://developer.mozilla.org/en/docs/Building_an_Extension create a simple extension: - http://ted.mielczarek.org/code/mozilla/extensionwiz/ listen to browser events: - http://developer.mozilla.org/en/docs/Code_snippets:Tabbed_browser for more help, use IRC: - http://irc.mozilla.org/ #extdev channel Note: in Mozilla, a "component" is not an "extension" _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
