add-on

Access the Add-on SDK from within a traditional XUL-based add-on?

孤街醉人 提交于 2019-12-10 10:16:49
问题 I have a large and complex XUL-based addon for which I need to use a few functions from the Add-on SDK. Is this possible? If so, does anyone have working sample code, preferably using the page-worker module? 回答1: The following is the way devtools does it, but certain modules will choke (the obvious candidate being self ). I think you will have better luck with low-level modules. let {Loader} = Cu.import("resource://gre/modules/commonjs/toolkit/loader.js", {}); let loader = new Loader.Loader({

Accessing cookies, hopefully in JavaScript

笑着哭i 提交于 2019-12-10 10:11:32
问题 I am working on a Firefox add-on that will allow users (all of whom are part of a specific group; this add-on is very limited in audience scope) to see the status of their authentication cookie from the status bar. We all have to authenticate to access work-related sites, but we get no warning when the cookie expires, so this causes annoying and sometimes drastic interrupts in work flow. Eventually, this add on will allow us to submit our credentials from the status bar without having to go

Can I schedule backups using the Heroku PG Backup add-on?

*爱你&永不变心* 提交于 2019-12-08 18:00:48
问题 I have been using PG Backups add-on recently and everything has worked fine, however this morning the backup process triggered at 10:00 A.M. in the morning generating some blocks and timeouts in my application. Is there a way to specify the schedule of the backups made with this add-on? I've been searching and haven't found anything specific. 回答1: Use Cron for Manual Backup Scheduling Heroku gives you two types of backups: automated and user-initiated. Each plan has a different number of

How do I find the “operation's” location within the code? 'This operation is not supported from a callback function.'?

[亡魂溺海] 提交于 2019-12-08 12:02:07
问题 I'm creating a Google addon for docs. So I'm using html, scriptlets and java. Everything has run fine, but suddenly, I'm getting this error and I don't know how to solve it. When I run the html, the error comes up, as shown in the table. Within Developer Tools, the following errors are shown: 1. Google Apps Script: This operation is not supported from a callback function. 2. The given range does not belong to the current selection's document. 3. G.Y0 How do I take this information to find the

Using the UrlShortener API in a custom Spreadsheet function

假装没事ソ 提交于 2019-12-08 03:12:13
问题 I would like to use an API (url shortener) with a public google Add-on. For the moment my code returns: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup. Is this possible? If yes, Do I need an authentification Token? If yes, what key type should I choose? How can I implement the authorisation for this kind of use? Do I need to pay for it? If no, How could other add-ons use external APIs Thanks a lot for your answers, 回答1: EDIT: The OP pointed out in the comments

How to get field lists using the OpenERP Report Designer Addon for OpenOffice / LibreOffice

空扰寡人 提交于 2019-12-07 18:01:59
问题 I want to add fields to the reports and use them in python functions and do some coding inside the reports. I am using version 6.0.3 of OpenERP, I keep getting an empty field list. This is what the "add field" command on the addon should look like: I am using the "OpenERP Report Designer" addon for OpenOffice / LibreOffice. The "Add a field" command in the OpenOffice addon does not work for me. It shows an empty field list. I tried in 6.0.3 on a linux and a windows server and also 6.0.2 on a

XBMC/KODI error adding addon “structure incorrect”

纵然是瞬间 提交于 2019-12-07 04:29:34
问题 I'm following the KODI/XBMC hello world addon tutorial here and i downloaded the finished project from here but the problem is that i cannot edit it, as ever time I try to add a version that I edited onto KODI it gives me the error Addon does not have correct structure I think it is the way I'm turning it back into a .zip(I am using the archive utility on a macbook air running yostimite), because even if I just unzip it and then without changing anything turn it back into a zip it still gives

How to add UI elements from a bootstraped Firefox addon

有些话、适合烂在心里 提交于 2019-12-06 12:27:24
问题 I am writing a Firefox addon for Firefox 4 which allows you to create bootstraped addons (addons that do not require a restart of the browser), however, they do not allow you to use XUL to create UI elements. What is an easy way to create UI elements in places like the tools menu (with JavaScript), and how do I make my addon open a new window to interface with the browser? 回答1: It's not easy right now. You need to keep track of browser windows as they open and close and add your UI to each

Does Visual Studio 2010 have backward compatibility with visual studio 2008's addins?

安稳与你 提交于 2019-12-06 04:42:17
I have some really great addins in Visual Studio 2008 that I don't want to lose, but I've heard that Visual Studio 2010 will use MEF. Does it mean that I can say goodbye to my dancing banana ? There are three levels of extensibility in Visual Studio : Macros Add-ins VS Packages I can confirm that VS2008 Add-ins work perfectly well in VS2010 beta2. You just have to edit the .AddIn file and replace "9.0" by "10.0". I don't know about VS Packages though. Unless the direction has changed from the first CTP released last year, the old method of plugging in still works. We should have a new beta

Is it possible to set config settings on Firefox from a Addon

浪子不回头ぞ 提交于 2019-12-06 02:49:55
问题 I'm looking for a way to print from web without prompting the print dialog (I just made the question). I found This method for Firefox and it seems to work, but it obviously will affect all websites. So I'm thinking of developing a Firefox Addon that makes this configuration to affect only specific websites. I don't know nothing about building Firefox addons, but if it's possible to change settings this way I will learn how to do it. So my question is.. Is it possible to set config settings