This simple code collects direct links of images in an Imgur Gallery. Follow the steps below to use.
- Copy the JavaScript code provided in
index.js
.
- Open your web browser and go to Imgur.
- It's important to actually be on
imgur.com
for the script to work properly.
- Open the Inspect tool or Developer Console by pressing
F12
on your keyboard. Alternatively, you can right-click on the page and selectInspect
. - Navigate to the Console tab within the Developer Tools.
- Paste the copied code into the console. Note: If prompted, you might need to type
allow pasting
before you can proceed.
- Change the URL in the code to the gallery URL from which you want to extract direct links.
- Adjust other settings as needed. The possible values are
true
orfalse
for the settings provided in the script.
- Press
Enter
to run the script. The direct links to the images in the gallery will be extracted based on the script's logic.