Ahaochan / Tampermonkey

油猴脚本集合
https://greasyfork.org/zh-CN/users/30831
GNU General Public License v3.0
787 stars 131 forks source link

firefox下载多图没有.zip后缀 #67

Open yuzhen1024 opened 2 years ago

yuzhen1024 commented 2 years ago

基本信息

我确认我已经完成以下步骤

如题

TAKAYANORIKO commented 1 year ago

我也一样。

yuzhen1024 commented 1 year ago

我也一样。

687行 改为:

 GM.getValue(GMkeys.downloadName, `{pid}`).then(name => {
                            zip.generateAsync({type: 'blob', base64: true})
                                .then(content => saveAs(content, getDownloadName(name) + 
                                    (navigator.userAgent.indexOf("Firefox") > -1 ? '.zip' : '')
                                ));
                        });
TAKAYANORIKO commented 1 year ago

我也一样。

687行 改为:

 GM.getValue(GMkeys.downloadName, `{pid}`).then(name => {
                            zip.generateAsync({type: 'blob', base64: true})
                                .then(content => saveAs(content, getDownloadName(name) + 
                                    (navigator.userAgent.indexOf("Firefox") > -1 ? '.zip' : '')
                                ));
                        });
TAKAYANORIKO commented 1 year ago

谢谢,光改687行没有成功,最后是用上面说的增强js成功了。