firefox-addon

Execute function on webpage?

Say a webpage has a function like: function abc (){ return 'abc'; } How would I execute and receive the return value of that function from my extension? I've tried this, no dice: var s = getBrowser.contentWindow.abc(); Thanks in advance! ...

firefox addons for capturing form submission?

is ther any tutorials on how to develop an addons for firefox about capturing form submission? ...

Is there a setting in FireFox to allow the parent document access to the DOM of an IFRAME on another domain?

Notice how Firebug can access the DOM of cross domain iframes and even allow you to modify them? I'm wondering if there is an firefox addon extension or a config setting that will allow a page on our intranet to do this. Longer explanation: I have a two "kiosks" in our reception area that the public can use. As we're running in kiosk m...

How do you delete an object from a tree in XUL with the delete key?

I'm building a Firefox extension and would like to allow the user to delete objects from the tree with the delete key. I currently call a function when the user presses a button, but would like to allow them to just press the delete key on their keyboard. ...

Firefox launching Clickonce: Anyway to determine if Add-on is installed?

I have a Clickonce application that installs fine in Firefox if the .Net Framework Assistant Add-on is installed (and enabled). If it is not installed or enabled, it doesn't work as expected. I'm using an ASP.Net page to do some prerequisite checks and would like to detect of the Assistant is installed, but haven't had luck finding anyt...

What's the simplest way to persist a small string in my FireFox extension?

I'm writing an extension, and I'd like to save a small API key so that it is always available in future sessions. What's the simplest way to do this? ...

Read firefox extension version from the extension code itself

Hi, I'm developing a firefox extension and I'm looking for a way to access (read) the version of my extension from the extension code itself. Thanks. ...

How to call a function inside chrome/plug-in from html page?

Hi, I am developing one Firefox plug-in. In that, I am using sidebar and I am having an iFrame element within that with the source content from a HTML page. Now, I want to call a JavaScript function which is inside the 'chrome' (i.e. inside the plug-in) by an onClick() event on the HTML page, loaded in the sidebar. Is it possible? Ple...

How do skype extensions for browsers actually work?

We have plans of developing a web application that will have to communicate with our locally running application. One of the possible options is using browser extensions. I was looking into how Skype add-ons to browsers communicate with Skype client. In Firefox, Skype add-on inserts a piece of HTML when it encounters a phone number. Is...

Export or save html source including iFrame's html

In FireBug the HTML view displays the full html of the page including the html of the iFrames. Is there a way to save this same html view or using another FF extension to save the full html? Meaning the saved file will have the html, body and the rest of the dom for the iFrames. I know I can view and save the individual iFrames' HTML but...

Why isn't document.evaluate working?

I am using this in a Firefox extension and can't get it to work. var allLinks = document.evaluate( '//a[@href]', window.document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); window.alert(allLinks); This alerts "[object XPathResult]". However the following always returns "0". (And...

How to close a sidebar in firefox

I have a sidebar inside my firefox addon. I want the following behavior for this sidebar - I should force close the sidebar if it is open when the browser is being closed (so that the next time the browser is opened the sidebar is not in an open state). I am trying to do this: uninit: function() { var sidebarWindow = document.getEle...

XUL tabbox tab label height

I have created a tabbox using the following code (with a screenshot attached). How do I set the size of the tab to be larger so there is padding around the label? <tabbox> <tabs> <tab label="A LABEL"></tab> </tabs> <tabpanels> <button> </tabpanels> </tabbox> I have tried the following CSS: tab, tabs...

How to call a function in the sidebar when main window document loads?

HI, I am having a Firefox plug-in with sidebar. I am having a function in the sidebar. I want to check for the readiness of the document in the main window. If the main window document is ready, the function inside the sidebar should be called. The coding should be inside the sidebar JavaScript as the main window content will be from d...

How to use Firefox Firebug on Sub-Menus

Hi, How to use Firefox Firebug on Superfish v1.4.8 Vertical Menu sample but on the sub-menus not the top menu. Superfish Menu I basically want to be able to freeze Firebug on a sub-menu selection to process but unsure how to. Thanks. ...

Change page before show

Hi... I'm developing a mozilla Add-on, and i would like to know, how to change a page that is requested by ajax before the response be sent.. Let's say that in stackoverflow i have a button and when i click call this function: h = new XMLHttpRequest(); h.open("GET", "somepage",true); h.onreadystatechange=function() { if (h.readySt...

How to set cookie under my firefox addon?

How to set cookie under my firefox addon? function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "")...

Firefox extension, accessing the document

I am having trouble accessing the document in my firefox extension. I am trying to get *target*.addEventListener("DOMContentLoaded", Run.writeToFile(line.value), false); to work, however I keep getting errors no matter what I try for my target. I have very little understanding of all of this and have pretty much tried everything I could ...

Firefox gBrowser.getBrowserForTab but no gBrowser.getTabForBrowser ?

In the Javascript for a Firefox extension, you can call gBrowser.getBrowserForTab but there is no gBrowser.getTabForBrowser. So I wrote my own and it works, and I'm just curious if there's any reason I shouldn't be doing this, or if there's anything wrong with the code. The following is in my init method that gets called when the window ...

Can you get a list of Firefox add-ons programmtically

I spent a fair amount of time trying to determine why my view of a site didn't match a clients, after looking at the cache etc. we determined the problem to be with one of the add-ons (Adblock Plus in this particular case). It would have been much simpler if we could have had an easy way to query what add-ons were installed, and ideally ...