title: How to get a table cell value in Tampermonkey?
body: <p>I am <strong>Chrome</strong> user and I would like to <strong>customize some website</strong>. I have <strong>Tampermonkey</strong> (something similar to Greasemonkey for Firefox) extension for my Chrome. Now I can add some Javascript code for specific website.</p>
  
  <p>Now, all I want is to get value from some table and show it in popup window.</p>
  
  <p>Example of HTML code:</p>
  
  <pre><code>&lt;div id="Content"&gt;
  
  &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;
  &lt;td&gt;Text number 1&lt;/td&gt;
  &lt;td&gt;Text number 2&lt;/td&gt;
  &lt;/tr&gt;&lt;/tdoby&gt;&lt;/table&gt;
  
  &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;
  &lt;td&gt;Text number 3&lt;/td&gt;
  &lt;td&gt;Text number 4&lt;/td&gt;
  &lt;/tr&gt;&lt;/tdoby&gt;&lt;/table&gt;
  
  &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;
  &lt;td&gt;Text number 5&lt;/td&gt;
  &lt;td&gt;Text number 6&lt;/td&gt;
  &lt;/tr&gt;&lt;/tdoby&gt;&lt;/table&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>My code so far:</p>
  
  <pre><code>var xpath = "id('Content')/table[1]/tbody/tr/td[2]";
  var result = document.evaluate(xpath, document, null, XPathResult.ANY_TYPE, null );
  myWin=window.open('','','width=400,height=400');
  myWin.document.write(result);
  </code></pre>
  
  <p>but it doesn't show content of this "td" (Text number 2)</p>
  
  <p>any idea?</p>