User:BDJP007301/common.js

//Rollback function (function {	if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {		$(".mw-rollback-link").on('click', function(e) { var linkText = $(e.target).text, count = linkText.match(/\d/) ? linkText.match(/\d+/)[0] : null, message = 'Rollback ' + (count ? count + ' edits' : 'edit') + ' by ' + mw.util.getParamValue('from',e.target.href) + '?'; if(!confirm(message)) return e.preventDefault; });	} });

// Remove annoying block text thing $(function {	var blockedDiv = $(".blocked");	if (blockedDiv.length > 0) {		var usernameSpan;		var username;		var targetBlock = $(".userinfo");		if ($("#mw-mf-viewport").length > 0) { // Detect mobile mode			usernameSpan = $("#section_0");			username = usernameSpan.html.match(/UserProfile:(.*)/)[1];		} else {			usernameSpan = $("h1 .mw-headline");			username = usernameSpan.attr("id");		}

$(' ').append(			$(' ')			.append("This user is currently blocked! ")			.append($("") .attr("href", "https://minecraft.gamepedia.com/index.php?title=Special:Log/block&page=User%3A" + username) .attr("title", "Block log") .text("Check the block log") ).append(" • ")			.append($("") .attr("href", "https://minecraft.gamepedia.com/Special:GlobalBlockList?wpTarget=" + username) .attr("title", "Global block log") .text("List global blocks") ).append("")		).appendTo(targetBlock); } });

/* CSS code */ .curseprofile .blocked { display: none; }

.blocked-no-stamp { clear: right; }

.skin-minerva .blocked-no-stamp { float: right; text-align: right; }

.blocked-no-stamp span { font-weight: bold; font-size: 125%; }