/* 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/gi, '[[<a href="/wiki/File:Gem_Icon.png" class="image"><img alt="Gem Icon.png|18px]] " src="/images/8/8d/Gem_Icon.png" width="18" height="15"></a> $1$2')
})