-
-
Save anonymous/72189 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({ | |
name: "goto", | |
icon: "http://www.mozilla-europe.org/favicon.ico", | |
homepage: "http://www.google.com/", | |
author: { name: "Jan S", email: "neonsamurai@hotmail.com"}, | |
license: "GPL", | |
description: "url to navigate to", | |
help: "Type any url to open in a new tab...", | |
takes: {"url": noun_arb_text}, | |
preview: function( pblock, input ) { | |
var template = "Go to ${url}"; | |
pblock.innerHTML = CmdUtils.renderTemplate(template, {"url": "any url..."}); | |
}, | |
execute: function(input) { | |
Utils.openUrlInBrowser(input.html); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment