Created
January 6, 2010 23:49
-
-
Save wwood/270820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* A mozilla Ubiquity helper to search for UniProt IDs */ | |
CmdUtils.CreateCommand({ | |
names: ["uniprot"], | |
icon: "http://www.uniprot.org/favicon.ico", | |
description: "Searches UniProt.", | |
help: "type 'uniprot something', enter. The something is like searching UniProt for an accession. For the format, add the format to the end of your accession - for instance 'uniprot C4IY21.txt'", | |
author: { name: "Ben J. Woodcroft", email: "b.woodcroft near pgrad.unimelb.edu.au"}, | |
license: "GPL", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
execute: function execute(args) { | |
var urlString = "http://www.uniprot.org/uniprot/"+args.object.text; | |
Utils.openUrlInBrowser(urlString); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment