CmdUtils.CreateCommand({
names: ["scholar"],
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'search_string'}],
description: "show results in new tabs.",
preview: "Searches for google’scholar.",
icon: "http://www.google.com/favicon.ico",
execute: function(searchterms) {
var finalterms = encodeURIComponent(searchterms.object.text);
Utils.openUrlInBrowser("www.google.com/scholar?q=" + finalterms);
}
})
CmdUtils.CreateCommand({
names: ["shooter"],
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'search_string'}],
description: "Searches subs in new tabs.",
preview: "Searches for subs on shooter.cn.",
execute: function(searchterms) {
var finalterms = encodeURIComponent(searchterms.object.text);
Utils.openUrlInBrowser("http://www.shooter.cn/search/Sub:" + finalterms + "/?x=0&y=0&");
}
})
照着一个搜索种子的改的
适用于 Ubiquity 0.5.4!
标签:FireFox, scholar, Search, shooter, Ubiquity


Post comment