MediaWiki:Gadget-DeferredDisplay.js

/** * Deferred display of nsfw-tagged images. * jshint validation * @author Dschwen, 2013 / Vish, 2023 */ (function ($, mw) {	// wrap non thumb images first	$('img[alt*=NSFWTAG]').parent.add($('.thumbinner,.gallerybox') .has('.nsfwelement').find('.image').parent)	.one('click', function (e) { console.log($(e)); $(this).css('background', 'none').find('img').css({			visibility: ''		}); e.preventDefault; })	.css({ backgroundImage: 'url("https://static.jojowiki.com/images/customizations/Dialog-warning-yellow.png")', backgroundRepeat: 'no-repeat', backgroundPosition: 'center', display: 'block' })	.find('img').css({ visibility: 'hidden' }); }(jQuery, mediaWiki));