Skip to content

Instantly share code, notes, and snippets.

@vjk2005
Last active August 29, 2015 14:07
Show Gist options
  • Save vjk2005/ddefc24baaac702d6629 to your computer and use it in GitHub Desktop.
Save vjk2005/ddefc24baaac702d6629 to your computer and use it in GitHub Desktop.
Downloader Bookmarks
// iStock ▽
javascript:(function() {var a = document.createElement('a'), img_src = document.getElementById('s3img').children[0].src; a.href = img_src; a.download = img_src.split('/').pop(); document.body.appendChild(a); a.click();})();
// 500px ▽
javascript:(function() { var a = document.createElement('a'), img_src = document.getElementsByClassName('the_photo')[0].src; a.href = img_src; a.download = document.getElementsByClassName('name')[0].innerText + ' by ' + document.getElementsByClassName('author_name')[0].innerText + '.' + img_src.split('.').pop(); document.body.appendChild(a); a.click();})();
// Pinterest ▽
javascript:(function() { var a = document.createElement('a'), img_src = document.getElementsByClassName('pinImage')[0].src; a.href = img_src; a.download = document.getElementsByClassName('commentDescriptionContent')[0].innerText + '.' + img_src.split('.').pop(); document.body.appendChild(a); a.click();})();
// Flickr ▽
javascript:window.location.href = document.getElementById('allsizes-photo').children[1].src
// VSCO ▽
javascript:(function() { var a = document.createElement('a'), img_src = document.getElementById('permalink-media').src.replace(/w=.*&/, 'w=8000x&').split('&')[0], description = document.getElementsByClassName('media-description')[0]; a.href = img_src; a.download = (description? description.innerText.trim() + ' - ' : '') + document.getElementsByClassName('site-title')[0].innerText.toLowerCase() + '.jpg'; document.body.appendChild(a); a.click(); })();
// Brand New logo ▽
javascript:(function() {var a = document.createElement('a'), img_src = document.getElementsByClassName('lead_image_image')[0].children[0].src; a.href = img_src; a.download = img_src.split('/').pop(); document.body.appendChild(a); a.click();})();
// arxiv ▽
javascript:(function() { var link = document.getElementsByClassName('full-text')[0].children[2].children[0].children[0], title = document.getElementsByClassName('title')[0].innerText; link.setAttribute('download', title + ' - ' + link.getAttribute('href').split('/').pop() + '.pdf'); link.click(); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment