Skip to content

Instantly share code, notes, and snippets.

View sphvn's full-sized avatar

Stephen Underwood sphvn

  • dolabradigital.com
  • Los Angeles, California
  • 14:42 (UTC -07:00)
View GitHub Profile
@sphvn
sphvn / icyveins2atlasloot
Last active April 19, 2023 19:53
Pulling item ID's from wowhead.com / icyveins best in slot lists into the atlasloot import format
var qs = x => document.querySelector(x);
var qsa = (x, y) => x.querySelectorAll(y)
var toArr = x => Array.prototype.slice.call(x);
var elemId = ".bis_table";
var itemSlot = "span a";
toArr(qsa(qs(elemId), itemSlot))
.map(x => x.href)
.map(x => x.split('=')[1])