-
Notifications
You must be signed in to change notification settings - Fork 31
Dump Equipment from GO
Rohan Vazarkar edited this page Oct 4, 2020
·
3 revisions
Go to Gear Optimizer, and press Ctrl + Shift + I in Chrome or F12 in Firefox to open the developer tools.
Open console in the developer tools and paste the following:
let appStates = []
let reactRoot = document.getElementById('app')
let base
try {
base = reactRoot._reactRootContainer._internalRoot.current
} catch (e) {
console.log('Could not get internal root information from reactRoot element')
}
while (base) {
try {
state = base.pendingProps.store.getState()
// This also sometimes works...
// state = base.stateNode.store.getState()
appStates.push(state)
} catch (e) {
// no state
}
base = base.child
}
$r = appStates[0].optimizer
let x = JSON.stringify($r.savedequip.map((x) => {if (x.name !== undefined){return {[x.name]:x.accessory.concat(x.head).concat(x.boots).concat(x.armor).concat(x.pants).concat(x.weapon).filter(x => x < 10000)}} }).filter(x => x !== undefined))
let y = $r.equip; let z = y.accessory.concat(y.head).concat(y.boots).concat(y.armor).concat(y.pants).concat(y.weapon)
console.log("Saved Loadouts")
console.log(x)
console.log("Currently Equipped")
console.log(z)