Description:
This script is designed to automate clicks on 1fichier.com by handling three distinct scenarios:
No download in progress or time to wait :
In this case, download buttons are automatically clicked without delay. Once the download has started, the tab will
close automatically (if this is the only window or tab open, the browser will send a warning message about the download
in progress).
Presence of a countdown timer:
When a countdown is detected, the script displays information messages in the warning section and on the download
button, indicating the number of minutes remaining, updated over time, and the time at which the download will start.
As the site countdown is not perfectly synchronized on the client side (due to their use of a setInterval which adds a
delay), the longer the countdown, the more inaccurate the download time displayed will be (to within a few seconds or
minutes).
The automatic download will actually start at the end of the countdown regardless of the time displayed, which is only
an estimate. The maximum margin of error corresponds to the script's setInterval delay (default 10 seconds, or as you
prefer), which you can define in the script control panel.
Download already in progress :
If a download is already in progress, the script automatically reloads the page every 5 minutes (by default, but you can
set this to your preference in the script control panel) until the previous download is complete.
Once the current download is complete, the script reverts to the first or second case, depending on the situation. This
feature ensures that the script remains operational and ready to act as soon as conditions allow.
Note
While the countdown timer is active or a download is already in progress, the download button is deliberately disabled
to prevent the user from unintentionally reloading the page while the second or third scenario is active.
It's also possible, in the above-mentioned cases, that a different button is used instead of the download button, in
which case you won't see the customized information text on the download button, but the information will still be
available in the warning section.
The same applies to the “download already in progress” scenario, in which the setInterval is set to 5 min (default, or
according to your preferences), so even if no more downloads are in progress, a maximum of 5 min (default, or according
to your preferences) will pass before the code is executed again.
Script control panel:
3 customization options:
- Bypass Subscription Offer ==> bypass subscription offer at loading page if present. Disabled by default
- Tab Auto Close ==> automatically closes the tab after the download has started. Checked by default, you can
uncheck it to prevent the tab from closing by itself once the download has started.
- Page Reload Delay (minutes) ==> delay in minutes (min: 1, max: 60) between page reloads when a download
is already in progress. Useful if you have a good connection or are less restricted in free user and want to
refresh the page faster between each attempt.
- Update Time Delay (seconds) ==> refresh delay in seconds (min: 1, max: 300) between each update of the
new values. Please understand that this not only concerns the visual update of the remaining time, but
also the execution of the code according to these new values, i.e. whether or not the download button is
clicked.