User:AttemptToCallNil/common.js

// jshint jquery:true, esversion:5

// You should really not import my common.js. It is subject to change without notice. Please don't make me uncomment that chunk of code below. /*$(function {	if (mw.config.get("wgUserName") !== "AttemptToCallNil") {		$("div#footer")			.append($(" ") .attr({					"id": "dontusemyjs",					"src": "https://minecraft.gamepedia.com/media/minecraft.gamepedia.com/8/84/Sheep3.ogg",					"autoplay": "autoplay",					"loop": "loop"				}) );		$("#dontusemyjs").trigger("play");	}	});*/

// Because the BLOCKED stamp is too annoying $(function {	var blockedDiv = $(".blocked");	if (blockedDiv.length > 0) {		blockedDiv.hide;		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&user=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); } });