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 = $("h1 .mw-headline");		var username = usernameSpan.attr("id");

$(' ')		.append("[BLOCKED – ") .append($("")			.attr("href", "https://minecraft.gamepedia.com/index.php?title=Special:Log/block&user=User%3A" + username)			.attr("title", "Block log")			.text("see log")		).append(" | ") .append($("")			.attr("href", "https://minecraft.gamepedia.com/Special:GlobalBlockList?wpTarget=" + username)			.attr("title", "Global block log")			.text("global blocks")		).append("]") .appendTo(usernameSpan); } });