992 questions
30
votes
3
answers
16k
views
How to open the correct devtools console to see output from an extension script?
I am trying to test sample code for web extension for browsers.
But, it doesn't work. I checked the console for Google Chrome and also for Firefox. It doesn't print anything. The following is my code:
...
551
votes
18
answers
767k
views
Getting "net::ERR_BLOCKED_BY_CLIENT" error on some AJAX calls
Recently I've realised that, some adblocker extensions (such as adBlocker plus) block some Ajax calls. I get that error on the console:
GET http://localhost/prj/conn.php?q=users/list/ net::...
12
votes
3
answers
27k
views
Accessing Variables from Greasemonkey to Page & vice versa
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 ...
257
votes
18
answers
180k
views
How to get notified about changes of the history via history.pushState?
So now that HTML5 introduces history.pushState to change the browsers history, websites start using this in combination with Ajax instead of changing the fragment identifier of the URL.
Sadly that ...
270
votes
1
answer
126k
views
What do {curly braces} around javascript variable name mean [duplicate]
EDIT
After looking at JSHint I found this 'destructuring expression' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz) and this however after reading it I still don't ...
88
votes
10
answers
63k
views
On Text Highlight Event?
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 ...
35
votes
1
answer
16k
views
Can a site invoke a browser extension?
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?...
59
votes
7
answers
40k
views
How to use jQuery in Firefox Extension
I want to use jQuery inside a firefox extension,
I imported the library in the xul file like this:
<script type="application/x-javascript" src="chrome://myExtension/content/jquery.js"> </...
53
votes
7
answers
86k
views
How can I disable signature checking for Firefox add-ons?
Since version 42, Firefox, by default, refuses to install unsigned add-ons. How do I disable this verification?
136
votes
5
answers
364k
views
Parsing JSON from XmlHttpRequest.responseJSON
I'm trying to parse a bit.ly JSON response in javascript.
I get the JSON via XmlHttpRequest.
var req = new XMLHttpRequest;
req.overrideMimeType("application/json");
req.open('GET', ...
4
votes
4
answers
18k
views
How to install extension permanently in geckodriver
I need to test Firefox using an extension. I want to automate the test and visit several websites.
I installed Selenium and it opens in geckodriver. However, the extension is not there. I can ...
371
votes
7
answers
265k
views
What is a MIME type?
I have been reading about how to build plug-ins and this "MIME type" keeps getting discussed in it. I have tried to look into it and know that it is Multipurpose Internet Mail Extensions (MIME) but no ...
146
votes
6
answers
89k
views
How do I write a Firefox Addon? [closed]
What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?
5
votes
2
answers
11k
views
Firefox extension .xpi file structure: description, contents, creation, and installation
I put a lot of stuff in searching an easy way to develop a Firefox extension, but I am unable to create an extension. Kindly tell me the file structure of Firefox extensions and an easy way to install ...
63
votes
22
answers
201k
views
ReferenceError: TextEncoder is not defined
I'm writing a simple addon in Firefox - 24, on Linux.
I get the error:
ReferenceError: TextEncoder is not defined
when I do: var encoder = new TextEncoder();
the function I'm using is:
function ...