Created
April 9, 2013 16:41
-
-
Save amashigeseiji/5347272 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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