var img_array = []; var count = 0; jQuery('img').each(function() { img_array[count] = this; count ++; }) jQuery('body').html(''); for (o in img_array) { console.log(img_array[o]); jQuery('body').append(img_array[o]); }console
Perl is blocked by a proxy. Need to save all the images in the page – some which follow a template but are not actually present in the page. The script above can be used to load all the necessary images in the page, which can then be saved to the desktop.
var doItToIt = function (x) { //console.log(x); jQuery('body').append("<img src='"+x+"'>"); } var img_array = []; var count = 0; jQuery('img').each(function() { img_array[count] = this; count ++; }) jQuery('body').html(''); for (o in img_array) { console.log(img_array[o]); jQuery('body').append(img_array[o]); //APPEND IMAGE var thisSrc = img_array[o].src; thisSrc = thisSrc.replace('on.gif', 'off.gif'); thisSrc = thisSrc.replace('down.gif', 'off.gif'); thisSrc = thisSrc.replace('at.gif', 'off.gif'); doItToIt(thisSrc); //Off by default thisSrc = thisSrc.replace('off.gif', 'on.gif'); doItToIt(thisSrc); //On thisSrc = thisSrc.replace('on.gif', 'down.gif'); doItToIt(thisSrc); //Down thisSrc = thisSrc.replace('down.gif', 'at.gif'); doItToIt(thisSrc); //At }

