Skip to content

Instantly share code, notes, and snippets.

@blha303
Created December 10, 2013 22:35
Show Gist options
  • Save blha303/7901632 to your computer and use it in GitHub Desktop.
Save blha303/7901632 to your computer and use it in GitHub Desktop.
IRCCloud toggle global away with message. Put away message in current channel input box, click bookmarklet. Click bookmarklet again (in a connection marked as away) to use global /back.
javascript:if (cbc().isAway()) { SESSION.connections.each(function (c) { c.setBack() }) } else { var inputbox = $('#bufferInputView' + cb().bid()); var msg = inputbox.val(); inputbox.val(""); SESSION.connections.each(function (c) { c.setAway(msg) }) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment