Skip to content

Instantly share code, notes, and snippets.

@amashigeseiji
Created April 9, 2013 16:41
Show Gist options
  • Save amashigeseiji/5347272 to your computer and use it in GitHub Desktop.
Save amashigeseiji/5347272 to your computer and use it in GitHub Desktop.
commands.addUserCommand(
["gmail"],
"gmail account switcher",
function(arg)
{
if (arg == 'other') arg = '1';
else arg = '0';
let url = 'http://mail.google.com/mail/u/';
liberator.open(url + arg);
},
{/* extras */
completer: function(context,args){
context.title = ["account"];
context.completions = [
["default","login with default account"],
["other","login with other account"],
];
},
},
true
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment