MediaWiki:Common.js
Jump to navigation
Jump to search
In other languages: Español • Français
CSS and Javascript changes must comply with the wiki design rules.
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
window.addEventListener('load', function(){
//***********************
//* Area Damage Link JS *
//***********************
//Find all with AreaDamage Class, on click opens new tab on Area Damage Page
var areaDamageDivs = document.getElementsByClassName("AreaDamage");
if (areaDamageDivs !== null) {
for(var n = 0; n < areaDamageDivs.length; n++) {
areaDamageDivs[n].setAttribute("onclick","window.open('https://deeprockgalactic.wiki.gg/Area_Damage', '_blank');");
}
}
});