Skip to content

Commit 2361dbe

Browse files
xiaohuohumaxgithub-actions[bot]
authored andcommitted
build: 📦 build user script
1 parent af38df3 commit 2361dbe

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

dist/downloader.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Downloader 资源下载器(下载资源、Zip 压缩、下载到本地)
33
// @namespace xiaohuohumax/userscripts/downloader
4-
// @version 1.1.0
4+
// @version 1.2.0
55
// @author xiaohuohumax
66
// @description Downloader -- 资源下载器(下载资源、Zip 压缩、下载到本地)
77
// ==/UserScript==
@@ -6645,20 +6645,5 @@ var __privateWrapper = (obj, member, setter, getter) => ({
66456645
}
66466646
GM_download(URL.createObjectURL(blob), options.filename);
66476647
}
6648-
(async () => {
6649-
await downloader2({
6650-
resources: [
6651-
{ name: "index.html", url: location.href },
6652-
{
6653-
name: "hello.txt",
6654-
blob: new Blob(["hello world"], { type: "text/plain" })
6655-
}
6656-
],
6657-
concurrency: 10,
6658-
async onProgress(index) {
6659-
console.log(`正在下载第 ${index + 1} 个资源`);
6660-
}
6661-
});
6662-
})();
66636648
return downloader2;
66646649
}();

0 commit comments

Comments
 (0)