Skip to content

Instantly share code, notes, and snippets.

@ba3r
Created October 8, 2009 11:29
Show Gist options
  • Save ba3r/204959 to your computer and use it in GitHub Desktop.
Save ba3r/204959 to your computer and use it in GitHub Desktop.
/* Davos Vote */
CmdUtils.CreateCommand({
names: ["davos"],
icon: "chrome://ubiquity/skin/icons/youtube.ico",
description: "Vote",
help: "Just vote.",
author: {name: "Michael", homepage: "http://twitter.com/synapsos"},
license: "GPL",
homepage: "http://youtube.com/davos",
preview: function preview(pblock) {
var msg = "<iframe width='500' height='300' src='http://www.gmodules.com/gadgets/ifr?url=http://www.google.com/reviews/polls/v2/contest/user/thedavosquestion2/gadgetfw.xml'>davos</iframe>" ;
pblock.innerHTML = msg ;
},
execute: function execute(args) {
Utils.openUrlInBrowser( "http://youtube.com/davos" );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment