}
if (isArray(wgUserGroups)) { if (wgUserGroups.Contains('*')) { addOnloadHook(CustomizeModificationsOfSidebar); }}
function isObject(obj) {
if (typeof obj == "object" && obj != null)
return true;
else
return false;
}
function isArray(obj) {
if (isObject(obj)) {
if (obj.constructor.toString().indexOf("Array") == -1)
return false;
else
return true;
}
else
return false;
}
Array.prototype.Contains = function(element,strict) {
for(i in this) {
if(this[i] == element && !strict) return true;
else if(this[i] === element) return true;
}
return false;
}