Greasemonkey脚本,用于将文本框添加到现有站点的每一行

时间:2016-09-13 15:54:59

标签: javascript jquery greasemonkey

我试图弄清楚如何将文本框添加到网站上每行的最后一列。我的Java / JQuery体验非常有限,无法真正理解这一点。

我已粘贴下表之一的代码。

我尝试了getElementsByClassName,但不确定要调用什么。

非常感谢任何帮助!



<tbody>
  <tr id="g_1_hKWlkSGU" class="tr-first stage-scheduled" style="cursor: pointer;" title="">
    <td class="cell_ib icons left">
      <span class="icons left">
        <span class="tomyga icon0">
        </span>
      </span>
      <div data-context="g:g_1_hKWlkSGU" class="mg_dropdown">
        <div class="mg_dropdown_wrapper">
          <span class="mg_dropdown_selected">-</span><span class="down_arrow">
          </span>
        </div>
      </div>
    </td>
    <td class="cell_ad time">19:45</td>
    <td class="cell_aa timer">
      <span>&nbsp;</span>
    </td>
    <td class="cell_ab team-home"><span class="padr">Barcelona</span>
    </td>
    <td class="cell_sa score">-</td>
    <td class="cell_ac team-away">
      <span class="padl">Celtic</span>
    </td>
    <td class="cell_sb part-top">
      <span class="icons">
        <span class="live-centre">
        </span>
      </span>
    </td>
    <td class="cell_ia icons">
      <span class="icons">
        <span class="tv icon1">
        </span>
      </span>
    </td>
    <td class="cell_oq comparison" title="">
      <span class="icons" title="">
        <span class="slive icon0 xxx" title="This match will be available for LIVE betting!">
        </span>
      </span>
    </td>
  </tr>
</tbody>
&#13;
&#13;
&#13;

0 个答案:

没有答案