Skip to content

Instantly share code, notes, and snippets.

@ahikmatf
Created December 23, 2019 22:32
Show Gist options
  • Save ahikmatf/11167a253d47cc288f6b9c022b454ff1 to your computer and use it in GitHub Desktop.
Save ahikmatf/11167a253d47cc288f6b9c022b454ff1 to your computer and use it in GitHub Desktop.
random way to download instagram picture from browser
# open https://gramsave.com/
# input the instagram username
# tap load more on the page until there is none
// not working yet wkwk
while ( document.querySelector("#load_more_img") != null) {
setTimeout(() => {
document.querySelector("#load_more_img").click()
}), 3000
}
# select every download button
let a = document.querySelectorAll("a.btn.btn-success.mg_top_5.text-shadow.box-shadow")
# click every link inside that array, BEWARE, ITS GONNA BLOW UP
for (let elem in a) { elem.click() }
# info
1. set specific download location on browser
2. switch off the "Ask where to save each file before downloading" setting
3. at the first try maybe you'll encounter the block message from browser that you download too many things, allow those
4. your laptop will open a lot of new tab, calm down, like if you have 200ish picture on that profile, there will likely 200ish tabs opened
5. tada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment