Changes

MediaWiki:Common.js

105 bytes added, 03:35, 15 February 2023
no edit summary
/* 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')
})
WikiDefender, bureaucrat, administrator
618
edits