firefox-addon

using popupNode in a javascript firefox extension

Hello, I am trying to use popupNode in a little javascript based firefox extension. So if a user right click on a link and then clicks on an additional menu item a new tab opens with the link (sorta like "open in new tab"): ` var foo = { onLoad: function() { // initialization code this.initialized = true; }, onMenuItemComm...

rewrite urls in a firefox addon

Hi, I'm writing a firefox addon, and if certain conditions are met, id like to rewrite the URL. Right now its being done in the following fashion if(checkUrl(document.location.href)) { document.location.replace('xyz.com'); } the problem with this is that the old page loads, then the condition is met, and only then is the user redi...

Create Firefox Addon to Watch and modify XHR requests & reponses

Update: I guess the subject gave a wrong notion that I'm looking for an existing addon. This is a custom problem and I do NOT want an existing solution. I wish to WRITE (or more appropriately, modify and existing) Addon. Here's my requirement: -> I want my addon to work for a particular site only -> The data on the pages are encoded us...

window.location.replace in firefox addon removes entire chorme!

Hi, I'm using the nsIWebProgressListener interface to find out if a url has been changed. If it has, I'd like to rewrite the link. Here's a snippet (code taken from the bottom of the page from the link above) var myExt_urlBarListener = { QueryInterface: function(aIID) { if (aIID.equals(Components.interfaces.nsIWebProgressListene...

XUL shortcut keys

Hi Friend, I am developing a Firefox add-on, and for that I have used overlay, now I want that if somebody presses the key like control+j it should open my extension, and if somebody presses ctrl+space it should execute a JavaScript function. I tried this: <keyset id="mainKeyset"> <key id="keyOpen" keycode="VK_J" oncommand="docume...

Is there a Firefox extension that has ReSharper-like camelCase keyboard shortcuts to bookmarks?

I work on multiple client projects and have bookmarks for each one. I'm looking for a way to get functionality similar to ReSharper's ctrl-t (Navigate To Type) behavior for my bookmarks, e.g.: I type BCL and a bookmark named BigClientLocal appears in the result list. Is there a FireFox extension out there anywhere that does this or so...

I added bad js to my website. Now it won't load completely and I can't get to the admin to remove it...

is there a firefox plugin that will let me ignore a certain snippet of code? If I turn off js, the page loads but I can't get to the admin because that requires js. I would like to leave js on, but have my browser simply ignore a couple lines of code. Possible? Thanks! ...

Firefox plugin that can modify incoming data before the page processes it?

Hi, Say a webpage loads an external javascript at load, is there any such FireFox plugin that I could use to modify the javascript before the page actually processes it? (not just specifically javascript) Thanks in advance. (also I'm pretty sure Tamper Data plugin only changes header data and not actual content being received) ...

How can I detect if all images are loaded in document?

Hi, I am developing a firefox extension and need to know that all images are loaded without attaching onload event handler to those images. Is this possible? I tried document.images[0].complete attribute but it always returns true. ...

Turn all links on a page into https within firefox

Lets just say that I wanted to be extra careful with the website I'm visiting (irrespective of whether the site is offered in https) and wanted to convert every href in the web page received into its https equivalent. Is there a way/add-on to do this ? or do I have to write my own :( ...

Determining which song the user is listening at the moment with JavaScript and Firefox

Hi, I am creating a Firefox extension which will be using the Last.fm API. Now I want the extension to be able to determine which song the user is currently listening in WMP or iTunes. Does someone know how I can do this? useful edit: I only need the song name, album name and artist Thanks ...

Firefox: Plugin vs extension?

I'm unclear on the difference between the functioning of a plugin vs an extension. For years, I've written a plain old NPAPI plugin. It lived in /Library/ Plug-ins on mac and somewhere similar on a PC. With Firefox 3.6, it stopped working. Looking around, I see this: http://blog.mozilla.com/security/2009/11/16/component-directory-lockd....

How to view Firefox functions running in a console?

I'm currently learning to become a proper developer for Firefox extensions. I have two questions here: How to view Firefox's XML request? From Firefox, how can I dump/trace every functions running in a Firefox extension? Because I would like to know, which functions are being called, and would like to see my error messages.. Thanks....

How to Run an External jar file from within a firefox extension.

Here is the code I have so far... // Run the external encryption process var fileExe = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); fileExe.initWithPath("~/tmp/Encrypt.jar"); var process = Components.classes["@mozilla.org/p...

Is it possible to store a password in firefox, when request in XUL application?

I'm developing xul extension that has access to a remote system. User must set username and password in xul modal window to get access into the system, but firefox doesn't recognize that user has insert password and doesn't pourpose to save it. Is there some method to save it via firefox, or have I to build some function to store passwo...

Emulate Firebug's ability to smoothly open panes across tabs in Firefox extension

Firebug, from what I can tell, uses one element to display its console. Somehow, it hides and displays the panel in a very smooth fashion when users switch tabs. My goal is to emulate this behavior in my own Firefox extension. For instance, let's say you open three tabs, and Firebug is only opened on the first tab. If you quickly swi...

How do I make an addon run a function whenever a page is loaded.

I am developing a firefox addon and I want it to add an event listener on every form field. How would I implement this. ...

Is there an addon which you can test css selectors in firefox?

I was wondering if there is such an addon in firefox where you can test out css paths to check if they are finding the correct element? I was looking for something similar to xpather for xpath locations. ...

How to extract website information using XPath inside firefox extension?

Hello, I have made a firefox extension which loads a web page using xmlhttprequest. My extension has it's own window opened alongside the main Firefox. The idea of my extension is to load a webpage in memory, modify it and publish in newly opened tab in firefox. The webpage has a div with id "Content". And that's the div i want to mo...

How do I get a number preference in a fennec addon's options box

In fennec, the options box is handled differently. I want to know how to get a number preference in the options box ...