firefox-addon

Firefox addon that tells you the css style used

Is there a firefox addon or is there a way to use firebug such that you can select some text on the website and it will tell you what styles are being used for that bit of text? At the moment if I select a bit of text that is styled using css imported from elsewhere I would have to go digging manually to find out what style is being u...

Is there any Eclipse plugin for firefox extension creation?

I have starting creating my first firefox extension. I am following http://extensions.roachfiend.com/howto_bug.html But seems creating this without an IDE is very tedious task. Do we have any eclipse plugin for creating firefox extension? Or is there any tool for firefox extension creation? ...

X-FRAME-OPTIONS and Alternatives Ways to Embed Content in Firefox Addons

What I am wondering is if there is an alternative way to load and embed the content into pages using a Firefox Addon. I know I can load the content using things like io-service and scriptableinputstream to avoid the X-Frame-Options issue, but how can I then write that content into an iframe added to the DOM of the page, have it load prop...

On Text Highlight Event?

I'm curious if anyone knows how I would trigger a function to run if/once the user finishes selecting text on the web page? I would like the user to be able to select text, and after a short delay(or immediately, at this point it doesn't matter much) an overlay button appears near the text that the user can then click and I go back and r...

How can i use safe-browsing application object to determine whether a url is reported as phishing site or malware site?

Here is code snippet: Components.classes['@mozilla.org/safebrowsing/application;1'] .getService().wrappedJSObject.malwareWarden.listManager_ .safeLookup(test_url, function(tableName){ if (tableName == 'goog-phish-shavar' || tableNmae == 'goog-malware-shavar') { alert('This is reported by Google! '); }...

HTML - Page's Full Height including the content beyond the scroll

Hi, I need to find out height of a page including the content that goes beyond the vertical scrolls which is hidden. I have searched google and stackoverflow QA's but those solution don't apply to my situation. One condition is I cannot change HTML or BODY css. Basically I am trying this out for a firefox extension All the methods lik...

How To Animate A Panel in XUL For Firefox Add-On

I have written a nice little Firefox Add-On for the company I work for as an IT Ticket System. What it does is notifies managers of new tickets or notifies users of changes to their tickets. I started out using the built in notifer for Firefox on Windows with: var alertsService = Components.classes["@mozilla.org/alerts-service;1"].getS...

Not able to access firefox page from extension

I have created an add-on using firefox's add-on builder. I am able to create a javascript file inside add-on and can invoke a function when a user clicks on the button provided by addon. The problem is I am not able to access firefox's webpage from that javascript file. When I access "document" object, it seems to be different object. A...

Creating a floating button

Hey all, I'm working on a Firefox extension and am out of ideas on how to implement a floating button. I need a button that is overlayed on my page that I can show/hide and dynamically position just about anywhere on my page. I thought I could do something like a fancy CSS tool-tip except replace it with button functionality, but that i...

Adding a node with jQuery in a Firefox extension

Hi guys, I suspect that jQuery is not working ok in my extension... I'm using version 1.3.2, loaded with the following rows: var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); loader.loadSubScript("chrome://myext/content/lib/jquery.js", myext);...

How can I trigger an email+attachment from the browser?

This is for a company intranet app, so everyone is using firefox on XP and I can install whatever is needed. We'd like to setup an email with a pre-made subject and attachment (similar to using mailto), but the mailto spec doesn't allow attachments. Any ideas how it can be done? Perhaps using a ff extension? update: The file is a n...

async line-by-line file reading

When I try to read a file synchronously, Firefox freezes. When I try to read a file asynchronously, I get numbers instead of words. This code snippet... var MY_ID = "[email protected]"; var em = Components.classes["@mozilla.org/extensions/manager;1"].getService(Components.interfaces.nsIExtensionManager); var file = em.getInstall...

How to get notified about IFRAME appended dynamically and loaded?

I need to add an ability to a Firefox extension to handle cases when IFRAME elements are being added dynamically. Is there a way to get notified when IFRAME document is loaded in such a case? For example: <html> <head> <title>iframe test</title> <script type="text/javascript"> function addIFrame() { var ifrm = document.creat...

php plug-in for developers on firefox?

Hi All, Is there any plug-in for firefox that is usefull for PHP development? ...

How to get text from Address Bar in Firefox extension

Hi Experts I am building a Firefox Extension. I am using XUL and Javascript to do this. I need to get the text from my Firefox browser's address bar. Please don't get confused with URL where the browser has navigated, its just the text that user enters before the page redirects. Suppose user is at http://www.myexample.com or whatever p...

firefox disable/enable add-on in a specific page

Hi, I'm programming a system to work with in firefox, based on high end javascript. The users sometimes uses add-ons that conflict with the system. Is there a way i can control from my web-site to disable or enable specific firefox add-ons in a page? Thanks. ...

Limit a firefox extension to a specific domain

I would like to write a firefox extension. This extension is not a generic extension but work specifically for a domain where I need to highlight specific html components. How should I do that? I just want the js loaded when the user is browsing a specific domain. My current overaly.js is basically empty (generated by the Extension Wiz...

Mozilla Extension - tracking data per opened tab.

In a firefox extension I'm temporarily saving data in javascript to show in a sidebar. When a tab is selected, I want to change the text in the sidebar to the right data. What is the best object to use as the "Identifier" for each tab? I'm trying to use the tab object. However, I'm stuck then on how to associate the data to the tab. ...

Firefox XUL: Auto loading toolbar button

I'm fairly new to JS and XUL so please bear with me if this is a noob query :-) I am developing an extension for firefox which performs a custom action when a toolbar button (created by me) is clicked. I have been able to create the button using mozilla examples but what I have seen is that even when the extension is installed success...

How to load file from inside Firefox plugin

I'm working on a Firefox plugin which contains a file holding some HTML data. How do I load in this file as a string? I can do var contents = Components.utils.import("resource://stuff.html"); but that then tries to execute the XML file as Javascript. I just want its contents! ...