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