Changes

Jump to: navigation, search

MediaWiki:Common.js

8 bytes removed, 03:28, 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/gig, '[[File:Gem Icon.png|18px]] $1$2')
})
WikiDefender, bureaucrat, administrator
618
edits

Navigation menu