1
edit
Changes
no edit summary
var urlString = url.replace("{QUERY}", query);
Utils.openUrlInBrowser(urlString);
}
})
</pre>
and another for getting NASDAQ stock quotes:
<pre>
CmdUtils.CreateCommand({
name: "nasdaq",
author: { name: "Zaid Ghansar" },
description: "Shows current NASDAQ stock value.",
help: "searches for a stocks current vallue at NASDAQ using google",
takes: {"search stock": noun_arb_text},
preview: function( pblock, searchquery ) {
pblock.innerHTML = "<img src='http://www.buylow-sellhigh.com/images/NASDAQ_logo.gif' /> Will Search For: " + searchquery.text;
},
execute: function( query ) {
var url = "http://finance.google.com/finance?client=ob&q=NASDAQ:" + query.text;
Utils.openUrlInBrowser(url);
}
})