Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
runewords filter
// for https://diablo2.diablowiki.net/Runewords
$("table:eq(2)>tbody>tr").each(function(u, ele) {
let shouldremove = false;
const t=ele.textContent.toLowerCase();
if (t.indexOf("skill") === -1) {
shouldremove=1;
}
if(shouldremove){
ele.parentNode.removeChild(ele);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment