firefox-addon

Firefox addon: How to show notification bar at the top of the webpage?

Can someone tell me how to popup a notification message inside a firefox addon like the one that Firefox displays to offer to store passwords? I am not talking about the alert boxes... ...

Is it possible to dial a number from a link in Firefox?

Hi, I have put together a small contacts management app in php for my personal use on my localhost. It has nice features as autocomplete search box and all. Now as I am really lazy, I thought probably it would be possible to write an add-on to invoke my fax-modem and actually dial a number with a customized link. I mean something like: ...

HTML elements hooks in firefox add-ons api

I want to write a Firefox add-on. I need to monitor the contents of a DIV element. Is there a way to put a hook or subscribe to the modification of a certain HTML element? I don't want to poll the contents of the DIV (per say) every second, would be nice to be notified when it is changed. Thank you. ...

Hooking "Open in new tab" and "Back"

I'd like to develop a Firefox Extension that does things when a link click opens a new tab as the result of the link's attributes, and also when "Back" button (or equivalent) is pressed. How can I hook these two things in an extension? Update: I've started a bounty - I hope the answer can lead to some hidden documentation site for Fire...

I want to make browser add-ons/extentions, which programming language do i need to learn?

Which programming languages do i need to learn to make browser add-ons/extentions for all the browsers out there? I have been told its Javascript? Thank you in advance. ...

Can Firebug show font-size inheritance tree when using em?

Sometimes some text shows larger than what I expect because the font size in em is based on its parent and the parent on its parent. I would like to see as a visual cue in Firebug or Web developer instead of going up the tree manually to figure out which parent was the cause of the an expected font size. What I am saying I know what is ...

Detecting Firefox extension version.

I have a Firefox Extension that I would like to populate the About box with the version within install.rdf. I know that FUEL's extIExtension allows one to see the version for an extension but I did not create the extension using FUEL (and the docs on MDC seem very light on how to transition to it). Is there a way to dynamically check th...

Figuring out page size with YSlow / Web Developer extension

I'm trying to figure out how much javascript is being loaded on my website. I'm using Reducisaurus to shrink my js files. The problem is, this is causing both YSlow and the Web Developer extension report the size of my files as ~.04K, which I know can't be right (one of the .js files is jquery, which is 50kb). Is there any way to accurat...

Adding alt text to images with firebug

Can somebody please tell me how to add alt text to images on firebug? ...

how can I override an anonymous javascript function attached to an eventlistener?

I found that a website does somewhat sneaky things. When you hover over a link, it shows you the real URL. WHen you click on it, it uses the click/mousedown event to rewrite the URL. I want to override that behaviour in firefox, So I fired up firebug to see what it does. On a mouse click, it executes a function called window.tgs. Easy,...

Getting HTML out of selection / range from a web page in Mozilla Firefox

Hello, I currently using the following the get the selected text from a webpage into a custom firefox extension: getSelectedText: function(){ var textWindow = document.commandDispatcher.focusedWindow; var text = textWindow.getSelection(); if (text == null) {text =' ';} text = text.toString(); text = text.repla...

XML Parsing in Javascript

I'm trying to parse an xml coming from an XMLHttpRequest (for a Firefox extension). In the following code, req is an XMLHttpRequest object. I did req.overrideMimeType("text/xml"); after declaring req. var shortURL; var xmlDoc = document.implementation.createDocument("","",null); xmlDoc.async = false; xmlDoc = req.responseXml; i...

Parsing JSON from XmlHttpRequest.responseJSON

I'm trying to parse bit.ly JSON reply in javscript. I get the JSON vis XmlHttpRequest. var req = new XMLHttpRequest; req.overrideMimeType("application/json"); req.open('GET', BITLY_CREATE_API + encodeURIComponent(url) + BITLY_API_LOGIN, true); var target = this; req.onload = function() {target.parseJSON(req, url)}; req.send(null); pa...

Firefox addon (for firefox 3.5) to monitor web usage

I am looking for a firefox addon that would tell me where I have spent how much time browsing. I came across quite a few addons but they are either not supported in 3.5 or they are no longer supported or cannot be installed. I work on ubuntu linux (9.04) and Shiretoko (Firefox 3.5). I need a solution for this environment. I need stats...

Unit Testing a Firefox Addon

In working on a firefox addon, i've found the task of unit testing to be kinda janky and difficult to setup. Anyone have recommendations on how to setup unit tests for an addon? Any tools or additional addons found to be helpful? I've found Mozmill [ https://addons.mozilla.org/en-US/firefox/addon/9018 ], which I think will be useful to...

Load a dynamically created document in the browser from a Firefox extension

Is there a way to load a DOM document dynamically created from the scope of a Firefox extension to a tab in the current browser? I would like to create an HTML report from a Firefox extension and load it in a new tab in the browser. var doc = document.implementation.createDocument ('http://www.w3.org/1999/xhtml', 'html', null); var ...

Finding the tab that fired an http-on-examine-response event

I'm using the nsIObserverService to monitor the responses, but it fires events for all tabs (browser in Mozilla terminology). I'd like to know which browser is getting the response in my observe method. ...

press Ctrl+Shift+Del outof firefox extension

So, i need to press Ctrl+Shift+Del in a program way. I want my extension to press Ctrl+Shift+Del and then press 'Enter' (to clean all history,cookies,cache and so on). i do next: var e=document.createEvent('KeyboardEvent'); e.initKeyEvent( 'keypress', true, true, window, true, false, true, false, 46, 0); document.dispatchEvent(e); Acc...

Firefox extension development - reference to extension path

Hi all, I develop a firefox extension for configuration printer automatically. I want to create a configuration file at where extension was installed. can anybody help me? ...

Firefox plugin to follow links and convert

I am wondering is there a firefox plugin that follows the link(links) and convert the content to some specific format ( pdf , doc etc ... ) Having this kind of plugin allows us to minimize the time to traverse the links , saving the content and merging the content . I happen to know there is one plugin "SnapLinks" , it just open multi...