add-on

how to use post in “Request” function at firefox-addon-sdk

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 14:27:15
问题 I read about function 'Request' as this link: https://addons.mozilla.org/en-US/developers/docs/sdk/1.1/packages/addon-kit/docs/request.html And I would like to use the "post" method. There is no explaination or example on how to send a variable from JS to my server with the post method. How can I do it? 回答1: You just change the get() call in the example on that page with post(). exports.main = function() { var Request = require("request").Request; Request({ url: "http://google.com/", content:

how to use post in “Request” function at firefox-addon-sdk

你说的曾经没有我的故事 提交于 2019-12-20 14:24:36
问题 I read about function 'Request' as this link: https://addons.mozilla.org/en-US/developers/docs/sdk/1.1/packages/addon-kit/docs/request.html And I would like to use the "post" method. There is no explaination or example on how to send a variable from JS to my server with the post method. How can I do it? 回答1: You just change the get() call in the example on that page with post(). exports.main = function() { var Request = require("request").Request; Request({ url: "http://google.com/", content:

Firefox add-ons

人盡茶涼 提交于 2019-12-20 08:21:04
问题 What Firefox add-ons do you use that are useful for programmers? 回答1: I guess it's silly to mention Firebug -- doubt any of us could live without it. Other than that I use the following (only listing dev-related): Console 2 : next-generation error console DOM inspector: as the title might indicate, allows you to browse the DOM Edit Cookies: change cookies on the fly Execute JS: ad-hoc Javascript execution IE Tab: render a page in IE Inspect This: brings the selected object into the DOM

Android - Build an application that supports add-ons

给你一囗甜甜゛ 提交于 2019-12-18 12:43:09
问题 On .NET, I can use "reflection" to load a DLL library at runtime. This allows me to build some add-on to my applications. On Android, there is any way to perform something like that? I´d like to make an add-on that, when installed, can be called from my android app. My first idea is to build another APK to this add-on. Then, my application should loop through the installed packages to see if the add-on is present. After that, how could I load that package (and the activities that it´s have)

How to save the VS window layout for single/extended-multiple screen?

早过忘川 提交于 2019-12-18 11:21:16
问题 I often work at the office using dual screen and at home using single screen. The window layout of Visual Studio 2010 is messing with me. I want to save/restore the layout so that I can quickly "switch" to the layout I want. How can I do that? Is it possible? 回答1: Here are the steps: Export your windows layout settings the way you like to use them at work into a .vssettings file Export your windows layout settings the way you like ot use tham at home into a .vssettings file Create shortcuts

How to check with Javascript if a Firefox 3 Add-on / Extension is installed

眉间皱痕 提交于 2019-12-18 09:09:34
问题 Actually this question is based on a Blog Entry, which discusses the topic for FF2. But how does this work with FireFox 3? I know that there must be a workaround, because recently I visited a site saying: "Please disable AdBlock+ before entering this site" :( 回答1: There's no general-purpose way to do that, for security reasons. Even the FF2 version mentioned there was specific to that particular extension -- you can't assume identically-named and -placed icons for all extensions. The AdBlock

How can I open an external app from Firefox addon? (Eg: default text editor)

一个人想着一个人 提交于 2019-12-18 04:25:07
问题 I need my addon will be capable of editing some files with an external tool. Any ideas? 回答1: This snippet reveals or launches a file when provided with a path: var localFile = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); localFile.initWithPath("C:\\some-directory\\some-file.png"); if(localFile.exists()){ // localFile.reveal(); // open the containing folder of the file // localFile.launch(); // launch the file } However you might need to use nsIProcess in order to run an

Recommended add-ons/plugins for Microsoft Visual Studio [closed]

老子叫甜甜 提交于 2019-12-17 06:19:10
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Can anyone recommend any good add-ons or plugins for Microsoft Visual Studio ? Freebies are preferred, but if it is worth the cost

How can I disable signature checking for Firefox add-ons?

允我心安 提交于 2019-12-17 02:43:08
问题 Since version 42, Firefox, by default, refuses to install unsigned add-ons. How do I disable this verification? 回答1: It is only possible to disable addons verification in Nightly and Developer channel. In other words it is not possible in Beta versions and standard releases . Go to about:config (enter it into address bar) Set xpinstall.signatures.required to false . More at https://wiki.mozilla.org/Addons/Extension_Signing 回答2: Disable add-on signing check in Release (all) versions of Firefox

Load when the browser is open

我的未来我决定 提交于 2019-12-14 03:10:04
问题 I made a special button that thru the use of this js shows the server status using a api, my problem is that i cant make this thing to automaticly load the first time you open the browser, you have to actually click the button otherwise it doesnt start runing. function checkStatus(event) { jQuery.getJSON("url",function(data){ var button = document.getElementById("ServStat"); if ( data.status == '1') { jQuery('#ServStat').addClass('online').removeClass('offline'); button.label = 'Online'; }