I am using the Firefox Add-on SDK to create an extension and am performing a PageMod. This code is in main.js.  ... exports.main = function() {   var pageMod = require("sdk/page-mod");    pageMod.PageMod({     include: "*",     cont...
I've create a Firefox addon using the addon sdk. I'm trying to use the canvas drawWindow function.  I've got the following code to use the function, where ctx refers to a canvas context, that I got with canvas.getContext("2d").  c...
I am writing a FireFox-Extension and want to load Data from Server. But when I try to initialize the XMLHttpRequest with:  var request = new XMLHttpRequest();   The error console says:   ReferenceError: XMLHttpRequest is not defined   Do I have to in...
my problem is that i need to know when AJAX is done on the page. I need to know this in my contentScriptFile that i load through pageMod. My add on needs to run every time that the page has been modified: so basically when it loads and every time the...
I'm currently working on a Mozilla Firefox addon.   I have set up a panel and attached a content script to it. I need to communicate between the content scripts and main.js. I'm using the port api of the addon-sdk for this. However for some r...
I'm converting an XUL-based Firefox add-on to an SDK based version for simplicity. The XPCOM modules I use in the XUL-based version seem to work but ci.nsIFile is behaving differently.  I can't figure out how to navigate to smartProxy.py whic...
I wish to add a single menu item to the firefox context menu that shows up only if the user right-clicks a specific url. I have a function to test the url. I used to do this by subscribing to "popupshowing" event and:  var item = document.get...
I'm trying to build a Firefox Add-on using the SDK (version 1.6), but I'm running into an issue with Tabs that the extension is opening.  I would like to obtain the tab that the aContext (node) is on.  To do so, I've been 'getting'...
I just spotted, in Firefox SDK JavaScript (on MDN), the use of a keyword I have never seen before:  var tabs = require('sdk/tabs'); for (let tab of tabs)   console.log(tab.title);   Is the of keyword made up by Mozilla or is it standardized?...
About  I'm working on a Firefox Add-on using the Firefox Add-on SDK. The add-on will be site specific and it will hide certain elements based on user preferences.   I already made this add-on a few years back, but with the new SDK things work a b...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.