/* Replaces the word "gems" with the gem icon in texts where gem costs are mentioned */
[..Array.from(document.getElementsByClassName('gem-cost-included')]).forEach(element => { element.textContent = element.textContent.replace(/gems\s*?(\d+)|(\d+)\s*?gems/g, '[[File:Gem Icon.png|18px]] $1$2')
})