Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var elements = document.getElementsByClassName('media__thumbnail');
for(var i=0; i < elements.length; i++)
{
var element = elements[i];
var url = element.children[0].getAttribute("src");
url = url.replace('_145', '_1000');
element.setAttribute("src", url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment