$(document).on('click', 'a[href^="#bot_"]', function(){
  var botIdStr = $(this).attr('href');
  if ($(botIdStr).find('.ibn-message').length == 0) {
    $(botIdStr + ' dl').prepend('<dt>Test Message</dt><dd><input class="ibn-message" type="text" style="width: 75%;"><a class="btn pull-right ibn-message-send">Send</dd>')
  }
});

$(document).on('click', 'a.ibn-message-send', function(){
  var wrapper = $('a.ibn-message-send').parents('[id^="bot_"]')[0];
  var apiToken = $(wrapper).find('input[readonly]').val();
  var message  = $(wrapper).find('input.ibn-message').val();
  if (message.length == 0) {
    return;
  }

  var matches = $('.room a.active').attr('href').match(/organization\/([^\/]+)\/room\/([^\/]+)/)
  var params = {
    organization_slug: matches[1],
    room_name:         matches[2]
  }
  $.get("https://idobata.io/api/rooms", params, function(data) {
    var roomId = data.rooms[0].id
    var request = {
      params: {
        'message[room_id]': roomId,
        'message[source]':  message
      },
      apiToken: apiToken
    }
    $(wrapper).find('input.ibn-message').val("");
    chrome.runtime.sendMessage(request, function(response) {
    });
  });
});
@@ -28,16 +28,26 @@
 href
-%5E=%22#bot_
+*=%22/settings/bots/
 %22%5D',
@@ -65,323 +65,506 @@
 %7B%0A  
-var botIdStr = $(this).attr('href');%0A  if ($(botIdStr).find('.ibn-message').length == 0) %7B%0A    $(botIdStr + ' dl').prepend('%3Cdt%3ETest Message%3C/dt%3E%3Cdd%3E%3Cinput class=%22ibn-message%22 type=%22text%22 style=%22width: 75%25;%22%3E%3Ca class=%22btn pull-right ibn-message-send%22%3ESend%3C/dd%3E')%0A  %7D%0A%7D);%0A%0A$(document).on('click', 'a.ibn-message-send
+if ($('#nakanohito_text').length) %7B return ; %7D%0A  $('.panel-body.form-horizontal').prepend('%3Cdiv class=%22form-group%22%3E%3Clabel class=%22control-label col-sm-3%22%3ETest Message%3C/label%3E%3Cdiv class=%22col-sm-9 horizontal-container spaced%22%3E%3Cinput id=%22nakanohito_text%22 class=%22ember-view ember-text-field copy-field form-control fit%22 type=%22text%22%3E%3Cbutton id=%22nakanohito_send%22 class=%22ember-view btn btn-default btn-sm tooltipstered%22 style=%22%22%3ESend%3C/button%3E%3C/div%3E%3C/div%3E')%0A%7D);%0A%0A$(document).on('keypress', '#nakanohito_text
 ', f
@@ -575,137 +575,139 @@
 ion(
+e
 )%7B%0A  
-var wrapper = $('a.ibn-message-send').parents('%5Bid%5E=%22bot_%22%5D')%5B0%5D;%0A  var apiToken = $(wrapper).find('input%5Breadonly%5D').val();
+if (e.keyCode == 13) %7B $('#nakanohito_send').trigger('click'); %7D%0A%7D);%0A%0A$(document).on('click', '#nakanohito_send', function()%7B
 %0A  v
@@ -721,45 +721,29 @@
 age 
- 
 = $(
-wrapper).find('input.ibn-message
+'#nakanohito_text
 ').v
@@ -780,20 +780,16 @@
 0) %7B
-%0A   
  return;
 %0A  %7D
@@ -784,18 +784,16 @@
  return;
-%0A 
  %7D%0A%0A  va
@@ -798,50 +798,86 @@
 var 
-matches = $('.room a.active').attr('
+apiToken = $('input.copy-field%5Breadonly%5D').val()%0A  var matches = location.
 href
-')
 .mat
@@ -1268,40 +1268,25 @@
   $(
-wrapper).find('input.ibn-message
+'#nakanohito_text
 ').v
@@ -1367,12 +1367,13 @@
 );%0A  %7D);%0A%7D);
+%0A

Support new Idobata