Skip to content

Instantly share code, notes, and snippets.

@nperez0111
Last active October 3, 2017 20:39
Show Gist options
  • Save nperez0111/f82d1399504d0de218c22b81317e8f02 to your computer and use it in GitHub Desktop.
Save nperez0111/f82d1399504d0de218c22b81317e8f02 to your computer and use it in GitHub Desktop.

Running this code in your browser will scrape images from GradImages.com

In chrome to open the devTools to run the code all you need to do is hold ctrl+shift+i

( function () {
var a = [];
$( '.gal-image' ).each( function () {
var u = 'http:' + ( $( this ).data( 'enlarged-url' ) ),
r = u.split( '?' )[ 0 ];
a.push( [ u, r ] )
} );
window.open( "data:text/html," + encodeURIComponent(
a.map( c => {
return c.map( d => {
return '<img src="' + d + '" />'
} ).join( '' )
} ).join( '' ) ) );
} )()
@BrunoCode
Copy link

@maxinimize still works in chrome browser. i replied to the issue.

@valente151
Copy link

Not working for me either?

@nperez0111
Copy link
Author

Does it throw any error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment