User:MateyY/ExtraAdminButtons.js

/* The following script was created by MateyY. * Version: 1.0 BETA * For skins: oasis * JavaScript library used: jQuery * Function: Adds block buttons on user's profile, talk, and main blog page. * For users: sysop, bureaucrat, helper, staff * Build for use on: all wikis * Do NOT use except with permission. * Do NOT copy the code; import it! * Thank you! */ $(document).ready(function {	var wgUserUsername = '"' + wgPageName + '"';	var wgUserBlockUser = wgUserUsername.substring(6,999);	var wgUserBlockTalk = wgUserUsername.substring(12,999);	var wgUserBlockBlog = wgUserUsername.substring(9,999);	if (wgUserGroups == "sysop" || wgUserGroups == "bureaucrat" || wgUserGroups == "helper" || wgUserGroups == "staff") {		if (wgNamespaceNumber == 1) $("div.tabs-container ul.tabs").append('Block');		else if (wgNamespaceNumber == 2) $("div.tabs-container ul.tabs").append('Block');		else if (wgNamespaceNumber == 500) {			if ($("div.tabs-container ul.tabs").value.length > 0) $("div.tabs-container ul.tabs").append('Block'); }	} });