hmjz100/LinkSwift
一个基于 JavaScript 的网盘文件下载地址获取工具。基于【网盘直链下载助手】修改 ,支持 百度网盘 / 阿里云盘 / 中国移动云盘 / 天翼云盘 / 迅雷云盘 / 夸克网盘 / UC网盘 / 123云盘 八大网盘
JavaScript★ 23,926+538 that day#5 on trending
E12.2/100
Duplication45
11.2% in javascript, bash, perlDead code0
99.5%Complexity33
91% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
11.5%duplicated over all files · 1,280 of 11,127 lines
86clones
25files scanned
Most complex files
- (改)网盘直链下载助手.user.js1797 cx
- .git/hooks/fsmonitor-watchman.sample19 cx
- .git/hooks/pre-rebase.sample14 cx
- .git/hooks/sendemail-validate.sample14 cx
- .git/hooks/update.sample13 cx
- .git/hooks/push-to-checkout.sample6 cx
- .git/hooks/pre-commit.sample5 cx
- .git/hooks/pre-push.sample5 cx
- .git/hooks/pre-receive.sample4 cx
- .git/hooks/commit-msg.sample3 cx
Dead code 99.51% unused · 2 findings
- (改)网盘直链下载助手.user.jsunused-file
- (改)百度网盘会员青春版.user.jsunused-file
Only 12 of the files count as code, too few for a code-only percentage; the numbers above cover every file.
Largest clones in the code
- 84 lines in 2 placesjavascript811 tokens
5818base.adaptiveThemeOverride([ 5819 ["#717fff", temp.color], 5820 ["#717FFF", temp.color], 5821 ["#06a8ff", temp.color], 5822 ["#06A8FF", temp.color], 5823 ["#06a7ff", temp.color], 5824 ["#06A7FF", temp.color], 5825 ["#dcdfe6", temp.color], 5826 ["#DCDFE6", temp.color], 5827 ["#0095ff", temp.color],First 10 of 84 lines.
- 14 lines in 4 placesjavascript106 tokens(改)网盘直链下载助手.user.js:6372–6385(改)网盘直链下载助手.user.js:7092–7105(改)网盘直链下载助手.user.js:7660–7673(改)网盘直链下载助手.user.js:7920–7933
6372 tooltip: config.$baidu.dom, 6373 download: { 6374 error: (error) => { 6375 if (!error?.status) return ` 服务器未返回状态,若是下载一段时间后中断,可能是服务器返回文件长度不匹配,请重试;若是直接中断,请检查您的网络、脚本管理器扩展或浏览器~`; 6376 if (error?.status == 403) return ` 服务器说:链接已过期,关闭窗口重新获取试试吧~`; 6377 if (error?.status == 204 || error?.statusText === "IDM") return ` 服务说:链接已被 IDM 捕获~`; 6378 } 6379 } 6380 } 6381}];First 10 of 14 lines.
- 11 lines in 4 placesjavascript103 tokens(改)网盘直链下载助手.user.js:7055–7065(改)网盘直链下载助手.user.js:7275–7285(改)网盘直链下载助手.user.js:7850–7860(改)网盘直链下载助手.user.js:7881–7891
7055selects = selects.filter(item => item.contentID && item.contentName && item.contentSuffix); 7056const batchSize = 15; 7057let proc = 0; 7058$doc.find(".loading-popup .loading-title").html(`地址获取中`); 7059$doc.find(".loading-popup .swal2-html-container").html(`<div>正在获取文件对应的下载地址~</div>`); 7060for (let i = 0; i < selects.length; i += batchSize) { 7061 const batch = selects.slice(i, i + batchSize); 7062 const queue = []; 7063 batch.forEach((item, localIndex) => { 7064 const globalIndex = i + localIndex;First 10 of 11 lines.
7 more
- 51 lines in 2 placesjavascript294 tokens
- 10 lines in 5 placesjavascript73 tokens
- 35 lines in 2 placesjavascript254 tokens
- 10 lines in 3 placesjavascript113 tokens
- 31 lines in 2 placesjavascript214 tokens
- 23 lines in 2 placesjavascript198 tokens
- 9 lines in 3 placesjavascript98 tokens
Largest clones over all files, tests and data included
- 84 lines in 2 placesjavascript811 tokens
5818base.adaptiveThemeOverride([ 5819 ["#717fff", temp.color], 5820 ["#717FFF", temp.color], 5821 ["#06a8ff", temp.color], 5822 ["#06A8FF", temp.color], 5823 ["#06a7ff", temp.color], 5824 ["#06A7FF", temp.color], 5825 ["#dcdfe6", temp.color], 5826 ["#DCDFE6", temp.color], 5827 ["#0095ff", temp.color],First 10 of 84 lines.
- 14 lines in 4 placesjavascript106 tokens(改)网盘直链下载助手.user.js:6372–6385(改)网盘直链下载助手.user.js:7092–7105(改)网盘直链下载助手.user.js:7660–7673(改)网盘直链下载助手.user.js:7920–7933
6372 tooltip: config.$baidu.dom, 6373 download: { 6374 error: (error) => { 6375 if (!error?.status) return ` 服务器未返回状态,若是下载一段时间后中断,可能是服务器返回文件长度不匹配,请重试;若是直接中断,请检查您的网络、脚本管理器扩展或浏览器~`; 6376 if (error?.status == 403) return ` 服务器说:链接已过期,关闭窗口重新获取试试吧~`; 6377 if (error?.status == 204 || error?.statusText === "IDM") return ` 服务说:链接已被 IDM 捕获~`; 6378 } 6379 } 6380 } 6381}];First 10 of 14 lines.
- 11 lines in 4 placesjavascript103 tokens(改)网盘直链下载助手.user.js:7055–7065(改)网盘直链下载助手.user.js:7275–7285(改)网盘直链下载助手.user.js:7850–7860(改)网盘直链下载助手.user.js:7881–7891
7055selects = selects.filter(item => item.contentID && item.contentName && item.contentSuffix); 7056const batchSize = 15; 7057let proc = 0; 7058$doc.find(".loading-popup .loading-title").html(`地址获取中`); 7059$doc.find(".loading-popup .swal2-html-container").html(`<div>正在获取文件对应的下载地址~</div>`); 7060for (let i = 0; i < selects.length; i += batchSize) { 7061 const batch = selects.slice(i, i + batchSize); 7062 const queue = []; 7063 batch.forEach((item, localIndex) => { 7064 const globalIndex = i + localIndex;First 10 of 11 lines.
- 51 lines in 2 placesjavascript294 tokens
- 10 lines in 5 placesjavascript73 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 2 | 9,193 | 80 | 1,127 | 12.26% |
| bash | 9 | 694 | 0 | 0 | 0% |
| perl | 1 | 168 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 2 | 9,193 | 80 | 1,127 | 12.26% |
| json | 7 | 497 | 5 | 137 | 27.57% |
| yaml | 2 | 186 | 1 | 16 | 8.6% |
| bash | 9 | 694 | 0 | 0 | 0% |
| markdown | 4 | 389 | 0 | 0 | 0% |
| perl | 1 | 168 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Oct 17, 2026 | #5 | 23,926 (+538) | 25 | 11,127 | 86 | 11.5% | — | E 12.2 | 88f775d |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.