-
-
Save anonymous/62697 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.CreateCommand({ | |
author: { name: "elbarto", email: "[email protected]"}, | |
description: "search w3schools with google", | |
name: "w3", | |
takes: {"w3": noun_arb_text}, | |
preview: function( pblock, searchTerm) { | |
pblock.innerHTML = "Searches w3schools for: " + searchTerm.text; | |
}, | |
execute: function( searchTerm ) { | |
var msg = searchTerm.text + "... loading"; | |
var url2 = "http://www.google.com/search?sitesearch=www.w3schools.com&as_q=" + searchTerm.text; | |
Utils.openUrlInBrowser( url2 ); | |
displayMessage( msg ); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment