Questions tagged [firefox-addon]

Commonly, you should use this tag IN ADDITION TO the tag for the specific type of add-on which you are asking about. At this point, the most common is firefox-addon-webextensions for WebExtensions based add-ons. A Firefox add-on is a way of adding to or modifying the Firefox web browser. Most commonly, questions in this tag are about Firefox extensions, which add new functionality to the browser, although "add-on" may also refer to themes or plugins.

A Firefox add-on is a way of adding to or modifying the Firefox web browser. Most commonly, questions in this tag are about Firefox extensions, which add new functionality to the browser, although "add-on" may also refer to themes or browser plug-ins.

7386 questions
505
votes
15 answers

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::ERR_BLOCKED_BY_CLIENT Why does it block some Ajax call but…
s.alem
  • 12,579
  • 9
  • 44
  • 72
352
votes
6 answers

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 suitable explanation of how it relates to…
Mohsin Sheikh Khalid
  • 3,914
  • 5
  • 20
  • 22
262
votes
1 answer

What do {curly braces} around javascript variable name mean

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 understand why it is used I have come across the…
Georgi Georgiev
  • 3,854
  • 5
  • 29
  • 39
250
votes
13 answers

How can I fix WebStorm warning "Unresolved function or method" for "require" (Firefox Add-on SDK)

I'm using WebStorm 7 for Firefox Add-on SDK development. WebStorm shows a warning: "Unresolved function or method" for require(). I want to get rid of the warning. var pageMod = require("sdk/page-mod"); NOTE:I already configured JavaScript-library…
skatsumata
  • 2,614
  • 2
  • 11
  • 7
225
votes
16 answers

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 means that those calls cannot be detect anymore by…
Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143
145
votes
6 answers

How do I write a Firefox Addon?

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?
Nick
  • 13,238
  • 17
  • 64
  • 100
132
votes
5 answers

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', BITLY_CREATE_API + encodeURIComponent(url) +…
chanux
  • 1,829
  • 4
  • 16
  • 20
118
votes
9 answers

Convert URL to File or Blob for FileReader.readAsDataURL

Reference: FileReader.readAsDataURL Considering the following example: function previewFile(file) { var reader = new FileReader(); reader.onloadend = function () { console.log(reader.result); } reader.readAsDataURL(file); } It…
erosman
  • 7,094
  • 7
  • 27
  • 46
114
votes
5 answers

Firefox Add-on RESTclient - How to input POST parameters?

I've installed Firefox RESTclient add-on but , I'm having hard time figuring out how to pass POST parameters. Is there a specific format to do this? Or is there any other tool which can be used to debug an REST API on Mac OS X ?
Rukshan
  • 7,902
  • 6
  • 43
  • 61
105
votes
1 answer

How to identify who initiated the http request in Firefox?

I am developing a new Firefox addon that intercept all Firefox's network traffic (http(s) requests with http-on-modify-request) With my current code, I am able to separate requests coming from web-pages/tabs and all the other components (RSS feed…
101
votes
3 answers

Postman addon's like in firefox

Is there a recommended add-ons in the firefox, which is has the most features that postman have?
hbak
  • 1,333
  • 3
  • 10
  • 22
98
votes
8 answers

.setAttribute("disabled", false); changes editable attribute to false

I want to have textboxes related to radiobuttons. Therefore each radio button should enable it's textbox and disable the others. However when I set the disabled attribute of textbox to true, it changes the editable attribute too. I tried setting…
Ghokun
  • 3,345
  • 3
  • 26
  • 30
89
votes
8 answers

Firefox addon to view/edit/create localStorage data?

Is there an addon that allows you to view, edit, localStorage information? If there is and it works as an extension of Firebug I will be extremely happy. Something like Google Chrome's local storage similar to Firecookie but for the…
BrunoLM
  • 97,872
  • 84
  • 296
  • 452
84
votes
9 answers

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 immediately, at this point it doesn't matter…
Robert Smith
  • 893
  • 1
  • 8
  • 7
71
votes
6 answers

Handling connection loss with websockets

I've recently set-up a local WebSocket server which works fine, however I'm having a few troubles understanding how I should handle a sudden loss of connection which neither the client or server intentionally initiated, i.e: Server loses power,…
SubjectCurio
  • 4,702
  • 3
  • 32
  • 46
1
2 3
99 100