<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -91,8 +91,9 @@
 
 
 
-document.body.appendChild(document.createElement('script')).innerHTML= &quot;function retone(transpose){if (transpose == 0){ return false; } var notes1 = new Array( 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'); var notes2 = new Array( 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B', 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B'); var transposed_note = ''; transpose = parseInt(transpose); var note = ''; var current_note_index=0; if (transpose &lt; 0){ transpose = 12 + transpose; } var text_array = document.body.innerHTML.split(''); var current_note = ''; for (var index = 0, len = text_array.length; index &lt; len; ++index) { note=text_array[index]; if((notes1.indexOf(text_array[index]) &gt; -1) &amp;&amp; (text_array[index+1].match(/[qwertyuiopfghjklzxcvn]/) == null )){ if(text_array[index+1]=='#'){ note = note+text_array[index+1]; transposed_note = notes1[notes1.indexOf(note) + transpose]+' '; temp = transposed_note.split(''); text_array[index] = temp [0]; text_array[index+1] = temp [1]; } else if(text_array[index+1]=='b' ){ note = note+text_array[index+1]; transposed_note = notes2[notes2.indexOf(note) + transpose]+' '; temp = transposed_note.split(''); text_array[index] = temp [0]; text_array[index+1] = temp [1]; } else if(text_array[index+1]==' ' ){ text_array[index] = notes1[notes1.indexOf(note) + transpose]; } else { text_array[index] = notes1[notes1.indexOf(note) + transpose]; } } } document.body.innerHTML = text_array.join('');};function rmv(){document.body.removeChild(document.getElementById(\'coderado_monkeychord\'));document.body.removeChild(document.body.lastChild); };&quot;;
+document.body.appendChild(document.createElement('script')).innerHTML= &quot;function retone(transpose){if (transpose == 0){ return false; } var notes1 = new Array( 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'); var notes2 = new Array( 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B', 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B'); var transposed_note = ''; transpose = parseInt(transpose); var note = ''; var current_note_index=0; if (transpose &lt; 0){ transpose = 12 + transpose; } var text_array = document.body.innerHTML.split(''); var current_note = ''; for (var index = 0, len = text_array.length; index &lt; len; ++index) { note=text_array[index]; if((notes1.indexOf(text_array[index]) &gt; -1) &amp;&amp; (text_array[index+1].match(/[qwertyuiopfghjklzxcvn]/) == null )){ if(text_array[index+1]=='#'){ note = note+text_array[index+1]; transposed_note = notes1[notes1.indexOf(note) + transpose]+' '; temp = transposed_note.split(''); text_array[index] = temp [0]; text_array[index+1] = temp [1]; } else if(text_array[index+1]=='b' ){ note = note+text_array[index+1]; transposed_note = notes2[notes2.indexOf(note) + transpose]+' '; temp = transposed_note.split(''); text_array[index] = temp [0]; text_array[index+1] = temp [1]; } else if(text_array[index+1]==' ' ){ text_array[index] = notes1[notes1.indexOf(note) + transpose]; } else { text_array[index] = notes1[notes1.indexOf(note) + transpose]; } } } document.body.innerHTML = text_array.join('');};function rmv(){document.body.removeChild(document.getElementById(\'coderado_monkeychord_html\'));document.body.removeChild(document.getElementById(\'coderado_monkeychord_script\')); };&quot;;
 
-//document.body.removeChild(getElementByTag(\'script\')[getElementByTag(\'script\').length-1] )
 
-document.body.innerHTML= &quot;&lt;div id=\'coderado_monkeychord\' style='color:#0038B9;position: fixed;	top: 2;left:2;z-index:9999;font-family:arial,sans-serif; font-size:11px; width:200px;background-color:#FFFE9C;border:#DBF9FF solid 7px;' align=center&gt;&lt;a href=\'#\' style='float:right;' onclick=\&quot;rmv();\&quot;&gt;- X -&lt;/a&gt;MonkeyChord by &lt;a href='http://coderado.com/projects/monkeychord'&gt;Coderado&lt;/a&gt;&lt;br&gt;select transposition&lt;select id='tone' style='left: 50%; top: 0px;' onchange=\&quot;javascript:void(retone(this.value));\&quot;&gt;&lt;option&gt;-6&lt;/option&gt;&lt;option&gt;-5&lt;/option&gt;&lt;option&gt;-4&lt;/option&gt;&lt;option&gt;-3&lt;/option&gt;&lt;option&gt;-2&lt;/option&gt;&lt;option&gt;-1&lt;/option&gt;&lt;option selected='selected'&gt;0&lt;/option&gt;&lt;option&gt;+1&lt;/option&gt;&lt;option&gt;+2&lt;/option&gt;&lt;option&gt;+3&lt;/option&gt;&lt;option&gt;+4&lt;/option&gt;&lt;option&gt;+5&lt;/option&gt;&lt;option&gt;+6&lt;/option&gt;&lt;/select&gt;&lt;/div&gt;&quot;+document.body.innerHTML;
\ No newline at end of file
+document.body.lastChild.id=&quot;coderado_monkeychord_script&quot;
+
+document.body.innerHTML= &quot;&lt;div id=\'coderado_monkeychord_html\' style='color:#0038B9;position: fixed;	top: 2;left:2;z-index:9999;font-family:arial,sans-serif; font-size:11px; width:200px;background-color:#FFFE9C;border:#DBF9FF solid 7px;' align=center&gt;&lt;a href=\'#\' style='float:right;' onclick=\&quot;rmv();\&quot;&gt;- X -&lt;/a&gt;MonkeyChord by &lt;a href='http://coderado.com/projects/monkeychord'&gt;Coderado&lt;/a&gt;&lt;br&gt;select transposition&lt;select id='tone' style='left: 50%; top: 0px;' onchange=\&quot;javascript:void(retone(this.value));\&quot;&gt;&lt;option&gt;-6&lt;/option&gt;&lt;option&gt;-5&lt;/option&gt;&lt;option&gt;-4&lt;/option&gt;&lt;option&gt;-3&lt;/option&gt;&lt;option&gt;-2&lt;/option&gt;&lt;option&gt;-1&lt;/option&gt;&lt;option selected='selected'&gt;0&lt;/option&gt;&lt;option&gt;+1&lt;/option&gt;&lt;option&gt;+2&lt;/option&gt;&lt;option&gt;+3&lt;/option&gt;&lt;option&gt;+4&lt;/option&gt;&lt;option&gt;+5&lt;/option&gt;&lt;option&gt;+6&lt;/option&gt;&lt;/select&gt;&lt;/div&gt;&quot;+document.body.innerHTML;
\ No newline at end of file</diff>
      <filename>monkeychord.user.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cac4283944769297db5f6f9e6b771b6d34ecf73f</id>
    </parent>
  </parents>
  <author>
    <name>Spyros Vasileiadis</name>
    <email>spyridon.vasileiadis@gmail.com</email>
  </author>
  <url>http://github.com/idonas/monkey-chord/commit/5595b5236cfb6ab0990a25516a214514c8007397</url>
  <id>5595b5236cfb6ab0990a25516a214514c8007397</id>
  <committed-date>2009-03-02T06:29:12-08:00</committed-date>
  <authored-date>2009-03-02T06:29:12-08:00</authored-date>
  <message>cleaned remove feature. it no longer relies on relative structure but uses id's instead.</message>
  <tree>671a58110e230ab1d2ca8528ee5cd574243d7c26</tree>
  <committer>
    <name>Spyros Vasileiadis</name>
    <email>spyridon.vasileiadis@gmail.com</email>
  </committer>
</commit>
