I made these JavaScript [
en.wikipedia.org]
bookmarklets to clear out my inventory of mediocre equips without having to click
hundreds of tiny icons by hand.
If you know what you're doing, you'll end up with something like this:
CODE
// lock all unlocked equips
var iup = document.getElementsByClassName("iup"), i = iup.length, iu = document.getElementsByClassName("iu"), j = iu.length, to_lock=[]; while(i--) to_lock.push(iup[i]); while (j--) to_lock.push(iu[j]); var k = to_lock.length; while(k--) to_lock[k].click();
// unlock all locked equips
var ilp = document.getElementsByClassName("ilp"), i = ilp.length, il = document.getElementsByClassName("il"), j = il.length, to_unlock=[]; while(i--) to_unlock.push(ilp[i]); while (j--) to_unlock.push(il[j]); var k = to_unlock.length; while(k--) to_unlock[k].click();
// invert lock statuses (lock->unlocked and unlocked->locked simultaneously)
var iup = document.getElementsByClassName("iup"), i = iup.length, iu = document.getElementsByClassName("iu"), j = iu.length, to_lock=[]; while(i--) to_lock.push(iup[i]); while (j--) to_lock.push(iu[j]); var ilp = document.getElementsByClassName("ilp"), l = ilp.length, il = document.getElementsByClassName("il"), m = il.length, to_unlock=[]; while(l--) to_unlock.push(ilp[l]); while (m--) to_unlock.push(il[m]); var n = to_unlock.length; while(n--) to_unlock[n].click(); var k = to_lock.length; while(k--) to_lock[k].click();