<a title="Bookmarklet calculating the grouped costs" href="javascript:(function()%7Balert(JSON.stringify(Array.from(document.querySelectorAll(%22tr%3Anth-of-type(n%2B2)%22)).reduce((acc%2C%20row)%20%3D%3E%20%7Bconst%20team%20%3D%20row.children%5B1%5D.textContent%3Bconst%20hours%20%3D%20%2Brow.children%5B2%5D.textContent%3Breturn%20%7B%20...acc%2C%20%5Bteam%5D%3A%20(acc%5Bteam%5D%20%7C%7C%200)%20%2B%20hours%20%7D%3B%7D%2C%7B%7D)))%7D)()">Calculate the grouped costs by clicking this bookmarklet!</a>

<table>
  <tr>
    <th>Item</th>
    <th>Team</th>
    <th>Hours</th>
  </tr>
  <tr>
    <td>Designing the shop front</td>
    <td>Tigers</td>
    <td>200</td>
  </tr>
  <tr>
    <td>Developing the MVP</td>
    <td>Panthers</td>
    <td>500<br></td>
  </tr>
  <tr>
    <td>Feature request #999</td>
    <td>Panthers</td>
    <td>450</td>
  </tr>
  <tr>
    <td>Creating  sales pitches</td>
    <td>Lions</td>
    <td>1100<br></td>
  </tr>
  <tr>
    <td>Designing the Christmas banner</td>
    <td>Tigers<br></td>
    <td>130</td>
  </tr>
</table>
<br>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.