var urlBase = "http://img-9gag-lol.9cache.com/photo/";. $(".badge-evt.badge-nsfw-entry-cover").each(function () {. // Remove the NSFW class, to avoid redundant .