firefox-addon

How do I write a Firefox Addon?

What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere? ...

Updated Firefox Extension - Still says "No updates were found."

I am working on a new version of a firefox extension, but after releasing it, and incrementing the em:version in install.rdf and update.rdf, when I click "Find updates" Firefox reports that "No updates were found." When I run it with debugging on, the output in the console is actually identical to what I see when I don't put the update ...

Can anyone figure out how to update to flash_switcher.xpi to include Flash Player 10

I don't know anything about XPIs but I've searched through the install.rdf, *.js, and *.xul files and found no reference to an array of flash versions, so I cannot clearly see where the version list comes from. ...

Debugging greasemonkey-like scripts

I'm writing javascript code that is read in as a string and executed via eval() by a firefox extension. Firebug does "see" my script so I am not able to use breakpoints, see objects, etc. I am currently using Firefox's error console which I'm starting to find limiting. What are my other options? Ideally, I would be able to use Firebug ...

What does XPCSafeJSObjectWrapper do?

What does Mozilla's XPCSafeJSObject wrapper actually do? MDC's documentation is as follows: This wrapper was created to address some problems with XPCNativeWrapper. In particular, some extensions want to be able to safely access non-natively-implemented content defined objects (and to access the underlying JavaScript object under an...

Protecting Javascript Code in a FF extension

I am looking to protect the code of my Firefox extension because it has server calls in it that no would be a security risk if someone could make them outside of the extension. Any suggestions on how to encrypt it? ...

How can I access the bookmarks toolbar using only shortcuts in Firefox 3

I am not interested in accessing the bookmarks menu or sidebar. The specific goal that I'm trying to accomplish is to be able to easily navigate (using only the keyboard) through the live bookmarks loaded from stack overflow by means of a feed reader and located on my bookmarks toolbar. Notes: I have found an add-on that supposedly d...

Get selected text and selected nodes on a page?

When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript? Imagine this HTML code: <h1>Hello World</h1><p>Hi <b>there!</b></p> If the user initiated a mouseDown event starting at "World..." and then a mouseUp even right after "there!", I'm hoping i...

How to perform a background load and scraping of a page with XUL/Firefox Extension

I want to scrape the user pages of SO to give the owners of my toolbar the updated information on their questions/answers/etc... This means I need to do this in the background, parse the pages, extract the content, compare it with the last run and then present the results either on the toolbar or the status bar, or alternatively, on a p...

How to make Firefox extension auto install in nav bar?

I'm working on a Firefox extension. I'd like to make it auto-install in the far right position on the nav bar when a user installs it. As it stands, a user has to go to View > Toolbars > Customize... and drag the extension to the nav bar once it's installed. I'd like to eliminate this step. The extension is here: http://madan.org/ticker...

Page size: Firefox add on

Hello, does anyone know any firefox add on that can show you the size of the current viewing page? ...

Firefox Bookmarks SQLite structure

Hi, I am trying to write a Firefox 3 add-on which will enable me to easily re-tag bookmarks. For example I have some bookmarks tagged "development" and some tagged "Development" and I would like a way to easily update all the "delelopment" tags to "Development". Unfortunately I can not find an add-on to do this so I thought I would crea...

Firefox plugin to simulate slow internet connection or limit bandwidth?

Is there a Firefox plugin available that will simulate various connection speeds (especially when testing from http://localhost)? I know there are standalone applications to do it, but I'd rather have a plugin. Thanks Edit: Thanks to @UselessAdmin - FirefoxThrottle has now been updated to work on localhost! ...

How to use jQuery in Firefox Extension

I want to use jQuery inside a firefox extension, I imported the library in the xul file like this: <script type="application/x-javascript" src="chrome://myExtension/content/jquery.js"> </script> but the $() function is not recognized in the xul file neither do the jQuery(). I googled about the problem and found some solutions but no ...

Firefox sidebar extension link loaded into a new browser tab. How-To?

I have a friefox sidebar extension. If its opened by clicking on the toolbar icon I load it with a webpage ( that I have authored ). Now, if the user clicks on the link on the webpage ( thats loaded into the sidebar ) I want the linked webpage to open up in a new tab of the main window. I tried with this in my webpage markup: <a target=...

Firefox extension: Embed javascript in a webpage.

I want to insert some script into every page, which have some functions that will be called by the modified HTML of that page, using a Firefox extension. I am able to insert the JavaScript into the head of the HTML, and also modify the page, but the java script functions are not called by the onmouseover event. Does someone has any point...

Firefox extension with jquery 1.3+

I use jquery-1.2.6 within my Firefox extensions and it works great. Some days ago i wanted to update to the current version of jquery (1.31) but this does not seem to work anymore. Here is my technique to include jquery in my extensions: $mb = jQuery.noConflict(); var doc = window.content.document $mb("body", doc).slideToggle("slow"); ...

How do I communicate between threads in JavaScript?

I created an XPCOM object in C++ for a FireFox extension. I'm using a worker thread to listen for an event and when it happens, I need to do stuff on the main thread. Obviously, I can't just sit and wait in JavaScript on the main thread because you need to be able to use the browser (my event happens very rarely). I tried doing this in t...

Javascript in FF Extension versus Bookmarklet

Hi, I wanted to click this button programatically: http://rk.100webspace.net/1.cgi Typing either into the address bar works: javascript:window.content.document.forms[0].elements['Insert'].click(); javascript:document.body.childNodes[3]['Insert'].click(); But neither works when I do it from a extension: function CountP(event)...

How big should a Firefox toolbar button be?

What size, in pixels, should a custom Firefox toolbar button icon be? I've seen quite a variety. Most commonly I've come across 32x32, 24x24 and 16x16 but also 10x10, 15x15, 16x14, etc. I cannot find a definitive reference. Also see: How big should an Internet Explorer icon be? ...