firefox-addon

activate or deactivate Addons via command line or config file

Is it possible to activate or deactivate firefox addons via command line or config file? ...

Block all content on a web page for people using an Adblock-type browser add-on/extension?

I wish to block ALL my content from any users using an ad-blocking browser extension (ie. Adblock Plus for Firefox, Adthwart for Chrome). How can I acheive this? Is there a server-side solution? Client-side? Edit 1 This question regards the detection of ad-blocking browser extensions: http://stackoverflow.com/questions/1185067/detec...

how to call a function in Firefox extension from a html button

How to call a Javascript function declared in my extension, using a html button from my web page? I have a html page, with a button inside. When the user click the button, it will call a function that I already declared inside my own firefox extension. ...

Firefox extension that writes to its own log file

After a whole day figuring out how to write something from my browser to a local text file.. Im thinking of something like for example a Firefox extension that has a log file. Is there any way that my extension can write to my extension. Means, inside my extension got a log file. For information I'm developing for Linux platform. ...

Add on in Safari and Firefox on Mac

Hello All, I want to create a toolbar and a button over this tool as an add on in Safari and Firefox. I never created one, so if anyone could suggest me what are actually required to create add on for them, it would be highly appreciated. I want to develop this add on for browser versions of Mac. Thanks, Rahul ...

can anyone recommend a firefox plugin so I can see exactly what is being sent to a post form?

I'm trying to debug my form POST code. Is there any firefox plugin so I can see exactly what the browser is sending (rather than monitor at the server side)? ...

Finding all elements within a region

If i want to find all elements that are inside a box region, what is the best way to do it as a Firefox extension? If i check all leave elements and call getBoundingClientRect(), it'd be too slow given that there can easily be more than 500 leaves on a page. Any help will be appreciated. Thanks. ...

Detect browser's default search engine in Javascript

I'm writing a piece of code for a Chrome+Firefox extension that redirects users to a search results page for a given string. Currently we redirect to the google search results, and instead of building our own option for search engines, I was wondering if there is a way to use whatever search engine the browser is set to use. I was wonde...

Will I be able to get a list of registered event handlers on a DOM node inside a firefox extension?

I don't know a thing about implementing extensions in Firefox, but having not seen an extension that does anything like this in the Mozilla's addons page, I don't believe it is possible, but thought I will ask about it anway. ...

How do I make a Firefox extension (add-on) that only becomes available for a specific site?

I want to develop an extension that activates only for a specific domain. I don't want it to appear in browser menus while not browsing this specific domain. Is it possible to do that? ...

Firefox addon, accessing selection object via javascript

the javascript file contains this code: function getSelected(win) { sel = win.getSelection(); alert(sel); } The browser.xul file contains this: <popup id="contentAreaContextMenu"> <menuitem id="selection" label="Select text" accesskey="S" oncommand="getSelected(window);"/> </popup> The alert is blank, why? ...

working with none english text in firefox extension (addon)

This is the code that I have in javascript file inside my addon: function ShotText() { var inputString = "שלום"; //Hebrew letters alert(inputString); } When I run this function using addon I get this: But if I run the same code without addon (regular javascript function), I get this: Where is the problem?...

How can I use Prototype in a Firefox extension?

I understand that jQuery is the preferred Javascript framework for Firefox extensions, but I'm comfortable with Prototype and need to implement a simple Firefox extension. Unfortunately, I'm having trouble invoking a Prototype method. Each method call is resulting in a no-op: there are no errors or other signs the method call occurred....

How can I open an URL in a hidden tab in Firefox

I'm developing a Firefox add-on and want to get the document content (DOM Elements) of an URL for parsing some data but don't want user to see this action. Is there any way to open an URL in a hidden tab and get the document content of this tab? Or any other solution? ...

What is the difference between a Firefox extension and a Firefox add-on?

The terms "extension" and "add-on" seem interchangeable, but I have seen instances where people seem to mean different things with "extension" vs "add-on." Clarity please? Thanks! ...

Cant find a way to open AppData/LocalLow directory

I am able to get path to User 'AppData/Local' folder as follows. appdatafile = Components.classes["@mozilla.org/file/directory_service;1"]. getService(Components.interfaces.nsIProperties). get("LocalAppData", Components.interfaces.nsIFile).path; Can anyone help me to get the 'AppData/LocalLow' user folder? ...

Firefox extension that overlays persistent iFrame?

Is it possible to build a Firefox extension that displays a floating, persistent iFrame over the page content? I know it's possible to add iFrames using XUL. For instance, you can add an iFrame to a persistent sidebar. However, I want the iFrame to float over the page content, not cause the content to shrink. So far, my only option i...

Firefox - is there an API to disable/enable an extension?

Is there an API call allowing one to enable/disable a FireFox add-on (to be more specific an extension)? ...

Firefox - how do I list installed extensions and identify them in a list?

Two related questions: Is there an API to produce a list of all the installed extensions in Firefox? If so, how would I uniquely identify an extension? What I need is to have an ID that persists through different versions of an extension and ideally through a renaming (so name may not be the best option). Is it GUID? Thanks! ...

onClick event does not work with xbl:inherits

I'm developing a Firefox add-on and having a problem: onClick event does not work with xbl:inherits. Other attributes like value and src work well Here is my code Binding: <binding id="CF-review"> <content> <xul:vbox> <xul:label class="CF-review-url" xbl:inherits="onclick">[more]</xul:label> </xul:vbox>...