[Feature]: extend trinket tracking
Closed this issue · 1 comments
ljosberinn commented
- Inscrutable Quantum Device
- Instructor's Divine Bell
- Soulletting Ruby
- Salvaged Fusion Amplifier
- Unchained Gladiator's Emblem
- Unchained Gladiator's Badge of Ferocity
- Sinful Gladiator's Badge of Ferocity
- Sinful Gladiator's Emblem
- Cosmic Gladiator's Badge of Ferocity
- Cosmic Gladiator's Emblem
- Splintered Heart of Al'ar
- Soul Igniter
- Tuft of Smoldering Plumage
- Overwhelming Power Crystal
- Shadowgrasp Totem
- Shadowed Orb of Torment
- Relic of the Frozen Wastes
- Tome of Monstrous Constructions
- So'leah's Secret Technique
- Empyreal Ordnance
- Sunblood Amethyst
- Mistcaller Ocarina
- Overcharged Anima Battery
- Wakener's Frond
- Dreadfire Vessel
- Darkmoon Deck: Voracity
- Ebonsoul Vise
- Iron Maiden's Toolkit
- Slimy Consumptive Organ
- Siphoning Phylactery Shard
- Grim Codex
- Lingering Sunmote
- Brimming Ember Shard
- Memory of Past Sins
- Darkmoon Deck: Putrescence
- Darkmoon Deck: Repose
- Vial of Spectral Essence
- Darkmoon Deck: Indomitable
- Macrabre Sheet Music
- Overflowing Anima Cage
- Spare Meat Hook
- Flame of Battle
- Bladedancer's Armor Kit
- Scrawled Word of Recall
- Sanguine Vintage
- Overflowing Ember Mirror
- Skulker's Wing
- Glimmerdust's Grand Design
- Glyph of Assimilation
- Pulsating Stoneheart
- Bargast's Leash
- Tablet of Despair
- Lyre of Sacred Purpose
ljosberinn commented
script to parse wowhead:
function getData() {
const itemName = document.querySelector('h1.heading-size-1').textContent
const icon = document.querySelector('ins[style]').style.backgroundImage.replace('url("https://wow.zamimg.com/images/wow/icons/small/', '').replace('.jpg")', '')
const key = itemName.split(' ').join('_').toUpperCase().replace("\'S", 'S').replace('\'', '').replace(':', '')
const spellLink = document.querySelector('table a[href].q2')
const useDescription = spellLink.parentElement
const spellID = Number.parseInt(spellLink.href.replace('https://www.wowhead.com/spell=', '').split('/')[0])
return JSON.stringify({
[key]: {
ids: [spellID],
icon,
name: itemName,
type: ["cast"],
cd: useDescription.textContent
}
}).slice(1, -1)
}
getData()