When I upgraded the Ubiquity extension in Firefox this morning to version 0.5, the Bible Gateway search command that I created died. Apparently, it used a deprecated version of the API -- and so did the other Bible search command that I had, rendering both useless. If you are completely unfamiliar with Ubiquity, it's an awesome extension available for Firefox that allows you to quickly carry out common tasks (similar to something like Spotlight or Quicksilver). For more information on the extension, you can go here.
So, if you're interested in updating your commands to reflect the new API, you should probably start at the new command authoring tutorial. There are some great examples in there on how to get started.
For anyone interested, I updated my Bible Gateway Search command to the following:
CmdUtils.CreateCommand({
names: ["bible-gateway"],
icon: "http://www.biblegateway.com/favicon.ico",
author: { name: "Matt Augustine", email: "sokkerstud_11@hotmail.com"},
license: "GPL",
description: "Launches a passage look up on BibleGateway.com",
help: "bible-gateway (passage query)",
arguments: [{role: "object",
nountype: noun_arb_text,
label: "passage"}],
preview: function( pblock, arguments) {
var template = _("Searches BibleGateway.com for ") + arguments.object.text;
pblock.innerHTML = CmdUtils.renderTemplate(template);
},
execute: function(arguments) {
var url = "http://www.biblegateway.com/passage/?search={QUERY}"
var query = arguments.object.text;
var urlString = url.replace("{QUERY}", query);
Utils.openUrlInBrowser(urlString);
}
});
Basically, it just does a very simple passage lookup and opens it up. So, for example, valid queries would be things like:
bible-gateway John 1-3
bible-gateway Matthew 1:4-5
If you would like to install this command in your browser, feel free to copy the code above, or you can install it by going here. If you have any questions about my command, feel free to leave a comment below!
Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts
Tuesday, July 14, 2009
Thursday, June 19, 2008
Firefox 3: My first thoughts...
I've now been using Firefox 3 for a couple days now (almost). Overall, I'm impressed, but there are definitely a few things that got to me. I've gone through and installed it on Windows XP, Windows Vista and Mac OS 10.5 boxes (I haven't gotten to my Ubuntu rig yet). I really do appreciate the effort the developers put into making the user interface embrace the look and feel of the host OS. I also like the new smart address bar (I believe it's being referred to as the "Awesome Bar") and all the major highlights/upgrades.
However, the first thing I didn't like seeing was that a couple of my extensions/themes weren't compatible with Firefox 3. My buddy Mirko left a great comment regarding this on the previous post which pretty much nailed my thoughts exactly -- but basically, what the heck? The problem is that I have habits engraved into my brain, things that increase productivity, hotkeys, etc., that I was still trying to use, but was coming back with nothing -- what an empty feeling :)
Secondly, I'm not sure if a lot of people had this issue, but I was having a tough time (at first) figuring out why "Show my windows and tabs from last time" was not working. I would open a bunch of tabs, close them (not receiving the multiple tab warning I was used to), reopen Firefox to only see one tab... Well, without going on and on too much, it was basically because I had Firefox set to delete all my private data when I closed (including Browser History)... Apparently, Firefox 3 requires History to be saved if you want to use this feature -- even though it worked flawlessly in Firefox 2... interesting.
Otherwise -- Stellar!
However, the first thing I didn't like seeing was that a couple of my extensions/themes weren't compatible with Firefox 3. My buddy Mirko left a great comment regarding this on the previous post which pretty much nailed my thoughts exactly -- but basically, what the heck? The problem is that I have habits engraved into my brain, things that increase productivity, hotkeys, etc., that I was still trying to use, but was coming back with nothing -- what an empty feeling :)
Secondly, I'm not sure if a lot of people had this issue, but I was having a tough time (at first) figuring out why "Show my windows and tabs from last time" was not working. I would open a bunch of tabs, close them (not receiving the multiple tab warning I was used to), reopen Firefox to only see one tab... Well, without going on and on too much, it was basically because I had Firefox set to delete all my private data when I closed (including Browser History)... Apparently, Firefox 3 requires History to be saved if you want to use this feature -- even though it worked flawlessly in Firefox 2... interesting.
Otherwise -- Stellar!
Labels:
Firefox
Tuesday, June 17, 2008
Firefox 3
If you know what's good for you, you'll download Firefox 3 within the next 24 hours. I tried connecting just now and the site is overloaded at the moment -- so have a little bit a patience :)
Edit: Here's a link directly to the download page: http://www.mozilla.com/en-US/firefox/?p=downloadday
Edit: Here's a link directly to the download page: http://www.mozilla.com/en-US/firefox/?p=downloadday
Labels:
Firefox
Subscribe to:
Posts (Atom)