Changes

Jump to: navigation, search

MediaWiki:Common.js

1 byte added, 03:27, 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/g, '[[File:Gem Icon.png|18px]] $1$2')
})
WikiDefender, bureaucrat, administrator
618
edits

Navigation menu