Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */ var ads = [ "AD_Hat.png", "AD_Aura.png", "AD_Pass_BB.png", "AD_Pass_HITW.png", "AD_Pass_PKW.png", "AD_Pass_SB.png", "AD_Pass_TGTTOS.png", "AD_Boosts_1.png", "AD_Boosts_2.png", "AD_Cactus_Ranger.png", "AD_Candlewick.png", "AD_Construction_Chaos.png", "AD_Looter_Extraordinaire.png", "AD_Masco_Head.png", "AD_Battle_Pass_1.png", "AD_Battle_Pass_2.png", "AD_Battle_Pass_3.png", ]; // Get the ad var adName = ads[Math.floor(Math.random() * ads.length)]; // Get footer var footer = document.getElementsByClassName('citizen-footer__content')[0]; // Store Link var link = document.createElement("a"); link.href = "https://store.mccisland.net/?utm_source=mccisland.wiki&utm_campaign=wiki_ads"; link.target = "_blank"; link.rel = "noreferrer noopener"; link.className = "citizen-footer__ad"; footer.append(link); // Ad image var ad = document.createElement("img"); ad.src = mw.util.getUrl("Special:Redirect/file/" + adName); link.append(ad);