Difference between revisions of "MediaWiki:Group-bureaucrat.js"

From PokéHeroes Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for bureaucrats only: const menuCategories = ['#p-Event_Pok\\.C3\\.A9mon', '#p-Pages', '#p-Pok\\.C3\\.A9mon', '#p-Events', '#p-Help'];...")
 
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for bureaucrats only */
 
/* Any JavaScript here will be loaded for bureaucrats only */
const menuCategories = ['#p-Event_Pok\\.C3\\.A9mon', '#p-Pages', '#p-Pok\\.C3\\.A9mon', '#p-Events', '#p-Help'];
+
let menuCategories = ['#p-Event_Pok\\.C3\\.A9mon', '#p-Pages', '#p-Pok\\.C3\\.A9mon', '#p-Events', '#p-Help'];
 
function shuffle(a) {
 
function shuffle(a) {
 
     var j, x, i;
 
     var j, x, i;

Revision as of 23:13, 19 July 2020

/* Any JavaScript here will be loaded for bureaucrats only */
let menuCategories = ['#p-Event_Pok\\.C3\\.A9mon', '#p-Pages', '#p-Pok\\.C3\\.A9mon', '#p-Events', '#p-Help'];
function shuffle(a) {
    var j, x, i;
    for (i = a.length - 1; i > 0; i--) {
        j = Math.floor(Math.random() * (i + 1));
        x = a[i];
        a[i] = a[j];
        a[j] = x;
    }
    return a;
}