firefox-addon

Developing own firefox add-on along with other add-on's

I would like develop on add-on for Firefox , which combine with other available add-on's and make new add-on which providing new features + existing add on feature tooo. ...

Reusing a tab in Firefox, TabOpen event, and beyond

Hi guys. I followed a tutorial on reusing tabs inside Firefox, and right now my extension does it well. However, I also need to reuse tabs that are opened from outside (from some application, start menu etc.). How do I do this? I tried adding an event listener for TabOpen event, but when I log the event.target.linkedBrowser.currentURI....

appendChild in a XUL Firefox addon breaks

I am working on a Firefox addon and I currently need to dynamically add menuitems to a menupopup element. I have tried basically all of the approaches on the Mozilla Developer Center and none of them work. function populateDropdown() { var counter = 0; for (var key in services) { var newMenuItem = document.createElementNS("http:...

firefox extension, jquery and accessing the document.

Hey, I can easily traverse the current window while I'm inside the pageLoad function in my extension using content.document, but when I try accessing it in another function, called with setInterval, I can't access the content.document. I tried content.document, document.defaultView, window.content.document and basically every other sen...

get urls of firefox tabs from firefox extension

In a firefox extension, how do you enumerate the current window's tabs and retrieve their URLs? ...

XUL - Access to image information

Hello All, I trying to figure out how to write a Firefox extension that would give image information when i right-click on the image. Basically, I want image path when user right-clicks on the image. Any help would be greatly appreciated. Thanks. ...

Opening a xul file in response to a toolbar extension button click

I'm currently building my first Firefox extension, and am having a little difficulty with one piece of functionality. I'd like to open a new browser tab in response to a button click on the toolbar. The new tab should contain the contents of a webpage, together with some extra buttons. At the moment I've created a separate xul file for ...

XUL - textbox problem

I am writing a Firefox extension. When a user highlights and right clicks a selected text on a webpage, the extension captures the text and displays it in a textbox (xul window). The textbox shows the correct formating (like the line breaks, spaces, * for li tags.). But the problem happens when i try to store the textbox value in a varia...

Firefox: Get mouse coordinates of top-left corner of viewport

Good day everyone. I am working on a Firefox extension, and I want to pop up a tooltip at a certain offset from the mouse cursor. However, the problem comes when this offset is out of the viewport. It gets displayed but the user will have to scroll over there. I hope to enhance this by moving the tooltip pop-up within the current viewpo...

is it possible to edit/modify the firefox addons after installing?

Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc... ...

writing a Firefox extension to show frameless/transparent window

I am currently developing a Firefox extension. In Firefox's extension you can display a window by calling window.open and specifying the XUL file for that window. You can make it a dialog and/or modal. But there is no way to make the window frameless (no title bar and window borders) and I understand that. Also, it is not possible to mak...

Making 'custom colour dialog' in Firefox

Hello, I am making a Firefox extension and would like to give my users more control over the look and feel of things. In my extension's preference pane, I would like to achieve something close to this:- CodeProject: Custom Color Dialog Box I know I can achieve this by making lots of different divs for as many colours as possible and ad...

Where are the docs for creating Firefox addons?

I'm trying to build a Firefox addon, but I simply cannot find the documentation for the internal (Firefox/Gecko) classes that addons may access. Or is standard DOM manipulation all that's possible? Looking through some addons I see a lot of nonstandard Javascript objects created, so I'm sure there's more to extending Firefox than meets ...

Fastest way to debug Firefox addons during development

Debugging a Firefox addon is a slow process: (1) edit source code in a JS editor (2) package into XPI using a build script (3) drag into Firefox to install (4) restart Firefox (5) open the JavaScript Debugger Can we speeden up the process? Like install it into Firefox without a restart, or configure the build script to install it into F...

Firefox Add ON - To Check for Absolute and Relative Links

Does anyone know if there is some type of tool, preferably a Firefox add on that can check the links on a page if they are absolute links (going to another website) or relative links (within the website)... I have searched on Google, and the Firefox add ons and haven't seen any. How hard would it be to make my own? What do you guys sug...

Can I use a Javascript framework within my Firefox Addons?

I'm writing a Firefox Addon and I was wondering if I could take advantage of frameworks such as jQuery within my Firefox addon source code? Would it be as simple as including the jquery JS file within my addon's package folder and linking to it in my XUL file? ...

IP Address Lookup in a Firefox Extension

I'm writing a Firefox extension and I need to find the ip address of the currently loaded page. I can get the hostname of the page with window.location.host, but is there any way to find the ip for that hostname? I tried looking for the answer at the Mozilla Developer Center but was unable to find anything. EDIT: I would use something...

How can a Firefox extension get its own version number programmatically?

How do I programatically get my own Firefox extension's version number with Javascript? My extension has an install.rdf file containing the version number similar to below. I want to extract the contents of the <em:version> tag. <?xml version="1.0" encoding="UTF-8"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="...

How to disable Firefox add-ons update check on start

I have a problem and I hope you have the answer. Here it is: I start Firefox (Linux) via command line using a cron-job. When there is no update for the add-ons, it start up normally, then I can tell it what to do. However if there is an update for an add-on, then it ask whether to take that update or not. I don't have the ability to de...

Firefox Extension Development: Adding Tabs to the Preference Pane?

I'm adding this: <prefwindow id="BrowserPreferences"> <!-- Create a new pane (tab) --> <prefpane id="whateverPrefs" label="yes!" onpaneload="alert('hey')" image="chrome://helloworld/content/images/man.png"> <!-- Intermediary between GUI and preferences system --> <preferences> ...