Since the image limit only cost when requesting image URL (see wiki), the script will use finalUrl field to get the real image URL which is provided by GM_xmlHttpRequest, this should save your image limits when re-downloading.
However, in latest Tampermonkey, it only assigns finalUrl when the request is loaded, and before that the finalUrl is the request URL. That means when re-downloading, the script will request image URL again, and cost your image limits again.
The finalUrl is the requesting image URL when the file is not fully downloaded
The finalUrl only updates when the file is fully downloaded
It works fine on GreaseMonkey, once GreaseMonkey get the headers of request, it updates finalUrl.
Before Tampermonkey fix the bug, maybe we can extract the final URL from tm-finalurlgcal header.
For the script user, if you usually needs to restart a download (often request fails or needs to abort if speed is too low), it's better to use GreaseMonkey for now.
Since the image limit only cost when requesting image URL (see wiki), the script will use
finalUrl
field to get the real image URL which is provided byGM_xmlHttpRequest
, this should save your image limits when re-downloading.However, in latest Tampermonkey, it only assigns
finalUrl
when the request is loaded, and before that thefinalUrl
is the request URL. That means when re-downloading, the script will request image URL again, and cost your image limits again.The
finalUrl
is the requesting image URL when the file is not fully downloadedThe
finalUrl
only updates when the file is fully downloadedIt works fine on GreaseMonkey, once GreaseMonkey get the headers of request, it updates
finalUrl
.Before Tampermonkey fix the bug, maybe we can extract the final URL from
tm-finalurlgcal
header.For the script user, if you usually needs to restart a download (often request fails or needs to abort if speed is too low), it's better to use GreaseMonkey for now.