firefox-addon

jquery datepicker with custom caldendar?

I hate to just come out and ask a question I've made no progress on but the simple reality is that I am not that good with javascript and only able to stumble my way through jquery. But here's what I am attempting to do. I am part of a play by post RPG site that recently has changed its calendar system to something that is a bit more f...

What is the maximum size of local storage available for Firefox add-ons and/or Chrome extensions?

Designing some extensions that will continuously update a dataset that is used to render additional information on webpages. ...

Firefox addon doesn't work when using % in menu label and tooltip.

I am working on a firefox addon, and when I use % for a menu label and tooltip the addon doesn't work (doesn't show up on firefox). I am using the % in a .dtd file like this: <!ENTITY addonName.menuX "%09 (Tab)"> And in the .xul file like this: <menuitem class="menuitem-iconic" image="chrome://addonName/skin/image.png" tooltiptext="...

Firefox: STATE_TRANSFERRING did not fire

I have just modify a snippet from this page: https://developer.mozilla.org/en/Code_snippets/Progress_Listeners But with this code only STATE_START and STATE_STOP were fired. The rest did not fire at all var target = this; const STATE_START = Components.interfaces.nsIWebProgressListener.STATE_START; const STATE_R...

Firefox Plugin keeps busy in Mac OS X

Hi, I developed a Firefox plugin called tellurium-ide for the tellurium automatically web testing framework. Details about the plugin can be found at: http://code.google.com/p/aost/wiki/TelluriumIde080RC1 The plugin works fine for Linux and Windows, but it has problem to work in Mac OS X. In Mac OS X, the cursor keeps spinning once t...

How to dynamically set "src" for browser or iframe element (Firefox extension)

I am trying to create a Firefox extension that uses a flex application. I have tried to wrap it in XUL types ( and ) and I have no preference as to which one I use... whichever works. The problem is that whenever I use a relative path (access through chrome:// or mySWF.html) the flash fails to load. I have a method to search for the a...

Firefox Extension to Summarize CSS Selectors on a Page

I have Google'd this nine-ways-to-Sunday, but can't seem to come up with anything that fits my needs... I'm looking for a Firefox extension (and or Eclipse plug-in) that does the "opposite" of what SitePoint's handy Dust-Me Selectors does. Briefly, I want to be able to go to a page and get a summary of all the class and id attribute val...

Website availability API

I'm one of the developers of TryAgain, an add-on for Firefox that keeps trying to load a webpage when the server cannot be reached. A user recently suggested having the add-on check if the website you're trying to reach is down, or just blocked for the local machine. I was therefore hopeful that there might be a website similar to downf...

Using preferences in XUL

Hi, I'm trying to figure out how to use a preference (the ones you can access by going to about:config) in an XUL file. I'll have a few developers working on this and we all have different "local" hosts configured. So I'd like to make things easier for everyone by making the "example.local" part belos come from a preference setting (stri...

Do XUL applications work only on Firefox

I've seen an XUL-based application recently that supposedly works on the desktop. Isn't XUL the Firefox language? I thought it wouldn't work on anything other that Firefox and certainly wouldn't work as a desktop application. Can someone who knows more about XUL confirm its compatibility with other browsers (IE, Chrome, etc.) and if it ...

Is there any greasemonkey script or addon that deletes the cookies for a particular domain everytime the tab is closed?

I don't like searching with Google while logged into Gmail because I don't want Google to have that data about me even if I have web history disabled. I've noticed that after signing out of Gmail they still leave quite a few cookies. Like the paranoid person I am I always delete cookies after using Gmail. Am I wasting my time? Would they...

How to make a site-lookup addon for Firefox?

I'd like to create an addon for Firefox that would enable me to search a particular site by selecting text on one site and choosing to search another site by selecting that option in the context menu. I already have an extension like that in my browser - the Wikipedia Lookup extension. Basically, I want the exact same functionality but...

Firefox Extension Developement how to debug preferences page?

How do I debug, like console.log(); the Preferences Page of the Extension? Thanks ...

How to read from a serial port using xpcom from Firefox?

Hello, I want to use xpcom to connect Mozilla Firefox to a serial port. The final result should be an xpi addon that can be installed on various environments (cross-platform Windows/Linux with Firefox 3.*). Where should I start? I have found an example here: http://forums.mozillazine.org/viewtopic.php?f=19&amp;t=1083965&amp;start=0 , b...

How to find the firefox version from within a XUL app

I have a firefox addon which works for firefox version 3.0 onwards. However, a particular feature works only for FF 3.5 onwards. I wanted to check from my addon's code that if the FF version is less than 3.5 then I shall disable the particular feature. Can someone please tell me how can I find out FF version from my addon's code? Thank...

Loading CSS dynamically into the active document using a firefox extension and jquery

I came upon this article on using jQuery in Firefox add ins. I have it working just fine but am having a CSS issue. How in the world do you get a CSS file into the current browser document? I've done the obvious: $mb = jQuery.noConflict(); doc = window.content.document; jQuery('body', doc) .append('<link rel="stylesheet" href="ch...

Firefox Plugin Domain Restriction - Similar to IE's SiteLock

Hello everybody, I would like to know if there is any functionality in the Gecko SDK/NPAPI that would allow me to restrict a plugin-usage to restricted domains only. Exactly like SiteLock for IE does with ActiveX components. Any similar implementation in NPAPI, for example? ...

Firefox Extension intercepting dictionary action "add word to dictionary"

I am looking for a firefox extension solution to intercept a firefox dictionary action: When a user chooses the action "add word to dictionary" i want to modify that word before it gets inserted into the user's down dictionary file persdict.dat . Is this possible? And how can it be done? Is there anything special i need to take care o...

Developing FireFox extension, clipboard

I want to listen on an event (clipboard event ?) in order to alter the clipboards content. Actually i did not find out how i can grab the clipboards content after it has been filled (using ctrl+c). I tried to redefine the shortcut ctrl+c, but this way i only get what was in the clipboard before i pushed the shortcut. Where do i need t...

Race conditions with setTimeout in a Firefox extension?

What happens when I call setTimeout in a firefox extension? Is there ever a condition in which multiple callbacks can run simultaneously? My firefox extension contains an array of URLs that I want to take screenshots of. My extension opens 5 tabs, and sets the URLs of these tabs to be the first 5 URLs in the array. Once a page finish...