if (id) {
document.getElementById(id).scrollIntoView({ behavior: "smooth", block: "startcenter" })
}
}
/* Replaces tabberGoTo calls with a proper link that goes to the tab */
Array.from(document.getElementsByClassName('tabberGoTo')).forEach(function (element) {
const newElement = document.createElement('a')
newElement.setAttribute('onclick', "tabberGoTo(this, '" + element.classList[1] + "', '" + element.id + "')")
newElement.textContent = element.textContent
element.replaceWith(newElement)
})
/* Replaces currency keywords (Gold, Gems, Defender Medals) with their icon in elements which include currency costs */