Changes

Jump to: navigation, search

MediaWiki:Common.js

82 bytes added, 00:07, 8 November 2023
Test
/* Replaces the rarity keywords like "mythical" or "legendary" to have their icon with the rarity */
Array.from(document.getElementsByClassName('rarity')).forEach(function (element) {
element.innerHTML = element.innerHTML.replace(/worn/gi, '<a class="image" ><span style="color: #808080;">Worn</span><img alt="Worn Icon.png" src="/images/3/34/Worn_Icon.png" width="18"></a>'); element.innerHTML = element.innerHTML.replace(/sturdy/gi, '<a class="image" ><span style="color: #808080808000;">Sturdy</span><img alt="Sturdy Icon.png" src="/images/c/cf/Sturdy_Icon.png" width="18"></a>'); element.innerHTML = element.innerHTML.replace(/powerful/gi, '<a class="image" ><span style="color: #808080008000;">Powerful</span><img alt="Powerful Icon.png" src="/images/2/29/Powerful_Icon.png" width="18"></a>'); element.innerHTML = element.innerHTML.replace(/epic/gi, '<a class="image" ><span style="color: #8080803366FF;">Epic</span><img alt="Epic Icon.png" src="/images/f/fc/Epic_Icon.png" width="18"></a>');
})
WikiDefender
1,807
edits

Navigation menu