Eh, links in Flash movies don't change statusbar text for me... so I don't see how hooking the statusbar will help for SWFs.
----- Original Message ---- From: xeen <[EMAIL PROTECTED]> To: Mozdev Project Owners List <[email protected]> Sent: Friday, June 29, 2007 3:29:01 PM Subject: Re: [Project_owners] mouseover for link monitoring! I think he refers to links embetted into SWFs... right? If that's the case you're probably out of luck because as far as I know Firefox only handles its own links - not the ones of plugins. If you still want to hack into the statusbar (I don't know about any way to add a listener, but you can try to hack the function which displays the link in the statusbar) try this: if(nsBrowserStatusHandler) { eval("nsBrowserStatusHandler.prototype.updateStatusField="+nsBrowserStatusHandler.prototype.updateStatusField.toString().replace( 'var text', '/* your stuff */ var text' )); } HOWEVER this method has SEVERAL disadvantages. 1. Watch out for quotation marks and ensure everything is escaped correctly 2. Your find&replace might break in future versions or might be different in every major release. Check often 3. Your extension will probably colide with other extensions hacking the same function 4. The link provided by the function above is only meant for being displayed and is ALREADY ESCAPED. If you want to use the link for anything other than displaying you can't use it (you have to find it, using my function mentioned above). In case you still want to continue and only want to display your link (in a non-copyable way!) you can use this.overLink to access the currently hovered link (if any). In your case I would simply use the function I mentioned in my previous mail. Greetings xeen On 6/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Why doesn't Ezequiel's and Xeen's method work for links whose href is *.swf? > > > ----- Original Message ---- > From: joe ertaba <[EMAIL PROTECTED]> > To: Mozdev Project Owners List <[email protected]> > Sent: Thursday, June 28, 2007 11:03:17 AM > Subject: Re: [Project_owners] mouseover for link monitoring! > > No in my extension i need to use Status bar listener because some times link > are belong to for example flash(*.swf) or .... and your method doesn't work > in that case. "i wonder to monitor all links" > > > > any idea about add listener to status bar label ?? > > > > On 6/28/07, joe ertaba <[EMAIL PROTECTED]> wrote: > > Hi Boys. > > > > i am going to monitor links in a web page. > > > > i am using this command: > > window.addEventListener("mouseover", MyFunction, false); > > > > but it seems that it doesn't works for all links, so anybody have other > ideas ? > > maybe something like monitoring status-bar text changing ,... > > > > > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > > > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > > _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
_______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
