You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
server filename which is given
file%20name.jpg
Expected Behavior
file name.jpg
Actual Behavior
file20name.jpg
Specifications
FF 129.0
TM: 5.1.1
OS: Win 10
Script
Example script:
// ==UserScript==// @name Test for GM_download// @namespace http://tampermonkey.net/// @version 2025// @description try to take over the world!// @author You// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net// @match https://www.google.com.hk/*// @match https://www.google.com/*// @grant GM_download// @include https://rule34.paheal.net/post/view/13409// ==/UserScript==(function(){'use strict';document.querySelector('#main_image').addEventListener('click',function(){console.log("a click on the image");GM_download({"url": document.querySelector('#main_image').src,"name": null,"saveAs": true,"onload": function(e){console.log("onload: %o",e);},"onerror": function(e){console.log("onerror: %o",e);},"onprogress": function(e){console.log("onprogress: %o",e);},"ontimeout ": function(e){console.log("ontimeout : %o",e);}});});})();
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: