1
edit
Changes
no edit summary
});
</pre>
----Searches Altavista for specified term, modification of John Ford's code
<pre>
CmdUtils.CreateCommand({
name: "altavista:",
takes: {"search terms": noun_arb_text},
preview: function( pblock, searchquery ) {
pblock.innerHTML = "<img src='http://us.i1.yimg.com/us.yimg.com/i/us/av/logo_srp.gif' /> Will Search For: " + searchquery.text;
},
execute: function( altavistaquery ) {
var url = "http://www.altavista.com/web/results?itag=ody&q={QUERY}&kgs=1&kls=0"
var query = altavistaquery.text;
query = query.replace("+", " ");
var urlString = url.replace("{QUERY}", query);
Utils.openUrlInBrowser(urlString);
}
})
</pre>
--[[User:JesseV|JesseV]] 23:19, 9 September 2008 (UTC)