I have the following code in test.js which is run right before </body>:  alert('stovetop'); alert(greasy);   I have the following code in test.user.js:  (function () {      'use strict';     var greasy = 'greasy variable&#...
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 ma...
Since version 42, Firefox, by default, refuses to install unsigned add-ons. How do I disable this verification?...
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...
Is it possible, using javascript, to control an overlay firefox extension? I've extracted the contents of the extension and have identified what functions/methods I need to run, but they are not accessible within the scope of the console.   Thank...
I'm implementing a Firefox plugin.  In the plugin's toolbar, I capture the current page and redirect users to the UK Google when they try to go to the Netherlands Google instead.  However, this code takes forever to complete.  When I type ...
What do I need to on the server side to allow someone to get data from that server using JSONP. And what do I need to do on the user side as well? I want to use JSONP as an alternative to an XMLHttpRequest.   It won't work out of my Firefox exten...
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...
Imagine this: you come across a webpage that says "Just send a message to [email protected]" but to actually send the email, you need to highlight the address and then cut and paste it into the recipient field of a new compose window of your e...
I'm trying to listen to custom event 'peakAhBoo' so I add the event listener to gBrowser and if no gBrowser is present then I add it to aDOMWindow (gist).  Code snippet:  loadIntoWindow: function (aDOMWindow, aXULWindow) {   if (!aDOMWind...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.