firefox-addon

Storing cookies via XUL using document.cookie

Hello Everyone, I created a FireFox extension. This extension has some configuration settings and I'd like to store them in a cookie. To store information in a cookie I used the regular JavaScript property document.cookie Initially everything seemed to work fine, but then I noticed that the cookie is just a session cookie. Whenever I r...

Controlling Firefox from C/C++

I'm thinking of creating an application that can use Firefox as a download manager. Is there any way to control Firefox (add downloads, start/stop downloads, etc) from an external program in C/C++? If that is not possible, then perhaps an extension that can do that? If an extension is the only way, then how do I communicate with the ext...

how to create an nsIFile object using URIs

I'm making extension for firefox, and I want to my extension open a file like "file:///home/blahblah/foo.txt" and then put content of this file in text area. Its easy with files "http://", but i cant do this with "file://" ...

Mozila plugin auto update error

I'm receiving the error message "An error occurred while trying to find updates for toolbar " on addon console . I'm using sha256sum hash key and McCoy [ https://developer.mozilla.org/en/McCoy ] for signing the install.rdf and update.rdf ...

How can a bookmarklet access a Firefox extension (or vice versa)

I have written a Firefox extension that catches when a particular URL is entered and does some stuff. My main app launches Firefox with this URL. The URL contains sensitive information so I don't want it being stored in the history. I'm concerned about the case where the extension is not installed. If its not installed and Firefox ...

Access SVG DOM when using ASV plugin in Firefox

I have to develop for Firefox using the Adobe SVG Plugin 6. When using Firefox's native SVG viewing capabilities, I can simply look at document.documentElement, which will give me the root svg element and from there I can navigate the DOM to where I want. With the ASV in Firefox, it appears to make a skeleton HTML file with an embed in ...

python for firefox extensions?

Can I use python in firefox extensions? Does it work? ...

Communication between firefox extension and page javascript

I am developing a web-based javascript/html application with a sister firefox-extension. The application's page-javascript performs a few XHR calls immediately after page-load, in order to bring in and display all the content that the page requires. Is there a way, without polling the DOM, that my extension can know that the page's in...

Is there a way that I can detect if Firefox will open a particular URL in an IE tab?

I have a web page that links to another web application, which unfortunately only completely functions in IE, so, when viewing the original page with another browser (like Chrome or Safari) I display a warning that the application won't operate fully operate unless opened in IE. Of course, some savvy users of Firefox have the IE tabs ex...

Firefox extension to create a new icon or replace existing icon in the location/address bar

I want to create a Firefox extension that creates a new icon in the address bar or replaces the existing one with the one specified in the extension. And then, add some javascript to display this custom logo only when the user is viewing a particular domain. If this is not doable for the location/address bar, displaying the logo on the...

Firefox extension to modify HTML

I want to create a Firefox extension that creates a toolbar button with 2 options - on and off. When On is selected, I want to check if the user is on a specific domain(s) (e.g. www.xyz.com/page1.html) and if he is, I want to edit html of that page and add insert a Javascript entry in that page. I also want to change all the textarea ta...

Time since last user actitivty in firefox

I'm currently developing a firefox extension which checks some server side XML-File on a regular basis (every 2 minutes). I want to add the following feature: Whenever the user is inactive for X minutes the check interval is extended by a multiplicatior of Y until a limit of Z is reached. In order to do so, I need the inactivity time. I...

how to store different values in every tab (firefox extension)

Hello, Im making firefox extension. One function stores value in every tab, to use it later by other function. function setValue(value) { var attr = gBrowser.document.createAttribute("value"); attr.value = value; gBrowser.document.attributes.setNamedItem(attr); }; function getValue() { var attr = gBrowser.document.att...

Firefox plugin or greasemonkey script to insert javascript

I am developing an app that analyzes the typing pattern of a user. To accomplish this, I need to change the HTML of the webpage that the user is on (e.g. yahoo.com) - for all the text box items in the page, add a few javascript functions to capture the key down and key up events. So, I need to be able to add a new javascript to this exis...

How to develop Firefox Addon?

Could you introduce me good referrences or web pages of your recommended development of Firefox Addon ...

Can I improve AJAX with Flash?

I got an AJAX online game that calls server few times per second. AJAX calls are good, but still they are slower than normal TCP/IP-sockets connections. So my questions is, can I improve my game by using - if flash is available - some flash application for server connections? Or maybe there is some solution with Firefox addon (70% of m...

Firefox Extension Development - Data Storage - is Firefox Preferences a good place?

Hello, I have developed a Firefox add-on that needs to save some user-data in the local machine. Right now, I use the filesystem functionality that Firefox provides to create some folders and files in the user's system. Portability is a problem. I designed it for Windows XP. But, Vista's folder structure is different (inside the app da...

FF 3.5 extension: window.title is 'undefined'

From a sidebar in Firefox 3.5 I am getting a reference to the main window with: var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem) .rootTreeItem ...

NS_ERROR_XPC_GS_RETURNED_FAILURE error code

I'm developing extension for Firefox which calls XPCOM component writen in C++ and I get this error: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: chrome://testtest/content/mytest.js ...

What Firefox extension can dump HTTP responses?

I'm familiar with LiveHTTPHeaders and TamperData which can show what is going to be sent to the web server. However, I also want to study the server responses. How can I do this? ...