Array.from(document.getElementsByClassName('currency-included')).forEach(function (element) {
if (!element.innerHTML.match(/Gem|Gold|Defender Medal/i)) return
const phrases currencyRegex = element.innerHTML.match(/(Gem|Gold|Defender Medal)s? (\d.*?)\b|(\d.*?) (Gem|Gold|Defender Medal)s?/gi const phrases = element.innerHTML.match(currencyRegex)
phrases.forEach(function (phrase){
const currency = phrase.match(/Gem|Gold|Defender Medal/i).toString()
element.innerHTML = element.innerHTML.replace(phrasecurrencyRegex, currencyIcons[currency] + " $2$3")
})
})