We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a166c7a commit a6702cfCopy full SHA for a6702cf
1 file changed
DownloadAllContent/DownloadAllContentSavaAsZIP.user.js
@@ -36,7 +36,7 @@
36
let catTitle = cat.match(/.*?\r\n/);
37
if (!catTitle) return;
38
catTitle = catTitle[0].trim();
39
- zip.file(index++ + " - " + catTitle.replace(/[\*\/:<>\?\\\|\r\n]/g, "").slice(0, 50) + ".txt", cat.replace(catTitle, "").replace(/^[\n\r]+/, ""));
+ zip.file(index++ + " - " + catTitle.replace(/[\*\/:<>\?\\\|\r\n]/g, "_").slice(0, 50) + ".txt", cat.replace(catTitle, "").replace(/^[\n\r]+/, ""));
40
});
41
zip.generateAsync({type: "blob", compression: "DEFLATE"}, meta => {zipTips.innerText = "percent: " + ((meta && meta.percent && meta.percent.toFixed(2)) || "100") + "%"}).then(function(content){
42
callback(content);
0 commit comments