Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.17k
stars
416
forks
source link
GM_download original server filename parsed wrong #2148
When I don't specify a filename for the gm_download and it tries to use the server one - it doesn't parse it properly, e.g.
%20 - doesn't turn into spaces, you just remove % sign leaving 20 there and thus corrupting the filename
example url with an image to left click (it will do the gm_download) then compare it with the name it'd give you if you right-click -> save as it: https://rule34.paheal.net/post/view/13409
When I don't specify a filename for the gm_download and it tries to use the server one - it doesn't parse it properly, e.g. %20 - doesn't turn into spaces, you just remove
%
sign leaving 20 there and thus corrupting the filenameserver filename which is given
file%20name.jpg
Expected Behavior
file name.jpg
Actual Behavior
file20name.jpg
Specifications
Script
Example script:
example url with an image to left click (it will do the gm_download) then compare it with the name it'd give you if you right-click -> save as it: https://rule34.paheal.net/post/view/13409