Skip to content

Instantly share code, notes, and snippets.

@tototoshi
Created December 5, 2010 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tototoshi/729025 to your computer and use it in GitHub Desktop.
Save tototoshi/729025 to your computer and use it in GitHub Desktop.
新しいタブを開いてGoogleに飛ぶ
key.setGlobalKey(["C-x", "g"], function (ev) {
BrowserOpenTab();
loadURI("http://www.google.co.jp");
}, '新しいタブを開いてGoogleに飛ぶ', true);
key.setViewKey('S', function() {
function mySearch(word){
var query = "q=" + encodeURIComponent(word);
BrowserOpenTab();
loadURI("http://www.google.co.jp/search?" + query);
}
prompt.read("search", mySearch, null, null, null, 0, "my-google-search");
}, 'Google検索');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment