Created
December 3, 2008 14:50
-
-
Save desktable/31570 to your computer and use it in GitHub Desktop.
This file contains 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.makeSearchCommand({ | |
name: "scholar-search", | |
url: "http://scholar.google.com/scholar?q={QUERY}", | |
icon: "http://www.google.com/favicon.ico", | |
description: "Searches Google Scholar for your words.", | |
preview: function(pblock, directObject) { | |
var searchTerm = directObject.text; | |
var pTemplate = "Searches Google Scholar for <b>${query}</b>"; | |
var pData = {query: searchTerm}; | |
pblock.innerHTML = CmdUtils.renderTemplate(pTemplate, pData); | |
} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "ideas-search", | |
url: "http://ideas.repec.org/cgi-bin/htsearch?q={QUERY}", | |
icon: "http://ideas.repec.org/favicon.ico", | |
description: "Searches IDEAS for your words.", | |
preview: function(pblock, directObject) { | |
var searchTerm = directObject.text; | |
var pTemplate = "Searches IDEAS for <b>${query}</b>"; | |
var pData = {query: searchTerm}; | |
pblock.innerHTML = CmdUtils.renderTemplate(pTemplate, pData); | |
} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "arxiv-search", | |
url: "http://search.arxiv.org:8081/?query={QUERY}", | |
icon: "http://arxiv.org/favicon.ico", | |
description: "Searches arXiv for your words.", | |
preview: function(pblock, directObject) { | |
var searchTerm = directObject.text; | |
var pTemplate = "Searches arXiv for <b>${query}</b>"; | |
var pData = {query: searchTerm}; | |
pblock.innerHTML = CmdUtils.renderTemplate(pTemplate, pData); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment