Found a page with no formatting and no jQuery loaded into it so had to go old skool and write some pure Javascript!
This gets a list of img
tags and then loops through them setting the style. I had tried to use forEach
, each
, filter
and others to create a stream loop but nothing seemed to work.
javascript:(
function() {
var x=document.getElementsByTagName("img");
for(var i=0;i<x.length;++i) {
x[i].style.width='100%';
}
}
)()
You will have to remove all the spaces and fit it onto one line, but that's it.