firefox-addon

How to map response to request when using "http-on-modify-request" and "http-on-examine-response"??

How to map incoming responses to the outgoing requests when using HTTP observers: https://developer.mozilla.org/en/Setting_HTTP_request_headers#Observers ? ...

Facebook via iphone without using an iphone...

How can i trick my wall post using an application or any to trick my wall post so it say 11hours ago via iphone for facebook.It looks so cool... ...

Install Firefox extension using Windows registry

I have developed a Firefox extension and installed in an xpi file. It's working fine. But I need to install my extension in the Windows registry. How can I to do this? ...

"too much recursion" error when calling JSON.stringify on a large object with circular dependencies

I have an object that contains circular references, and I would like to look at the JSON representation of it. For example, if I build this object: var myObject = {member:{}}; myObject.member.child = {}; myObject.member.child.parent = myObject.member; and try to call JSON.stringify(myObject); I get the error "too much recursion", n...

Returning values from FireFox Plugin to Browser

Hi Everyone, I developed a FireFox Plugin using Delphi 7. The only problem I faced and I don't have any idea how to do this, is how to return values from my Plugin to my browser? For example, I have created a function in my Plugin that will return the length of any string (just an example), and i need to pass it to my browser for server ...

firfox extenation to display image in status bar

i am trying to write my first hello world extension for firefox. its working fine, but i also want to display image in status bar & image is not displaying. my folder structure are as follows helloworld chrome.manifest icon.png install.rdf ->chrome ->content ...

Http CONNECT Command

Hi all is there a way from firefox-extension-API to get notified when browser fires CONNECT to the Proxy ( for tunneling Https)? with on-request-... you can only get standard http-methods like get, post, put. thanx ...

Can a Firefox/Thunderbird Extension modify a printed page?

I'm writing a Thunderbird extension that performs a translation of the current message on demand. The translation is appended to the HTML in the message view pane (so it is not persistent). Can a Thunderbird (or Firefox) extension modify the content sent to a printer? I'd like my users to be able to print the translations alongside the ...

Any idea why the X,Y position of this element is 0,0?

I have the following javascript function in my extension: function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft curtop = obj.offsetTop while (obj = obj.offsetParent) { curleft += obj.offsetLeft curtop += obj.offsetTop } } return...

how to replace url of webpage with ip adress

i am trying to basically replace a webpage's url with its ip address for example, instead of www.facebook.com i want to replace it with 66.220.153.11 Rationale i have recently discovered that our school blocks websites based on a particular string patern in the url for example www.facebook.com is blocked but 66.220.153.11 is not ...

Firefox extensions: custom autocomplete

I've found code sample for google autocomplete and created other components for Bing and other search providers, but I can't switch autocompletion. I use following code to change autocompletesearch, but it doesn't work. Component works only if I define autocompletesearch property in XUL. textbox.setAttribute("autocompletesearch", engine...

How to make a toolbaritem appear by default for a Firefox extension?

I'm adding a toolbaritem with a child toolbarbutton to <toolbarpalette id="BrowserToolbarPalette"> in a browser overlay for a Firefox extension which I'd like to be displayed by default when the extension is first installed. What's the best way to do this? ...

What's the best way to be notified when an extension's toolbaritem is being used?

I want to setup label attributes, and event listeners for a toolbaritem when it's being used. Because even though I add my extension's toolbaritem to <toolbarpalette id="BrowserToolbarPalette"> it is not found by document.getElementById unless it is being used. At the moment I have DOMNodeInserted event listeners on the navigation bar an...

Firefox extension development firefox4

So I've been working on updating old extensions for use with FF4 and Gecko 2 but I am having some issues where I am getting an error that says, classID missing or incorrect for component.... Has anyone else had a similar issue or know of how to get around this? function jsshellClient() { this.classDescription = "sdConnector JavaScrip...

How can I detect when user browses certain url ?

Hi All, I'm writing an application, which becomes "useful" once user is browsing certain url. I want to add feature to my application, that it will be automatically launched once user browses this url, I was thinking of writing some sort of watchdog to trigger it. My question is, whether there is a generic way to get notified when use...

Get Path of Images from a Firefox Add-on

Is there anyway to find the file path of images being showed to user in web page , or anyway to find them ? I want source code/programming . ...

Error 0xc1f30001 when calling asyncListen method of nsIServerSocket interface in Firefox while there is no internet connection

CAN'T REPRODUCE ANYMORE The code below works fine when there is internet connection. var socket = Cc["@mozilla.org/network/server-socket;1"] .createInstance(Ci.nsIServerSocket); socket.init(-1, true, -1); socket.asyncListen(nsIServerSocketBug); However once the computer is disconnected from the internet, I get ...

View chrome source in Firefox

It would be extremely helpful for developing Firefox extensions if I could see the source of, e.g., chrome://browser/content/browser.xul with overlays applied. Is there a way to do this? Chrome List and "View Source" show only the base structure, ChromeBug requires restarting the browser and isn't too easy to get working. ...

Have to use back button twice in browsers (Firefox/Chrome/IE); extra # being added to URL

After experimenting with a handful of new addons for Firefox, I've managed to foul up some setting permanently. Using certain sites--take Netflix for example--upon clicking into a details page for a movie, I'll notice a #height1754 being added onto the end of the URL. When I use the back button, the only thing that happens is the ...

Send data between XUL components

Hello, I have an extension composed of a browser overlay(ff-overlay.xul) which launches a sidebar(ff-sidebar.xul) through this code (from mozilla extension generator): (in ff-overlay.xul) <menupopup id="viewSidebarMenu"> <menuitem key="key_openSidebar_testinstallPackage" observes="viewSidebar_testinstallPackage" /> </menupopup> <k...