Created
January 30, 2009 14:23
-
-
Save jasonroelofs/55085 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CmdUtils.CreateCommand({ | |
name: "wowhead", | |
arguments: [{role: 'object', nountype: noun_arb_text, label: 'query'}], | |
icon: "http://www.wowhead.com/favicon.ico", | |
homepage: "http://www.wowhead.com", | |
author: { name: "Carlos Moll", email: "[email protected]"}, | |
license: "MPL,GPL", | |
description: "Search Wowhead", | |
help: "Search for an item, quest, NPC, etc on Wowhead", | |
execute: function(args) { | |
var url = "http://www.wowhead.com/?search={QUERY}" | |
var query = args.object.text; | |
var urlString = url.replace("{QUERY}", query); | |
Utils.openUrlInBrowser(urlString); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment