We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df24d20 commit b262e86Copy full SHA for b262e86
1 file changed
apps/libs/downloader/README.md
@@ -17,24 +17,22 @@
17
18
## 📖 使用方式
19
20
-1. 添加 `// @require https://***/downloader.js` 库引用
+1. 添加 `// @require https://**/downloader.js?sha384-*` 库引用
21
2. 添加 `// @grant GM_download` 下载权限
22
3. 使用 `downloader` 方法下载资源
23
24
```typescript
25
// ==UserScript==
26
-// ***
27
-// @require https://***/downloader.js?sha384-***
+// @require https://**/downloader.js?sha384-*
28
// @grant GM_download
29
// ==/UserScript==
30
31
(async () => {
32
'use strict'
33
- // 异步调用
34
await downloader({
35
filename: 'index.zip', // 文件名
36
resources: [ // 资源列表
37
- { name: 'index.txt', url: location.href },
+ { name: 'index.html', url: location.href },
38
],
39
concurrency: 10, // 并发数
40
onProgress(index) { // 下载进度回调
0 commit comments