Last active
November 19, 2023 16:21
-
-
Save aice09/51287f4f02c3bc915a7df4232605f326 to your computer and use it in GitHub Desktop.
Automatically download MangaFreak files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before running this code, please make sure to configure your browser settings to allow automatic downloads. | |
// Define the base URL and set the initial number | |
let baseUrl = 'https://images.mangafreak.net/downloads/One_Piece_'; | |
let startNumber = 1; // You can change this to any specific number set by the user | |
for (let i = startNumber; i <= 1083; i++) { // Change the end number to 1083 or any specific number set by the user | |
setTimeout(() => { | |
// Format the number with leading zeros | |
let num = i; | |
// Open the URL in a new window or tab | |
window.open(baseUrl + num); | |
}, (i - startNumber) * 1000); // Adjust the timeout delay based on the current number | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use this code.