firefox-addon

In what order do Firefox extensions get initialised?

When a user has several Firefox extensions, what decides the order in which they get initialised? Specifically, in which order are XUL overlays applied? In most cases the order is not important, but it does affect things like the order in which items appear on the Tools menu, say, or in the status bar. Furthermore, being able to rely on ...

Is it possible to see the data of a post request in Firefox or Chrome?

How can I intersect the post data in FF or Chrome is sending via configuration, extension or code? (Code part makes this programming related. ;) I currently use Wireshark/Ethereal for this, but it's a bit difficult to use. ...

How to suppress the browser's "authentication required" dialog when doing an ajax call that requires authentication?

My users enter a username and password for a third party service. I do an ajax call to that service to authenticate them. The issue is that if they enter the wrong username and password the browser (at least firefox) will display an "authentication required" dialog. If they then enter the correct username and password in that dialog, my ...

What context does the Javascript for XUL execute in?

Is it possible for the javascript you write for a XUL component to interact with the javascript defined in a webpage? Eg, if a particular webpage has a dooSomethingNeat() function, can I have a button defined in a XUL overlay execute that function, or does it live in another namespace? Put another way: if I'm looking to enhance the fun...

open a new window displaying the google search results

Hi, when user selects a text, my extension automatically searches on google the selected text and the search results are displayed on a new popup window. var searchWindow = ww.openWindow(null, "http://www.google.com/search?q=" + encodeURI(annotateSelectText)+"", "searchWindow", "menubar=0,status=0,width=750,height=...

Firefox extension: Add javascript to webpage

Hi, Im working on a FireFox extension that listenes to OnStateChange. When the current document has been loaded it should insert a script to the page and it should be able to call the script on a button event. Now i am able to add a button to all webpages by using: nsCOMPtr NewInputElementTest; rv = htmlDoc->CreateElement(NS_LITERAL_S...

Embed an swf within a firefox extension without showing a security warning.

I need to embed an swf within an XUL panel. The issue I'm running in to is that, because the swf is a local file, flash displays a security warning to the users saying that the local swf is trying to connect to a website. Would it be possible to trick flash into thinking the swf is hosted externally to get around this issue? ...

Javascript in Firefox Plugin: Delay in for loop

I am aware that when coding an extension, there is no way we can delay a function call except for using a setTimeout call but here's what I am trying to achieve in a plugin that I am developing for firefox (this is not for javascript embedded into a webpage by the way): for (var i = 0; i < t.length ; i++) { //Load a URL from an arra...

Generating thumbnails of the webpages visited on a client side

Hi, I developing an extension - firefox so with this extension i keep track of the pages the user visits and now what i want to do is, i want to be able to popup a thumbnail of the webpage when the user hovers the mouse over the link. i have done that using third party websites for generating thumbnials such as http://images.websnapr.co...

Store some text persistently in a browser using Javascript

I am developing a Javascript library to FluidDB HTTP API. Since FluidDB API does not support JSONP I am forced to use AJAX and hence to develop a firefox extension to workaround AJAX's same origin policy. My solution is to include a HTML file inside the extension. That HTML file displays a simple form where the user could enter the u...

Can't deploy extension (firefox)

I am closely following the tutorial here as I attempt to create a Firefox extension. I have the following tree for my extension: backtosearch +-chrome +-content backtosearch.xul +-chrome.manifest +-install.rdf I have created a testing profile for FF called "Extension Testing" and have added a file to the profile extens...

Visual realtime CSS specificy calculator?

I have seen some online css specificity calculators but you have to upload the css files and do some manual work for it to do its work. Is there a visual one like maybe a Firebug extension where when you click or hover over an element, it calculates it right there in real time? ...

How to write FireFox extension with Visual Studio using C# programming language?

I was wondering if it's possible to write Firefox extension using .Net Framework? Had anybody such experience in writing Firefox extensions using C# programming language? Any good sites or guidelines would be very helpful. Here is an example of what I need. Extension to enter phone number and to send SMS Message. I draw it in Paint, s...

Display a password prompt in Firefox

I'm writing a Firefox extension, and would like to display a password prompt. I don't just want to use the JavaScript prompt function, since it doesn't hide what's being typed. Instead, I'd like to have a prompt where the characters typed are replaced with asterisks or dots. Is there some way I can use a built in Firefox password dial...

Updating page HTML causes endless loop

I'm writing a Firefox extension. The extension replaces certain words on the page with other words. Here's the basic code I'm using: function startup() { gBrowser.addEventListener("load", pageLoad, true); } function pageLoad(event) { if (event.originalTarget instanceof HTMLDocument) { var ht = content.document.body.inner...

Selenium IDE 1.0.2 in Firefox 3.5 on Mac

I've tried installing Selenium IDE from their website. The newest version - 1.0.2 - installs fine. After restarting Firefox, I go to "Tools" > "Selenium IDE", and this window opens: No more happens. I can access the menus of Selenium (Create New Test Case, etc.) but clicking them doesn't have any effect. I am using Firefox 3.5.3 on Ma...

add a dropdown menu on clicking on a text in DOM

Hi, Is there a way i can popup a dropdown menu on a webpage when i click on a text? I have a text that is highlighted. The text is highlighted using span tag. so now i have added a eventlistener - click and when i click i want to popup a dropdown menu on the text. I ahve tried by appending a div to the span and then adding the items as ...

div tag for popup menu

Hi, I add a div tag and append it to the body and then i add to add items to the div so that it becomes a popup menu. After appending the to body, is there a way to move the div tag. Actually what i want to do is that i want the div to appear wherever the mouse was clicked on the webpage. By the way i am developing a firefox extension....

Can't load JS file for firefox extension

I have a working firefox extension that currently consists of a button. When I click that button, my XUL file declares oncommand="test();" which simply is an alert("hi!"); . I am including the file like this: <script type="application/x-javascript" src="chrome://myfirstextension/content/resultscollector.js" /> the resultscollec...

How can I prevent Firefox showing my extension's sidebar on startup?

If my own sidebar is left open when Firefox is closed, it is shown again on startup. I find this undesirable and would rather it remain hidden until opened manually. Is it possible to stop this happening? I tried adding this bit of code to my extension's initialisation function in order to close the sidebar if it does appear: toggleSid...