User:Vish/common.js

(function ($, mw) {	// wrap non thumb images first	$('img[alt*=NSFWTAG]').each(function (i, e) { var title = this.parentElement.title; title = title.replace('NSFWTAG', ''); $(e).parent.attr('title', title); }).parent.add($('.thumbinner,.gallerybox').has('.nsfwelement').find('.image').parent)	.one('click', function (e) { console.log($(e)); $(this).css('background', 'none').find('img, .image-lazy-loaded').css({			visibility: 'none !important'		}); e.preventDefault; })	.css({ backgroundImage: 'url("https://static.jojowiki.com/images/customizations/Dialog-warning-yellow.png")', backgroundRepeat: 'no-repeat', backgroundPosition: 'center' })	.find('img','.image-lazy-loaded').css({ visibility: 'hidden' }); }(jQuery, mediaWiki));