/** * sizeover-imghide.js * * Copyright HeavenlyStar * Release: 2016-5-23 * Last Update: 2016-5-24 * author 御縁 */ function resizeCheck(width,height){ var checkSize = 150; if(width > checkSize || height > checkSize){ return true; } else { return false; } } $(document).ajaxComplete(function() { $("img").each( function() { if(resizeCheck($(this).width(),$(this).height())){ $(this).css('display','none'); } }); return false; });