Batch download files from a MediaFire folder with delay
MediaFire Batch Downloader is a user script that enhances your MediaFire experience by adding batch download functionality for folders and automating single file downloads. This tool is designed to save you time when downloading multiple files from MediaFire folders.
Version: 1.0
Author: Aditya Jain
License: GNU GPL v3
Github: https://gist.github.com/AadityaJain-Dev/a0f889cf0077a19c17e1ec7e3f53481b
https://www.mediafire.com/folder/)https://www.mediafire.com/file/)If you click "DOWNLOAD ALL" and nothing happens or you see an alert about popups being blocked:
If not all files in a large folder are being downloaded:
1500 value in the scrolling function to a higher number (e.g., 2500)If your browser becomes unresponsive during batch downloads:
8000 value in the script to a higher numberThe script uses several JavaScript techniques to accomplish its tasks:
The script is organized into several key functions:
init(): Entry point that determines the page typehandleFolderPage(): Sets up the folder page enhancementhandleFilePage(): Handles automatic download on file pagescheckPopupPermission(): Verifies popup permissionsaddDownloadAllButton(): Creates and adds the download buttoninitiateDownloadAll(): Main function that performs the batch downloadscrollAndCollect(): Progressively loads all files in the folderYou can customize the script by modifying certain values:
5000 in the file page handler to adjust how quickly tabs close after download starts (in milliseconds)8000 in the batch download function to adjust time between opening files (in milliseconds)1500 in the scrolling function to adjust how long to wait after scrolling (in milliseconds)