Changes

Jump to: navigation, search

MediaWiki:Common.js

4 bytes removed, 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 innerHTML = element.textContentinnerHTML.replace(/gems\s*?(\d+)|(\d+)\s*?gems/gi, '<a href="/wiki/File:Gem_Icon.png" class="image"><img alt="Gem Icon.png" src="/images/8/8d/Gem_Icon.png" width="18" height="15"></a> $1$2')
})
WikiDefender, bureaucrat, administrator
618
edits

Navigation menu