Skip to content

Instantly share code, notes, and snippets.

@divinity76
Created October 18, 2020 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divinity76/0131acef2a810d4fb7acebb4c2e06fc2 to your computer and use it in GitHub Desktop.
Save divinity76/0131acef2a810d4fb7acebb4c2e06fc2 to your computer and use it in GitHub Desktop.
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