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'));
}
})()
@AntonBushmelev
Copy link

it download only first 10 images =( can u check it ? plz

@kijart
Copy link
Author

kijart commented Jan 15, 2020

it download only first 10 images =( can u check it ? plz

Hi @AntonBushmelev, the script is still correct. It may be a limitation of your browser, I suggest you try it on a different browser (I tested on Firefox and works well).

Copy link

ghost commented Feb 15, 2023

Sir @kijart, the script is not working.

@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