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 am writing an extension for firefox and having a problem including scripts into the main.js (background) file ...  In my case I would like to include for example jquery.js and config.js but I can't see how to do it properly.  In my chrome exten...
Referring to this question: Add-on Builder: ContentScript and back to Addon code?  Here is my addon code:  var widget = widgets.Widget({   id: "addon",   contentURL: data.url("icon.png"),   onClick: function() {     var workers = [];...
Im trying to send a click event from panels script(popup.js) to content script(content.js) hers the code that i've tried.and the desired output isnt printing on the console.     popup.html   <button id="start-btn" onclick="myFuncti...
I am building an add-on that has multiple .js files that are associated with it many of which need the access to the require() function but when i use the require function in them i get the error that require is not defined.used importScripts() to in...
I am unable to understand . Why my functions are executed thrice after addition in the firefox extension using "page-mod" .  This is my code : [main.js]  var pageModOptions = {     include: ["http://xyz.com/*"],     attachTo: ["to...
I'm working on an update to my "jump-to-anchor" add-on which is a Firefox add-on to let you right-click somewhere in a doc to (hopefully) get the closest anchor above the click point.  After submitting the add-on, I realized I could impro...
In Firefox, is there an API equivalent to Google Chrome's chrome.downloads API?  I need to control downloads with functions such as pause, resume, and cancel. In addition, I want to be able to remove the downloaded file.  If there is no API in Fi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.