Skip to content

Instantly share code, notes, and snippets.

/x
Created Mar 1, 2009

Embed
What would you like to do?
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
You can’t perform that action at this time.