28 views
hmjz100/LinkSwift
一个基于 JavaScript 的网盘文件下载地址获取工具。基于【网盘直链下载助手】修改 ,支持 百度网盘 / 阿里云盘 / 中国移动云盘 / 天翼云盘 / 迅雷云盘 / 夸克网盘 / UC网盘 / 123云盘 八大网盘
JavaScript★ 35,346+1,616 that day#6 on trending
E10.9/100
Duplication42
12.3% in javascriptDead code0
99.5%Complexity31
99.5% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
12.46%duplicated over all files · 1,280 of 10,270 lines
86clones
15files scanned
Most complex files
- (改)网盘直链下载助手.user.js1802 cx
- eslint.config.mjs1 cx
Dead code 99.51% unused · 2 findings
- (改)网盘直链下载助手.user.jsunused-file
- (改)百度网盘会员青春版.user.jsunused-file
Only 2 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
5822base.adaptiveThemeOverride([ 5823 ["#717fff", temp.color], 5824 ["#717FFF", temp.color], 5825 ["#06a8ff", temp.color], 5826 ["#06A8FF", temp.color], 5827 ["#06a7ff", temp.color], 5828 ["#06A7FF", temp.color], 5829 ["#dcdfe6", temp.color], 5830 ["#DCDFE6", temp.color], 5831 ["#0095ff", temp.color],First 10 of 84 lines.
- 14 lines in 4 placesjavascript106 tokens(改)网盘直链下载助手.user.js:6376–6389(改)网盘直链下载助手.user.js:7096–7109(改)网盘直链下载助手.user.js:7664–7677(改)网盘直链下载助手.user.js:7924–7937
6376 tooltip: config.$baidu.dom, 6377 download: { 6378 error: (error) => { 6379 if (!error?.status) return ` 服务器未返回状态,若是下载一段时间后中断,可能是服务器返回文件长度不匹配,请重试;若是直接中断,请检查您的网络、脚本管理器扩展或浏览器~`; 6380 if (error?.status == 403) return ` 服务器说:链接已过期,关闭窗口重新获取试试吧~`; 6381 if (error?.status == 204 || error?.statusText === "IDM") return ` 服务说:链接已被 IDM 捕获~`; 6382 } 6383 } 6384 } 6385}];First 10 of 14 lines.
- 11 lines in 4 placesjavascript103 tokens(改)网盘直链下载助手.user.js:7059–7069(改)网盘直链下载助手.user.js:7279–7289(改)网盘直链下载助手.user.js:7854–7864(改)网盘直链下载助手.user.js:7885–7895
7059selects = selects.filter(item => item.contentID && item.contentName && item.contentSuffix); 7060const batchSize = 15; 7061let proc = 0; 7062$doc.find(".loading-popup .loading-title").html(`地址获取中`); 7063$doc.find(".loading-popup .swal2-html-container").html(`<div>正在获取文件对应的下载地址~</div>`); 7064for (let i = 0; i < selects.length; i += batchSize) { 7065 const batch = selects.slice(i, i + batchSize); 7066 const queue = []; 7067 batch.forEach((item, localIndex) => { 7068 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
5822base.adaptiveThemeOverride([ 5823 ["#717fff", temp.color], 5824 ["#717FFF", temp.color], 5825 ["#06a8ff", temp.color], 5826 ["#06A8FF", temp.color], 5827 ["#06a7ff", temp.color], 5828 ["#06A7FF", temp.color], 5829 ["#dcdfe6", temp.color], 5830 ["#DCDFE6", temp.color], 5831 ["#0095ff", temp.color],First 10 of 84 lines.
- 14 lines in 4 placesjavascript106 tokens(改)网盘直链下载助手.user.js:6376–6389(改)网盘直链下载助手.user.js:7096–7109(改)网盘直链下载助手.user.js:7664–7677(改)网盘直链下载助手.user.js:7924–7937
6376 tooltip: config.$baidu.dom, 6377 download: { 6378 error: (error) => { 6379 if (!error?.status) return ` 服务器未返回状态,若是下载一段时间后中断,可能是服务器返回文件长度不匹配,请重试;若是直接中断,请检查您的网络、脚本管理器扩展或浏览器~`; 6380 if (error?.status == 403) return ` 服务器说:链接已过期,关闭窗口重新获取试试吧~`; 6381 if (error?.status == 204 || error?.statusText === "IDM") return ` 服务说:链接已被 IDM 捕获~`; 6382 } 6383 } 6384 } 6385}];First 10 of 14 lines.
- 11 lines in 4 placesjavascript103 tokens(改)网盘直链下载助手.user.js:7059–7069(改)网盘直链下载助手.user.js:7279–7289(改)网盘直链下载助手.user.js:7854–7864(改)网盘直链下载助手.user.js:7885–7895
7059selects = selects.filter(item => item.contentID && item.contentName && item.contentSuffix); 7060const batchSize = 15; 7061let proc = 0; 7062$doc.find(".loading-popup .loading-title").html(`地址获取中`); 7063$doc.find(".loading-popup .swal2-html-container").html(`<div>正在获取文件对应的下载地址~</div>`); 7064for (let i = 0; i < selects.length; i += batchSize) { 7065 const batch = selects.slice(i, i + batchSize); 7066 const queue = []; 7067 batch.forEach((item, localIndex) => { 7068 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,197 | 80 | 1,127 | 12.25% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 2 | 9,197 | 80 | 1,127 | 12.25% |
| json | 7 | 497 | 5 | 137 | 27.57% |
| yaml | 2 | 187 | 1 | 16 | 8.56% |
| markdown | 4 | 389 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Oct 29, 2026 | #6 | 35,346 (+1,616) | 15 | 10,270 | 86 | 12.46% | — | E 10.9 | c62d10a |
| 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.