CmdUtils.CreateCommand({
  name: "shrink",
  takes: {"URL to shrink": noun_arb_text},
  homepage: "http://shrinkthislink.com/helpers/",
  author: {name: "Paul Nicholls", homepage: "http://fubar.school.nz/techblog/"},
  execute: function( longURL ) {
    var baseUrl = "http://shrinkthislink.com/addplain";
    var params = {url: longURL.text};
    jQuery.get( baseUrl, params, function( shrunkLink ) { CmdUtils.setSelection( "http://"+shrunkLink ); });
  },
  preview: "Replaces the selected URL with a ShrunkLink."
})
