(function() {

  var $message = $('<div id="copy_session">Terminal command copied to clipboard.</div>')
    .hide().appendTo('body')

  var paCommand = ''
  if (navigator.appVersion.match('Mac')) {
    paCommand = '~/Library/Application\\ Support/Uber\\ Entertainment/Planetary\\ Annihilation/data/streams/stable/PA.app/Contents/MacOS/PA --ticket '
  /* ????
  } else if (navigator.appVersion.match('Linux')) {
    paCommand = '~/.local/Uber\\ Entertainment/Planetary\\ Annihilation/stable/PA --ticket '
  } else if (navigator.appVersion.match('Win')) {
    paCommand = '%LOCALAPPDATA%/Uber\\ Entertainment/Planetary\\ Annihilation/data/streams/stable/PA --ticket '
  */
  }

  $('body').on('copy', function(e) {
    if (model.jabberToken() == null || model.jabberToken() === '') return true

    e.originalEvent.clipboardData.setData('Text', paCommand + model.jabberToken())
    $message.show().fadeOut(2000)

    return false
  })
})()

@@ -14,17 +14,16 @@
 %0A%0A  var 
-$
 message 
@@ -28,109 +28,20 @@
 e = 
-$('%3Cdiv id=%22copy_session%22%3ETerminal command copied to clipboard.%3C/div%3E')%0A    .hide().appendTo('body')%0A
+'Session id'
 %0A  v
@@ -97,24 +97,57 @@
 h('Mac')) %7B%0A
+    message = 'Terminal command'%0A
     paComman
@@ -343,24 +343,57 @@
 'Linux')) %7B%0A
+    message = 'Terminal command'%0A
     paComman
@@ -519,24 +519,57 @@
 h('Win')) %7B%0A
+    message = 'Terminal command'%0A
     paComman
@@ -677,13 +677,131 @@
  */%0A
-
   %7D%0A%0A
+  var $message = $('%3Cdiv id=%22copy_session%22%3E' + message + ' copied to clipboard.%3C/div%3E')%0A    .hide().appendTo('body')%0A%0A
   $(

correct message if we only have session id