Command configuration?

0 views
Skip to first unread message

bahuvrihi

unread,
Nov 19, 2008, 12:31:11 PM11/19/08
to ubiquity-firefox
I'd like to be able to install a command and then setup some
configurations for it. One option is something like extension
preferences... Is there a way to, say, define an html page that comes
with the command and can interface with the command js? If that's
possible it seems easy to get/set preferences for the command using
functions in the js.

My questions for this approach are:
1. How do you include the js for your command in the html page (what's
the installed command url)?
2. Can you somehow store/install an html page when you subscribe to a
command? Ideally this would be the case so that configuration could
be done offline without getting the page from an external site.

I know I can do all this with an extension, but it would be so much
nicer if all it took was ubiquity.

Johnny Baillargeaux

unread,
Nov 21, 2008, 5:14:39 AM11/21/08
to ubiquity...@googlegroups.com
Hello,

I would be also very interested by this kind of feature mainly when you want to share a script where an access key is required like the ones provided by google.
Today, you cannot share this kind of scripts, because your access access key is hardcoded. It will be better if we had the possibility to link our scripts with a configuration file editable by the end user.

Regards,
Johnny Baillargeaux


2008/11/19 bahuvrihi <simon.a...@gmail.com>

Fernando Takai

unread,
Nov 21, 2008, 5:19:29 AM11/21/08
to ubiquity...@googlegroups.com
That's unfortunately not possible today. But, you can use the Firefox
preferences to save things - i.e. web-app user key.
Take a look at http://maloki.net/projects/pingfm-ubiquity/ and
http://gist.github.com/11270 to see how it can be done.

Cheers!

On 11/21/08 8:14 AM, Johnny Baillargeaux wrote:
> Hello,
>
> I would be also very interested by this kind of feature mainly when
> you want to share a script where an access key is required like the
> ones provided by google.
> Today, you cannot share this kind of scripts, because your access
> access key is hardcoded. It will be better if we had the possibility
> to link our scripts with a configuration file editable by the end user.
>
> Regards,
> Johnny Baillargeaux
>
>
> 2008/11/19 bahuvrihi <simon.a...@gmail.com
> <mailto:simon.a...@gmail.com>>
>
>
> I'd like to be able to install a command and then setup some
> configurations for it. One option is something like extension
> preferences... Is there a way to, say, define an html page that comes
> with the command and can interface with the command js? If that's
> possible it seems easy to get/set preferences for the command using
> functions in the js.
>
> My questions for this approach are:
> 1. How do you include the js for your command in the html page (what's
> the installed command url)?
> 2. Can you somehow store/install an html page when you subscribe to a
> command? Ideally this would be the case so that configuration could
> be done offline without getting the page from an external site.
>
> I know I can do all this with an extension, but it would be so much
> nicer if all it took was ubiquity.
>
>
>
>
> >

--
Fernando "Takai"
http://flickr.com/photos/supeertakai
http://fernandotakai.jaiku.com

Get Ubiquity: https://wiki.mozilla.org/Labs/Ubiquity/

Johnny Baillargeaux

unread,
Nov 21, 2008, 5:48:08 AM11/21/08
to ubiquity...@googlegroups.com
Thanks for the web links! I will quickly check that.

2008/11/21 Fernando Takai <fernand...@gmail.com>
Reply all
Reply to author
Forward
0 new messages