aboutsummaryrefslogtreecommitdiffstats
path: root/pixiv.js
diff options
context:
space:
mode:
Diffstat (limited to 'pixiv.js')
-rw-r--r--pixiv.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/pixiv.js b/pixiv.js
index e6e9bc2..2d5e7d1 100644
--- a/pixiv.js
+++ b/pixiv.js
@@ -128,6 +128,9 @@ commands.addUserCommand(
let truePixivImg=function(){
let fileName=imgUrl.substr(imgUrl.lastIndexOf('/'));
+ if (-1!=fileName.indexOf('?')){
+ fileName=fileName.substr(0,fileName.indexOf('?'));
+ }
let tmpPath=savePath+fileName;
let instream=xhrImg.responseText;
let aFile=Cc["@mozilla.org/file/local;1"]