I have a question about how to structure communication between a (new) Firefox extension and existing C# code.
The firefox extension will use configuration data and will produce other data, so needs to get the config data from somewhere and save it's output somewhere. The data is produced/consumed by existing C# code, so I need to deci...
Once, I tried adding a button with "bookmark-item pagerank" as class to PersonalToolbar. Now, the code...
function createToolbarButton() {
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var anitem = document.createElementNS(XUL_NS, "toolbarbutton");
anitem.setAttribute("id", "Testing-Doit-But...
Hi all,
I've spent a long time trying different things to get this to work but nothing does and documentation is not helping much.
I'm trying to populate a form inside an iframe that I dynamically inject into a page. To inject that iframe I do:
myObject.iframe = document.createElement("iframe");
myObject.iframe.setAttribute("src", dat...
Hi there,
I'm working on a firefox addon and one thing i'm unsure on is how to remove user preferences related to my addon when the user uninstalls it. The preferences get set, and if the user uninstalls and reinstalls the preferences are all still there. Some settings also relate to a first time install, so that breaks if the user has ...
Does anybody know of a bookmarklet or firefox addon that let's you extract part of an url.
Specifically I want to extract the message id from a gmail conversation.
Every message in gmail has a unique ID. The url may look like this: https://mail.google.com/a/domain.com/#all/1251b8f40722a3c2
What I want, is to be able to extract the last...
More precisely my goal is to create an add-on (or plug-in?) which is able to communicate with my main Cocoa application using something like the NSDistributedNotificationCenter. I need to be able to inject JavaScript code into the current webpage and get return values from the JS calls when my add-on receives the request to do so by my m...
In Firefox (Windows) when you view source from the browser it will not update the source on a page if certain AJAX components have changed. An example is you navigate to the page and it fully loads.
An AJAX component triggers and changes the source, but if you click view source after this event it will not register. If you download the...
Are there any easy ways to override the default behaviors of the geolocation api and just hard code your current location?
I think this would be useful for testing and for privacy reasons (providing fake location data)
I thought there was an add on for this but I can't seem to find one. Only option right now seems to be changing the a...
When you need to create or access well-known objects in XPCOM, where do you find their contract IDs?
...
I currently maintain an add-on for Firefox that adds a number of capabilities to a forum web site that implements its own markup language, similar to what stackoverflow provides with "Markdown."
I have built an IntelliSense function for this add-on, which, similar to Visual Studio, will pop up an auto-suggest when typing this markup in ...
I have to download myURLString (http://www.google.com/search?q=http%3A//www.google.com/&btnG=Search+Directory&hl=en&cat=gwd%2FTop).
function getcontents(myURLString) {
var gChannel;
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var uri = ioService.n...
Can anyone suggest good testing tools/plugins for use with Firefox? Currently I use firebug and SQLInjector. Are there any others that people enjoy using for QA testing of web based systems?
I know selenium, but we don't currently use it.
...
In the Firefox extension I'm writing, I have a variable containing some data that I want to be able to access in both the actual extension and in the preferences pane of the extension. When Firefox is loaded, my extension code initializes the variable with the correct data. But, when I bring up my options dialog (which is contained in ...
I was wondering if such a tool exists in a browser. You select any item on the page like a <p> tag nested in several div's and the tool creates a JQuery selector for it which I can copy and use in my Javascript function.
...
Hi,
I've tried to engage with the jquery and jquery ui communities (email list, irc), in addition to Google and more experienced coworkers, but nothing has proved fruitful. I've found stackoverflow useful in the past, so perhaps someone will have encountered this before.
My problem is this: I want to include jQuery UI in my extension. ...
I am making a firefox extension which injects most of its interface in the pages. However, if I want images in that interface, I am unable to inject them. So what I am trying is to intercept specific http requests and replace them with the local images. So far I have been able to intercept specific pages and replace them with others, but...
I built two separate Firefox extensions which are fundamentally incompatible with each other. The incompatibility is by design, as it would be totally unlogical for a user to install both. While I can stress out in the doc that both shouldn't be used at the same time, I don't trust the user to read the doc, and I'm looking for a way that...
When installing an add-on from a secure website (https) firefox installs the add on normally and requests the user to restart the browser. When the user clicks restart, the secure session is lost and they are forced to log in again. Is it possible to restore the secure session by simply retaining the secure session cookies in the case of...
Hi folks!
Executing this JavaScript:
window.addEventListener("contextmenu", function(e) { afunction(e); }, true);
function updateReflectMenu(anEvent) {
var elemUnderMouse = anEvent.target;
alert(elemUnderMouse);
}
within an AddOn in FF3.5 gives me something like: [object XPCNativeWrapper [object HTMLSpanElement]]
Exactly what I...
Hi,
I am actually not so sure if it is possible but It would be great for me to have a firefox add-on to add/remove/edit/delete for google calender.
Is there any blog entry or a reference documents about this ?
Thanks in advance
...