User:MonkeysHK/common.js

$(".mw-editTools").hide;

$(".invslot").hover(function {	// handler in	$(this).find(".invslot-hover-overlay").show; }, function {	//handler out	$(this).find(".invslot-hover-overlay").hide; });

$(".invslot").mousedown(function(e) {	var $target = $(this).find("img");	$target.addClass("slot-image-follow").css({'top': e.clientY - 16, 'left': e.clientX - 16});	var timer = setInterval(function{ $target.removeClass("slot-image-follow"); clearInterval(timer); }, 300); });

$(document.body).on({	'mousemove': function(e) {		$('.slot-image-follow').css({'top': e.clientY - 16, 'left': e.clientX - 16});	} });