Как добавить столбец в таблицу в Greasemonkey?
Я хочу улучшить html-страницу с помощью Greasemonkey и javascript.
Моя цель: добавить дополнительную ячейку после последней ячейки в каждой строке таблицы.
<table class="villages borderGap">
<thead>
<tr>
<th class="name">Деревня:</th>
<th class="oases">Оазисы</th>
<th class="inhabitants"><i class="population_medium"></i></th>
<th class="coordinates">Координаты</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><a href="/karte.php?d=80401">Natars</a></td>
<td class="oases"><div></div></td>
<td class="inhabitants">854</td>
<td class="coordinates">
<a class="" href="/karte.php?x=0&y=0">‭
<span class="coordinates coordinatesWrapper coordinatesAligned coordinatesltr">
<span class="coordinateX">(‭0‬</span>
<span class="coordinatePipe">|</span>
<span class="coordinateY">‭0‬)</span>
</span>‬
</a>
</td>
</tr>
</tbody>
</table>
хочу добавить столбец
<table class="villages borderGap">
<thead>
<tr>
<th class="name">Деревня:</th>
<th class="oases">Оазисы</th>
<th class="inhabitants"><i class="population_medium"></i></th>
<th class="coordinates">Координаты</th>
<th class="delta">delta</th><!-- add JavaScript -->
</tr>
</thead>
<tbody>
<tr>
<td class="name"><a href="/karte.php?d=80401">Natars</a></td>
<td class="oases"><div></div></td>
<td class="inhabitants">854</td>
<td class="coordinates">
<a class="" href="/karte.php?x=0&y=0">‭
<span class="coordinates coordinatesWrapper coordinatesAligned coordinatesltr">
<span class="coordinateX">(‭0‬</span>
<span class="coordinatePipe">|</span>
<span class="coordinateY">‭0‬)</span>
</span>‬
</a>
</td>
<td class="delta">delta</td><!--add JavaScript -->
</tr>
</tbody>
</table>
