CmdUtils.CreateCommand({
name: "reuters",
icon: "http://www.reuters.com/favicon.ico",
description: "Opens the Reuters profile page for the input stock ticker",
homepage: "http://wookup.com",
author: { name: "KM Tan", email: "[email protected]"},
license: "GPL",
takes: {"index symbol": noun_arb_text},
preview: "Shows info for the input stock ticker.",
execute: function(reuters) {
var url = "http://www.reuters.com/finance/stocks/companyProfile?symbol={QUERY} ";
var param = reuters.text.toUpperCase();
var urlString = url.replace("{QUERY}", param);
Utils.openUrlInBrowser(urlString);
}
})
Users browsing this forum: No registered users and 8 guests