Hide nodes by sum of attribute

My tags list has 195 tags with a single entry. One of the primary purposes for tags is to compare writing with the same tag to discover similarities, so these entries achieve little.

A simple button to the tags list with the following JavaScript will hide all tags with a plant and stone sum of less than two.

document.querySelectorAll("div.terms-page__terms>div").forEach((el) => {
    var txt = el.childNodes[0].childNodes[1].innerText;
    var txtSum = txt.slice(1,-1).split('/').reduce((p,c) => Number(p) + Number(c));
    if (txtSum < 2) { el.hidden = true; }
})