Skip to content

Instantly share code, notes, and snippets.

@kijart
Created June 15, 2018 18:11
Show Gist options
  • Save kijart/3270427b682f355b602f4c0a6500a0d8 to your computer and use it in GitHub Desktop.
Save kijart/3270427b682f355b602f4c0a6500a0d8 to your computer and use it in GitHub Desktop.
Quotefancy wallpapers downloader
javascript:(function() {
function forceDownload(href) {
const anchor = document.createElement('a');
anchor.href = href;
anchor.download = href.substring(href.lastIndexOf('/') + 1);
document.body.appendChild(anchor);
anchor.click();
document.body.removeChild(anchor);
}
const imgNodes = document.querySelectorAll('div.dl-wrapper a');
for (const imgNode of imgNodes) {
forceDownload(imgNode.getAttribute('href'));
}
})()
@kijart
Copy link
Author

kijart commented Feb 20, 2023

Sir @kijart, the script is not working.

Hi @Refrigero, I just tested the script again and it works correctly.

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