Changes

MediaWiki:Common.js

414 bytes added, 02:38, 14 December 2024
m
Changing scrollIntoView to be centered instead
if (id) {
document.getElementById(id).scrollIntoView({ behavior: "smooth", block: "startcenter" })
}
}
 
/* Replaces tabberGoTo calls with a proper link that goes to the tab */
Array.from(document.getElementsByClassName('tabberGoTo')).forEach(function (element) {
const newElement = document.createElement('a')
newElement.setAttribute('onclick', "tabberGoTo(this, '" + element.classList[1] + "', '" + element.id + "')")
newElement.textContent = element.textContent
 
element.replaceWith(newElement)
})
/* Replaces currency keywords (Gold, Gems, Defender Medals) with their icon in elements which include currency costs */
WikiDefender, bureaucrat, administrator
736
edits