User:Fubsy/wikia.js

if (mediaWiki.config.get("wgPageName") === "Special:Unusedimages") { $(function {		var str = "";		$('.gallerytext > a').each(function  { str += decodeURIComponent(this.href.substring(this.href.indexOf("File"))) + "\n"; });		var $textarea = $(' ');		$textarea.val(str);		$('.gallery').before($textarea);	}); }