Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Run this from the console in Chrome when viewing an image on WallpapersCraft.
// It will download the 3840x2400 version of the image to your downloads folder.
// Example url: = function(url) {
e = document.createEvent('MouseEvents');
a = document.createElement('a'); = url;
a.href = url;
e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
};$('body > div.all > div > div.center_wb > div.wallpaper_big > div.wb_preview > div.wb_resolution > div:nth-child(7) > a:nth-child(2)')[0].href.replace(/(\d)\/(\d)/, "$1_$2").concat('.jpeg').replace('download', 'image'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.