How to replace Array.prototype.map.call including <img> tags

Im using below snippet in my blogger.

Array.prototype.map.call(document.getElementsByTagName("img"), img => img.src);

I get output of image src like :-

enter image description here

It work get my all image in my post. But Facing issue s1600

I need to change s1600 to s320 it by array.prototype.map.call or any other string



Read more here: https://stackoverflow.com/questions/68459136/how-to-replace-array-prototype-map-call-including-img-tags

Content Attribution

This content was originally published by shafeek at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: