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 a newbie to the browser extension development and I understand the concept of browser extensions altering the page and injecting codes into it.  Is there a way this direction can be turned around? I write an extension that provides a set of AP...
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...
When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript?  Imagine this HTML code:  <h1>Hello World</h1><p>Hi <b>there!</b></p>...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.