$(window).load(function () { $('.entity-grid.entitylist').on("loaded", function () { getFullResImages(); }); }); function getFullResImages() { $('table[role="grid"] tbody img[src*="Image/download.aspx"][src!="&Full=true"]').each(function () { var src = $(this).attr('src'); $(this).attr('src', src + '&Full=true'); }); }