$(".comments .avatar-image-container img").attr("src", function($this, img) {
if (img.match("hqdefault.jpg")) {
return img.replace("/hqdefault.jpg", "/mqdefault.jpg");
} else if (img.match("default.jpg")) {
return img.replace("/default.jpg", "/mqdefault.jpg");
} else if (img.match("s35-c")) {
return img.replace("/s35-c", "/s100-c");
} else if (img.match("s72-c")) {
return img.replace("/s72-c", "/s100-c");
} else if (img.match("w72-h72-p-nu")) {
return img.replace("/w72-h72-p-nu", "/s100-c");
} else {
return img.replace("http://3.bp.blogspot.com/-Yw8BIuvwoSQ/VsjkCIMoltI/AAAAAAAAC4c/s55PW6xEKn0/s1600-r/nth.png");
}
});
//]]>
No comments:
Post a Comment