How would I change image source url on Blogger with Javascript so that -rw is automatically inserted into the source link?
Thanks in advance.
Example:
To
This sounds like something that would be better achieved in the Blogger side of things rather than manipulated on the client side. But if you have ruled out changing this at the server side it would be possible with Javascript.
document.querySelectorAll('img').forEach(function(item) {
item.src = item.src.replace(/s1600/gi, "s1600-rw");
})
This will find all img tags and search the source (src) attribute for the s1600 and replace with s1600-rw.