Full Code of hmjz100/LinkSwift for AI

dev 7f46cbaeaaa9 cached
16 files
647.2 KB
285.8k tokens
159 symbols
1 requests
Download .txt
Showing preview only (665K chars total). Download the full file or copy to clipboard to get everything.
Repository: hmjz100/LinkSwift
Branch: dev
Commit: 7f46cbaeaaa9
Files: 16
Total size: 647.2 KB

Directory structure:
gitextract_r264j1ue/

├── .github/
│   ├── CODE_OF_CONDUCT.md
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.yml
│   │   ├── config.yml
│   │   └── feature_request.yml
│   └── contributing.md
├── LICENSE
├── README-ScriptCat.md
├── README.md
├── config/
│   ├── ali.json
│   ├── config.json
│   ├── quark.json
│   ├── tianyi.json
│   ├── xunlei.json
│   └── yidong.json
├── (改)百度网盘会员青春版.user.js
└── (改)网盘直链下载助手.user.js

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/CODE_OF_CONDUCT.md
================================================
# 贡献者公约 & 行为准则

## 我们的承诺

我们作为成员、贡献者和领导者承诺,让社区参与者免遭骚扰,无论其年龄、体型、可见或不可见的残疾、族裔、性征、性别认同和表达、经验水平、教育程度、社会地位、国籍、外貌、种族、宗教或性取向如何。

我们承诺以有助于建立开放、友善、多元、包容、健康社区的方式行事和互动。

## 我们的标准

有助于为我们的社区创造积极环境的行为包括:

* 对他人的同理心和善意
* 尊重不同的意见、观点和经验
* 给予并优雅地接受建设性反馈
* 承担责任并向受我们错误影响的人道歉,并从经验中学习
* 关注不仅对个人最有利,而且对整个社区最有利的事情

不可接受的行为包括:

* 使用性化的语言或图像,以及任何形式的性关注或接近
* 挑衅、侮辱或贬损的评论,以及个人或政治攻击
* 公开或私下的骚扰
* 未经他人明确许可,发布他人的私人信息,例如物理地址或电子邮件地址
* 在专业场合下可能被合理视为不适当的其他行为

## 执行责任

社区领导者有责任澄清和执行我们的可接受行为标准,并将对任何他们认为不当、威胁、冒犯或有害的行为采取适当和公平的纠正措施。

社区领导者有权和责任删除、编辑或拒绝不符合本行为准则的评论、提交、代码、Wiki 编辑、问题和其他贡献,并将在适当时沟通管理决策的理由。

## 适用范围

本行为准则适用于所有社区空间,并且当个人在公共空间中正式代表社区时也同样适用。代表社区的示例包括使用官方电子邮件地址、通过官方社交媒体帐户发帖、或在在线或线下活动中担任指定代表。

## 执行

对于虐待、骚扰或其他不可接受行为的实例,可向负责执行的社区领导者报告。
所有投诉都将得到及时和公平的审查和调查。

所有社区领导者都有义务尊重任何事件报告者的隐私和安全。

## 执行指南

社区领导者将遵循以下社区影响指南来确定他们视为违反本行为准则的行为的后果:

### 1. 纠正

**社区影响**:使用不恰当的语言或其他在社区中被认为不专业或不受欢迎的行为。

**后果**:社区领导者的私下书面警告,明确说明违规行为的性质并解释行为为何不当。可能会要求公开道歉。

### 2. 警告

**社区影响**:通过单次事件或一系列行为违反。

**后果**:带有持续行为后果的警告。在规定时间内,禁止与相关人员进行互动,包括与执行行为准则的人员未经请求的互动。这包括避免在社区空间以及社交媒体等外部渠道中的互动。违反这些条款可能会导致临时或永久封禁。

### 3. 临时封禁

**社区影响**:严重违反社区标准,包括持续的不当行为。

**后果**:在规定时间内,禁止与社区进行任何形式的互动或公开交流。在此期间,不允许与相关人员进行公开或私下互动,包括与执行行为准则的人员未经请求的互动。违反这些条款可能会导致永久封禁。

### 4. 永久封禁

**社区影响**:表现出违反社区标准的模式,包括持续的不当行为、骚扰个人、或对个体或群体进行攻击或贬损。

**后果**:永久禁止在社区内进行任何形式的公共互动。

## 来源

本行为准则改编自 [贡献者公约][homepage] 2.0 版,可在 https://www.contributor-covenant.org/version/2/0/code_of_conduct.html 获取。

社区影响指南受 [Mozilla 行为准则执行阶梯](https://github.com/mozilla/diversity) 的启发。

[主页]: https://www.contributor-covenant.org

关于本行为准则的常见问题解答,请参阅 https://www.contributor-covenant.org/faq。其他语言的翻译可在 https://www.contributor-covenant.org/translations 获取。

================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.yml
================================================
name: 错误报告
description: 反馈发现的 Bug、问题……
title: "[错误报告] 请修改我为您的问题"
labels: ["bug/漏洞"]
assignees:
  - hmjz100
body:
  - type: markdown
    attributes:
      value: |
        感谢您花时间填写此错误报告。
        请**务必**确认您的问题无重复,且不是因为您的操作、网络或运行脚本的程序问题。

  - type: checkboxes
    attributes:
      label: 确认
      description: 您必须确认、同意并勾选以下事项。
      options:
        - label: |
            我已确认阅读并同意 [AGPL-3.0 第 15 条](https://www.gnu.org/licenses/agpl-3.0.txt#:~:text=15.%20Disclaimer%20of%20Warranty.) 。
            本项目不提供任何明示或暗示的担保,使用风险由您自行承担。
          required: true
        - label: |
            我已确认阅读并同意 [AGPL-3.0 第 16 条](https://www.gnu.org/licenses/agpl-3.0.txt#:~:text=16.%20Limitation%20of%20Liability.) 。
            无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。
          required: true
        - label: 我已确认是此脚本的问题,而不是其他原因(例如网络、脚本依赖或操作)。
          required: true
        - label: 我已安装金丝雀版,并且确认金丝雀版未修复此问题。
          required: true
        - label: 我已查找过其他议题,确认没有重复的疑问或讨论。
          required: true
        - label: 我已修改上方的 “请修改我为您的问题” 为自己的问题。
          required: true

  - type: dropdown
    id: os-version
    attributes:
      label: 操作系统
      description: 运行浏览器程序使用的操作系统
      options:
        - Windows 11
        - Windows 10
        - Windows 8
        - Windows 7
        - Windows XP
        - iOS
        - Mac (x86)
        - Mac (arm)
        - Android
        - Linux
        - 其他
    validations:
      required: true

  - type: input
    id: browser-version
    attributes:
      label: 浏览器及版本
      description: 使用的是什么浏览器?版本?架构?Chromium 内核版本(如有)
      placeholder: Edge 143.0.3650.96 (正式版) (64 位) ,Chromium 143.0.7499.147
    validations:
      required: true

  - type: dropdown
    id: userscript-manager
    attributes:
      label: 用户脚本管理器
      description: 使用的用户脚本管理器是?
      options:
        - 篡改猴 / Tampermonkey
        - 篡改猴测试版 / Tampermonkey Beta
        - 篡改猴 (MV2 经典版) / Tampermonkey Legacy
        - 暴力猴 / Violentmonkey
        - 脚本猫 / ScriptCat
        - 脚本猫 Beta / ScriptCat Beta
        - Via
        - 其他(请在下方输入)
    validations:
      required: true

  - type: input
    id: userscript-manager-other
    attributes:
      label: 用户脚本管理器(其他)
      description: 如果在上方选择了 “其他”,请在这里填写,输入你使用的用户脚本管理器名称

  - type: input
    id: userscript-manager-version
    attributes:
      label: 用户脚本管理器版本
      description: 使用的用户脚本管理器版本?(如是 Via 请输入浏览器版本)
    validations:
      required: true

  - type: input
    id: userscript-version
    attributes:
      label: 脚本版本
      description: 非必须,用户脚本的版本
      placeholder: 使用的 LinkSwift 的版本是?

  - type: textarea
    id: what-happened
    attributes:
      label: 问题详情
      description: 简洁清晰的问题描述
      placeholder: 发生了什么?
    validations:
      required: true

  - type: textarea
    id: reproduce-steps
    attributes:
      label: 复现步骤
      description: 非必须,如何复现此问题的步骤
      placeholder: |
        1. [第一步]
        2. [第二步]
        3. [...]

  - type: textarea
    id: proof-items
    attributes:
      label: 参考数据
      description: 非必须,帮助诊断的截图或者其他资料
      placeholder: |
        日志、网页截图、F12 控制台截图或 DevTools 快照
        **截图可以直接 Ctrl-V 粘贴哦~**

================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
blank_issues_enabled: false
contact_links:
  - name: 问题和讨论
    url: https://github.com/hmjz100/LinkSwift/discussions
    about: 对脚本、各大网盘的讨论、问题、想法、投票等可在此社区发布

================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.yml
================================================
name: 功能请求
description: 请求新功能
title: "[功能请求] 请修改我为您的问题"
labels: ["enhancement/新功能"]
assignees:
  - hmjz100
body:
  - type: markdown
    attributes:
      value: |
        感谢您花时间填写此报告。

  - type: checkboxes
    attributes:
      label: 确认
      description: 您必须确认、同意并勾选以下事项。
      options:
        - label: |
            我已确认阅读并同意 [AGPL-3.0 第 15 条](https://www.gnu.org/licenses/agpl-3.0.txt#:~:text=15.%20Disclaimer%20of%20Warranty.) 。
            本项目不提供任何明示或暗示的担保,使用风险由您自行承担。
          required: true
        - label: |
            我已确认阅读并同意 [AGPL-3.0 第 16 条](https://www.gnu.org/licenses/agpl-3.0.txt#:~:text=16.%20Limitation%20of%20Liability.) 。
            无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。
          required: true
        - label: 我已确认此脚本不存在此功能,而不是因其他原因(例如网络、脚本依赖或操作)造成的无功能。
          required: true
        - label: 我已安装金丝雀版,并且确认金丝雀版未实现此功能。
          required: true
        - label: 我已查找过其他议题,确认没有重复的功能请求。
          required: true
        - label: 我已修改上方的 “请修改我为您的问题” 为自己的问题。
          required: true

  - type: textarea
    id: issue-today
    attributes:
      label: 存在问题
      description: 目前存在什么问题
      placeholder: 脚本目前不能……

  - type: textarea
    id: target-tomorrow
    attributes:
      label: 目标愿景
      description: 希望实现的目标
      placeholder: 希望能……
    validations:
      required: true

  - type: textarea
    id: advice-if
    attributes:
      label: 参考建议
      description: 可供参考的建议、思路或者示例
      placeholder: |
        有什么实现思路,或者参考的样例?
        **截图可以直接 Ctrl-V 粘贴哦~**

================================================
FILE: .github/contributing.md
================================================
# 贡献指南

## 开发环境

编者的环境如下:

- 开发工具  
Visual Studio Code、Github Desktop、Git

- AI 辅助(按常用排序,纯聊天,无助理)  
Google/Gemini(VSCode 插件、网页)、Microsoft/Copilot、阿里/通义千问、深度求索/DeepSeek、OpenAI/ChatGPT

- 浏览器(按常用排序,除第一位外不常访问)  
Microsoft Edge > Supermium > 百分浏览器

- 浏览器插件(有冲突时会适配)  
脚本管理器、uBlock Origin、ZeroOmega、Dark Reader、Header Editor

- 脚本管理器(按常用排序,除第一、二位外不常访问)  
暴力猴 > Via > 篡改猴 > 脚本猫

- 使用的网盘  
脚本中有提到的均有在使用,但不常用

## 开发指南

首先,克隆本项目的 dev 分支……然后开始编码……

为 base 编写的函数记得署上自己的帐号名/昵称,并加上 description……

余下待编。总之编好后提 PR **到 dev 分支**即可。

---

silence is golden.

================================================
FILE: LICENSE
================================================
                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

  A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.  Many developers of free software are heartened and
encouraged by the resulting cooperation.  However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

  The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community.  It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server.  Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

  An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals.  This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU Affero General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Remote Network Interaction; Use with the GNU General Public License.

  Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software.  This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time.  Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source.  For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code.  There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.


================================================
FILE: README-ScriptCat.md
================================================
<details>
<summary>【置顶】【Q&A】为啥本脚本不能破解百度网盘限速?其他脚本又能?</summary>
<p><br/>在本站,您可能见过某些宣称 “无限制下载” “不限速解析” “无视黑号” 的脚本,安装后,却又要求完成特定【任务】才能获取【加速下载链接】。</p>
<p>这些脚本究竟是如何实现的?为何本脚本无法做到?</p>
<p>主流网盘对非会员用户的限速机制,<strong>是由客户端与服务端协同控制实现的</strong>。</p>
<p>因此,在以前,即便有用 Cheat Engine 修改客户端倍速等 “邪修” 方法,绕过了本地限速。那么也会被服务端检测到,导致直接 “黑号”。</p>
<p>由此,我们可得结论:<strong>仅靠前端脚本是无法突破网盘的限速机制的</strong>。</p>

<p>
既然纯前端无法突破限速,那那些脚本又是如何 “做到” 的?<br/>
——答案其实很简单:<strong>它们并非真正 “破解” 了限速,而是通过后端服务器 “借用” 了他人会员权限</strong>。<br/>
无论是脚本,还是一些 “解析站”,底层逻辑如出一辙,<strong>本质上都是 “换汤不换药”</strong>。
</p>

<p>它们的工作原理总结如下:</p>
	<ol>
	<li>
		<strong>上传</strong>
		<ol>
			<li>(你勾选了某个文件,并选择了获取下载链接)</li>
			<li>然后,脚本会调用网盘的 API,无感 “帮” 你生成文件的分享链接</li>
			<li>在解析站中,这一步一般是由你自行完成。</li>
		</ol>
	</li>
	<li>
		<strong>中转</strong>
		<ol>
			<li>脚本将分享链接发送至作者的第三方服务器</li>
			<li>服务器判定权限不足,要求扫码关注公众号进小程序看广告完成任务<br/>(除了公众号外,还可能是要求安装某视频平台 APP 完成任务)</li>
			<li>历尽千辛万苦,完成了任务后,服务器会从作者自建的会员账号 Cookie 池中选取一个可用的账号<br/>(类似于 ChatGPT 共享账号)</li>
		</ol>
	</li>
	<li>
		<strong>下载</strong>
		<ol>
			<li>服务器用选中的会员账号,调用网盘的 API,转存你的文件,获取文件的不限速直链</li>
			<li>直链被返回给脚本,进行后续的下载操作<br/>(在此步中,返回的链接一般会被脚本直接发送到下载器)</li>
		</ol>
	</li>
</ol>

<p>简言之,这类工具本质上是<strong>借用他人会员权限</strong>来实现的不限速。</p>
<p>但使用这类服务时,你也可能面临以下风险:</p>
<ol>
	<li><strong>账号被封</strong><br/>由于依赖分享链接实现功能,如果你分享的文件曾被举报过,可能会导致对方账号和你的账号一同被封禁。</li>
	<li><strong>隐私泄露</strong><br/>如果分享的是私密资源,第三方也有可能看到你的文件内容。(懂的都懂,比如 “冠希哥” 事件)</li>
	<li><strong>服务失效</strong><br/>一旦这些工具背后的会员账号被平台批量封禁(业内俗称 “烧号”),而作者停止维护了,这些工具就会彻底失效。</li>
</ol>

<p>而本脚本与它们的区别在于:</p>
<ol>
	<li><strong>无第三方</strong><br/>不会访问也没有任何第三方服务器,杜绝隐私泄露与中间环节</li>
	<li><strong>直连官方</strong><br/>仅调用网盘服务 API 接口获取直链,支持自由选择下载器</li>
	<li><strong>权限可控</strong><br/>下载速度完全取决于您自身账号的权限(<strong>非会员仍会被限速</strong>)</li>
</ol>

<p>若您希望获得更快的下载速度,建议安装网盘官方客户端,通过贡献上行带宽换取下载加速,这在一定程度上能够帮助平台降低存储分发成本。</p>
</details>
<center>
	<p>“出淤泥而不染,濯清涟而不妖”</p>
	<hr>
	<p>
		<img alt="Github Stargazers" src="https://img.shields.io/github/stars/hmjz100/LinkSwift?label=星标&logo=github&logoColor=white&labelColor=black&color=gold&style=for-the-badge&cacheSeconds=10">
		<img alt="Github Forks" src="https://img.shields.io/github/forks/hmjz100/LinkSwift?label=复刻&logo=github&logoColor=white&labelColor=black&color=grey&style=for-the-badge&cacheSeconds=10">
		<br/>
		<img alt="Github Licence" src="https://img.shields.io/github/license/hmjz100/LinkSwift?label=许可&logo=github&logoColor=white&labelColor=black&color=grey&style=for-the-badge&cacheSeconds=10">
		<br/>
		<a href="https://trendshift.io/repositories/13630" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13630" alt="hmjz100%2FLinkSwift | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
		<br/>
		<img src="https://img.shields.io/chrome-web-store/v/ndcooeababalnlpkfedmmbbbgkljhpjf.svg?label=脚本猫&logo=data%3aimage%2fpng%3bbase64%2ciVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAANJUlEQVR4Xu1da3BU5Rl%2b3rMbKEWEbECQQQ1kT4igqFU6OlYHptqrHbRa2or3ismegFMqWp1Wi9qOrZfRkezZRKy3Ftt6qTK1dVrt6HipttQRuWiSs4GoDAbJngWRUkn2vJ2TBIsQ4Jw97yGbnG9nduDH%2bz7f8z7fk2%2fP5bsQ1CfSClCkq1fFQxkg4iZQBlAGiLgCES9fjQDKABFXIOLlqxFAGSDiCkS8fDUCKAPIKlCeaTsHDkbRMOdle76%2bURY9mmiJZdYk3qWdAQ3b86mqZyRVEBsBys3Wewl0PoCJnxIkvMagh%2fOpZJMk6ahglWeytQS%2bFIzT9qh5E4OfzBvVV0voIGKARLplCUj72QEIrSINy3J1uilBeqhjVDRaBjuYD%2bDE%2fdbKzs12%2fdQlQbUIbIDyjDWPGL%2f1RIRoDRWc%2b3MLqu%2f1FB%2bxoIqG1qs5pl0J5uO9lM6Ei%2fIpfbmX2P3FBDeAaT1CwMX%2bSPA7YFpm1%2bt3%2b8sbmtGJtLUIxPMBOtZPhQz8Jm%2fol%2fjJ2Ts2sAESZutbAM0okkRrrxGSdxaZP6jTEuns4t6OR3VxhfBq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M4SBazoDYCVgexCm5EALeBPO8bsIncfAMJjoeTMcDPAMgv29St1Is%2frVc7eR%2fei3UtwFc4PK0dRsIiwgYvldDawFaS3DWweF1Wjy%2bdktd1X5PEx1ttk6JgZYDONUr4SEW93oBPG%2bbUb1%2bf3WNa2zTne7u46DRdIY2HWB3o6j%2bNot6luDc53fqeFEGcMmObrC%2bQIzD3f9rZfjQ644Uexc6dul7EwuxT5ZHbfqYO80rVhg%2br3Ph0UXNnnZ3bHG6cISrZ5lGG4s9SrZoA0j%2bJY5qeKeiTIu7I8FXJXFLGOuvXU73vO0Ljs0NNMeSMIArwvhHOkbu2rF9OTHmDLQoYbbPhBXDRo6at%2fmSCWLHvgThWzIG6CliyQvxxLhJTSBcEaSoks1lPGBv2ViLJbO7S4VjaRmgT5XyTNs5BOdaMM4sFaEC8SC8xNDu8POSJlB7PpJL0gC7%2bSfS1iIQFgOY6KOmUgrdBMaddr23p3IDQbykDdBzt7G0eXI8HlvMjNAmRoYhPBHM7u7CndsW1mwIA18Ks%2bQN8Olo0Nh6Njl0GaPnIrFU1xzuIGAFa%2fyQXVcterCDVIfvjTNoDLCb%2bPhM9ogudr7JRHNK5Y7BvbIn5hVlpP15cyr5YVidFQbuoDPAniIk0tmjSMMcZucSgGaGIdD%2bMXklkfYIO1hh1ycH7WvyQW2APTunomlDDbq7pjmgCUQYD%2fdf8ATunZK%2b%2bzvMo0l2AXC3wO8goINBHQB3MGOzBu5AvOztXO3kIXFG8pAxgMeOVWF7KaAMEHFLKAMoA0RcgYiXr0YAZYCIKxDx8tUIoAwQcQUiXr4aAZQBIq5AxMtXI4AyQMQViHj5agRQBoi4AhEvX40AygARVyDi5f8PRBbertzz5yMAAAAASUVORK5CYIIK&color=blue&style=for-the-badge" alt="脚本猫">
		<img src="https://img.shields.io/chrome-web-store/v/jaehimmlecjmebpekkipmpmbpfhdacom.svg?label=脚本猫%20Beta&logo=data%3aimage%2fpng%3bbase64%2ciVBORw0KGgoAAAANSUhEUgAAAMgA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LpgYAIpAdYu1s6sWDOcDvnV4xALAQHvl8hork%2bMI%2bAuQyeS6C5M%2f%2bNXJSQBHQY2MrgrQTaGvy3AWxh5q0wjCoYNR%2bomh2jOvLUtk1RYoktIAKRXSAE9kBABCLbQwiIQGQPCIFwBOQIEo6bWGWEgAgkI42WMsMREIGE4yZWGSEgAslIo6XMcAREIOG4iVVGCIhAMtJoKTMcARFIOG5ilRECIpCMNFrKDEdABBKOm1hlhIAIJCONljLDERCBhOMmVhkhIALJSKOlzHAERCDhuIlVRgiIQDLSaCkzHAERSDhuYpURAiKQjDRaygxHQAQSjptYZYSACCQjjZYywxEQgYTjJlYZISACyUijpcxwBEQg4biJVUYIiEAy0mgpMxyB%2fwff3hgjQMKO1AAAAABJRU5ErkJggg%3d%3d&color=%23d81e06&style=for-the-badge" alt="脚本猫 Beta">
		<br/>
		<img src="https://img.shields.io/chrome-web-store/v/dhdgffkkebhmkfjojejmpbldmpobfkfo.svg?label=Tampermonkey%20篡改猴&logo=tampermonkey&logoColor=white&color=brightgreen&style=for-the-badge" alt="TamperMonkey 篡改猴">
		<img src="https://img.shields.io/chrome-web-store/v/gcalenpjmijncebpfijmoaglllgpjagf.svg?label=Tampermonkey%20BETA%20篡改猴测试版&logo=tampermonkey&logoColor=red&color=red&style=for-the-badge" alt="Tampermonkey BETA 篡改猴测试版">
		<br>
		<img src="https://img.shields.io/badge/Google_Chrome-≥76.0-yellow.svg?style=for-the-badge" alt="Google Chrome-≥76.0">
		<img src="https://img.shields.io/badge/Microsoft_Edge-≥88.0-blue.svg?style=for-the-badge" alt="Microsoft Edge-≥88.0">
		<img src="https://img.shields.io/badge/支持平台-Windows_|_Mac_|_Linux_|_Android-blueviolet.svg?style=for-the-badge" alt="支持平台">
	</p>
</center>

## 说明

基于[【网盘直链下载助手】](https://www.baiduyun.wiki/install.html)修改

* 原作者:[油小猴](https://www.youxiaohu.com/)
* 原脚本 Github 仓库:[https://github.com/syhyz1990/baiduyun](https://github.com/syhyz1990/baiduyun)
* 本脚本开源至 Github:[https://github.com/hmjz100/LinkSwift](https://github.com/hmjz100/LinkSwift)
* 特别声明:已在遵守原脚本许可证的情况下对原脚本做出有意义的改进。

<center>
<img src="https://starchart.cc/hmjz100/LinkSwift.svg?variant=adaptive&amp;line=%23574ab8" alt="Starchart"><br/>Github 星标历史
</center>

#### 反馈

如果喜欢的话还请留个 [好评](https://scriptcat.org/zh-CN/script-show-page/1604/comment) 和 [星标](https://github.com/hmjz100/LinkSwift) 哦\~或者随便给脚本评个分也行的(>\_<),还可以来[看看我的其他脚本!](https://scriptcat.org/users/114812)

* 为确保高效处理反馈,如有 Bug 等问题请[前往 Github 发议题反馈](https://github.com/hmjz100/LinkSwift/issues),于本平台提交的反馈将不会被受理。

***

<center><p>这是给认真阅读完README文件的人的赞美</p></center>
<center><p>个人博客: <a target="_blank" href="https://hmjz100blog.rf.gd">https://hmjz100blog.rf.gd</a></p></center>


================================================
FILE: README.md
================================================
> [!IMPORTANT]
> 如果您是从 GreasyFork 找到这的,建议前往下方的 [安装](#安装) 选择一个合适的源覆盖安装,避免因脚本失效或 GF 黑产刷子导致无法及时更新。

![LinkSwift](https://socialify.git.ci/hmjz100/LinkSwift/image?description=1&descriptionEditable=%E4%B8%80%E4%B8%AA%E5%9F%BA%E4%BA%8E%20JavaScript%20%E7%9A%84%E7%BD%91%E7%9B%98%E6%96%87%E4%BB%B6%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80%E8%8E%B7%E5%8F%96%E5%B7%A5%E5%85%B7&language=1&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNMTAzLjYgMTA3LjRjMy41LTIuMiA4LjktNi4xIDEzLjgtMTIuNXM3LjMtMTIuNSA4LjUtMTYuNWMuNS0xLjcgMi4yLTcuNSAyLjItMTQuNyAwLTEwLjE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<hr>
<p align="center">
   搭配使用,效果更佳!👋扩展脚本
   <br/>
   <a href="https://github.com/hmjz100/123panYouthMember#安装">123 云盘会员青春版</a> | <a href="#安装">百度网盘会员青春版</a> | <a href="https://scriptcat.org/script-show-page/2470" target="_blank">阿里云盘会员青春版</a>
   <br/>
   ↓&nbsp;&nbsp;↓&nbsp;&nbsp;↓&nbsp;&nbsp;↓&nbsp;&nbsp;↓
</p>
<p align="center">
   <img alt="Github Stargazers" src="https://img.shields.io/github/stars/hmjz100/LinkSwift.svg?label=%e6%98%9f%e6%a0%87&logo=github&logoColor=white&labelColor=black&color=gold&style=for-the-badge&cacheSeconds=10">
   <img alt="Github Forks" src="https://img.shields.io/github/forks/hmjz100/LinkSwift?label=%e5%a4%8d%e5%88%bb&logo=github&logoColor=white&labelColor=black&color=grey&style=for-the-badge&cacheSeconds=10">
   <img alt="Github Licence" src="https://img.shields.io/github/license/hmjz100/LinkSwift?label=%e8%ae%b8%e5%8f%af&logo=github&logoColor=white&labelColor=black&color=grey&style=for-the-badge&cacheSeconds=10">
   <br/>
   <a href="https://trendshift.io/repositories/13630" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13630" alt="hmjz100%2FLinkSwift | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
   <br/>
   <img src="https://img.shields.io/chrome-web-store/v/gcalenpjmijncebpfijmoaglllgpjagf.svg?label=Tampermonkey%20BETA%20%E7%AF%A1%E6%94%B9%E7%8C%B4%E6%B5%8B%E8%AF%95%E7%89%88&logo=tampermonkey&logoColor=red&color=red&style=for-the-badge" alt="Tampermonkey BETA 篡改猴测试版">
   <img src="https://img.shields.io/chrome-web-store/v/dhdgffkkebhmkfjojejmpbldmpobfkfo.svg?label=Tampermonkey%20%E7%AF%A1%E6%94%B9%E7%8C%B4&logo=tampermonkey&logoColor=white&color=brightgreen&style=for-the-badge" alt="TamperMonkey 篡改猴">
   <br/>
   <img src="https://img.shields.io/badge/Google_Chrome-≥76.0-yellow.svg?style=for-the-badge" alt="Google Chrome-≥76.0">
   <img src="https://img.shields.io/badge/Microsoft_Edge-≥88.0-blue.svg?style=for-the-badge" alt="Microsoft Edge-≥88.0">
   <img src="https://img.shields.io/badge/支持平台-Windows_|_Mac_|_Linux_|_Android-blueviolet.svg?style=for-the-badge" alt="支持平台">
   <br/>
   <img alt="Starchart" src="https://starchart.cc/hmjz100/LinkSwift.svg?variant=adaptive&line=%23574ab8">
</p>

## 安装

根据需要选择合适的源,点击链接即可安装

### LinkSwift
直链获取、UI 美化、支持多种下载器

#### 正式版
- Github 国际: [hmjz100/LinkSwift/(改)网盘直链下载助手.user.js](https://github.com/hmjz100/LinkSwift/raw/main/(改)网盘直链下载助手.user.js)
- OpenUserJS 国际(更新不及时): [hmjz100/LinkSwift.user.js](https://openuserjs.org/install/hmjz100/LinkSwift.user.js)
- Gitee 国内: [hmjz100/LinkSwift/(改)网盘直链下载助手.user.js](https://gitee.com/hmjz100/LinkSwift/raw/main/(改)网盘直链下载助手.user.js)
- 脚本猫 国内: [hmjz100/1604/LinkSwift.user.js](https://scriptcat.org/scripts/code/1604/LinkSwift.user.js)

#### 金丝雀版
此版本可能不稳定,但有着最新的功能、修复等。

- Github 国际: [hmjz100/LinkSwift/(改)网盘直链下载助手.user.js](https://github.com/hmjz100/LinkSwift/raw/dev/(改)网盘直链下载助手.user.js)
- Gitee 国内: [hmjz100/LinkSwift/(改)网盘直链下载助手.user.js](https://gitee.com/hmjz100/LinkSwift/raw/dev/(改)网盘直链下载助手.user.js)

## 说明

> [!IMPORTANT]
> 本项目所获取的下载链接均基于各大网盘服务商公开的 API 接口获取。  
> 项目未以任何形式承诺、宣传或实现对网盘限速机制、功能的破解。
>
> 若在实际使用过程中获得较快的下载速度,通常系由于服务商接口策略、用户本地网络环境或服务商阶段性下发的带宽限制调整所致,  
> 请勿将其误解为本项目具备破解限速的能力或提供相应服务。

> [!IMPORTANT]
> 本项目始终遵循合规与克制的原则,坚持技术中立,不触及、不损害任何网盘服务商的核心利益,  
> 仅为协助无法或不便使用官方客户端的用户实现合法的文件下载需求。
>
> 任何第三方在推广、转载或介绍本项目过程中所作出的夸大、误导性宣传*,均不代表本项目立场。  
> 由此产生的一切后果与责任,与本项目无关,须由相关行为主体自行承担。  
> *(包括但不限于 “加速下载”“速度起飞”“限速破解” 等表述)

基于[【网盘直链下载助手】](https://www.baiduyun.wiki/install.html)修改
- 原作者: [油小猴](https://www.youxiaohou.com/)  
- 原仓库: [https://github.com/syhyz1990/baiduyun](https://github.com/syhyz1990/baiduyun)
- 本脚本发布至脚本猫: [https://scriptcat.org/script-show-page/1604](https://scriptcat.org/script-show-page/1604)
  - 还有 OpenUserJS: [https://openuserjs.org/scripts/hmjz100/LinkSwift](https://openuserjs.org/scripts/hmjz100/LinkSwift)

## 简介

支持 百度网盘/阿里云盘/中国移动云盘/天翼云盘/迅雷云盘/夸克网盘/UC网盘/123云盘 八大网盘,相比较原脚本,增加了更多功能~

#### 卑微的小标题

~~这个脚本只有一个人在修改\~~~ 如果喜欢的话还请留个 Star 哦\~   
- 为确保高效处理反馈,如有 Bug 等问题请在此平台[发布议题反馈](https://github.com/hmjz100/LinkSwift/issues),其余平台的反馈将不会被受理。

## 贡献者

感谢下列为本项目做过贡献的开发者!

<a href="https://github.com/hmjz100/LinkSwift/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=hmjz100/LinkSwift" />
</a>


## 版本号
v1.1.3(基于原版 v6.2.7)  
本脚本目前仅在 Github、Gitee、脚本猫脚本站 与 OpenUserJS 发布;  
如果您是在其他渠道获取到本脚本的,安装后所带来的问题开发者概不负责。

## 更新日志

| 版本号 | 创建日期 | 更新日志 |
| -------- | -------- | -------- |
| 1.1.3   | 2026年02月16日 | LinkSwift 开发者在此祝您新春快乐!<br/>爆竹声中一岁除,春风送暖入屠苏。LinkSwift 迎来功能更新:<br/>1、新增 - IDM 客户端设置;<br/>2、优化 - 链接缓存、浮动提示框;<br/>3、适配 - 百度网盘分享页。 |
| 1.1.2.1 | 2025年12月28日 | 1、新增 - API 下载的推送到 IDM 功能;<br/>(感谢 <a href="https://github.com/Night-stars-1" target="_blank">Night Stars</a> 的帮助)<br/>2、修复 - 复制 Aria2、cURL 命令行错误。 |
| 1.1.2   | 2025年12月26日 | 1、适配 - 123 云盘新策略;<br/>2、适配 - 夸克、UC 网盘分享页;<br/>3、新增 - 增强下载的多块多线程支持;<br/>4、优化 - 页面绿化的部分匹配规则;<br/>5、优化 - 增强下载进度条样式。 |
| 1.1.1.9 | 2025年09月13日 | 1、修复 - 123 云盘下载视频变为缩略图。 |
| 1.1.1.8 | 2025年09月11日 | 1、修复 - 适配新版 123 云盘分享页。 |
| 1.1.1.7 | 2025年08月02日 | 1、修复 - 缺失声明 (at)connect 导致的问题。 |
| 1.1.1.6 | 2025年07月28日 | 1、废弃 - 百度网盘 BDUSS Cookie 相关代码,转向使用更安全的 AccessToken;<br/>2、废弃 - 百度网盘分享页面下载相关代码;<br/>3、优化 - 下载窗口可在设置改变后动态修改界面。 |
| 1.1.1.5 | 2025年07月21日 | 1、增加 AB Download Manager 下载方式;<br/>2、支持从设置页面一键返回下载窗口,无需重复获取链接。 |
| 1.1.1.4 | 2025年07月19日 | 1、适配 123 云盘新版页面。 |
| 1.1.1.3 | 2025年06月19日 | 1、修复夸克网盘无法获取下载链接的 Bug;<br/>2、修复 API 下载无法复制全部链接。 |
| 1.1.1.2 | 2025年06月08日 | 1、修复无法删除第一项远程配置的 Bug。 |
| 1.1.1.1 | 2025年06月02日 | 1、修复推送到 Aria2 时推送成功但报错的 Bug。 |
| 1.1.1   | 2025年06月01日 | 六一儿童节快乐!萌萌哒更新~<br/>1、配置文件格式更新,支持添加、删除、切换多个服务配置;<br/>2、支持比特彗星推送下载,原 RPC 已并入 Aria2 下载;<br/>3、界面增加 Font Awesome 图标!更好看啦;<br/>4、优化脚本代码、界面,运行更轻快;<br/>5、修复上个版本遗存的问题。 |
| 1.1.0.1 | 2025年05月09日 | 1、修复查看 RPC 下载任务的 Bug。 |
| 1.1.0   | 2025年05月08日 | 1、支持 UC 网盘、123 云盘;<br/>2、改进了网盘主题的注入方式;<br/>3、聚合并重构了部分重复函数,对整体脚本逻辑进行了梳理和精简;<br/>4、将脚本执行阶段从 document-body 适配为 document-start。 |
| 1.0.9.7 | 2025年02月13日 | 1、修复移动云盘下载错误;<br/>2、优化代码,更好的错误识别;<br/>3、去除了油小猴云服务。 |
| 1.0.9.6 | 2024年10月28日 | 1、支持在百度网盘中选择文件夹下载;<br/>2、优化部分提示。 |
| 1.0.9.5 | 2024年10月14日 | 1、修复因代码逻辑错误而无法获取链接的 Bug。 |
| 1.0.9.4 | 2024年10月09日 | 1、修复因百度网盘 AccessToken 过期导致无法获取链接的 Bug。 |
| 1.0.9.3 | 2024年08月10日 | 1、若网盘不支持在分享中下载,将仅显示保存网盘按钮;<br/>2、优化下载界面,支持选择 Iframe 或 Blob 的方式来下载文件,增加按钮的提示文本;<br/>3、优化 CSS 样式,统一了 SweetAlert2 按钮样式,同时适配了 Dark Reader 插件,界面更协调;<br/>4、支持修改油小猴网站主题色;<br/>5、原有主题相关设置现已移动至助手美化页面中。 |
| 1.0.9.2 | 2024年08月04日 | 1、修复使用API下载时有可能会导致IDM无限弹窗的Bug。 |
| 1.0.9.1 | 2024年07月30日 | 1、修复在百度网盘旧版下脚本无法删除元素的Bug。 |
| 1.0.9   | 2024年07月29日 | 1、跟进官方V6.2.7,修复因无法进行百度授权而导致获取直链报错 9019 的 Bug。 |
| 1.0.8.9 | 2024年07月22日 | 1、跟进官方V6.2.3,优化保存到网盘提示,修复阿里云盘、移动云盘失效的问题;<br/>2、优化修改网盘主题的代码,减少对页面的破坏。 |
| 1.0.8.8 | 2024年05月09日 | 1、修复下载菜单字体过小的Bug。|
| 1.0.8.7 | 2024年05月06日 | 1、修复在阿里云盘分享页面下点击“未点亮”按钮时没有任何反应的Bug;<br>2、更新并优化网盘界面精简规则;<br/>3、支持更换 百度网盘、阿里云盘、迅雷云盘、夸克网盘、移动云盘 界面的主题颜色。 |
| 1.0.8.6 | 2024年04月08日 | 1、新增移动云盘会员中心页面,可在网盘中点击“会员中心”按钮查看(但无法使用第三方支付)。 |
| 1.0.8.5 | 2024年04月07日 | 1、跟进官方V6.1.6,修复迅雷网盘分享页面无法选中文件,修复移动云盘无法判断页面。 |
| 1.0.8.4 | 2024年04月07日 | 1、修复因重复绑定按钮而导致命令重复执行的Bug;<br>2、优化调试信息界面排版;<br>3、移除对百度网盘手机网页版的支持。 |
| 1.0.8.3 | 2024年02月11日 | 1、适配阿里云盘新域名alipan.com。 |
| 1.0.8.2 | 2023年11月29日 | 1、更换新图标。 |
| 1.0.8.1 | 2023年11月25日 | 1、修复因重复绑定按钮而导致RPC下载会发送多条下载请求的Bug;<br>2、选择不使用油小猴服务器时,“用ghproxy连接Github仓库”更换为“用jsdelivr连接Github仓库”;<br>3、跟进官方V6.1.4版本,修复移动网盘无法获取链接,支持阿里云盘新域名alipan.com。 |
| 1.0.8   | 2023年11月05日 | 1、修复迅雷网盘勾选文件后仍提示未勾选。 |
| 1.0.7.9 | 2023年11月05日 | 1、更新精简网盘元素匹配规则,防止因通知横条而导致不能点到“API下载”以下的按钮。 |
| 1.0.7.8 | 2023年09月10日 | 1、跟进官方V6.1.2,加入V2接口;<br>2、修复百度网盘下载时因为获取不到accessToken而一直转圈。 |
| 1.0.7.7 | 2023年09月03日 | 1、修复百度网盘的按钮会因为主题不同而被改变颜色的Bug;<br>2、更新夸克网盘按钮与界面。 |
| 1.0.7.6 | 2023年09月01日 | 1、修复“注入”功能;<br>2、黑暗模式支持随设置热切换。 |
| 1.0.7.5 | 2023年08月31日 | 1、修复阿里云盘下载逻辑;<br>2、精简代码;<br>3、支持深色模式;<br>4、修改部分提示文本;<br>5、修改部分CSS;<br>6、设置可测试RPC连接。 |
| 1.0.7.4 | 2023年08月27日 | 1、优化下载逻辑;<br>2、修复阿里云盘无法使用API下载。 |
| 1.0.7.3 | 2023年08月24日 | 1、如果出现网络请求错误时支持自动重新请求;<br>2、可选择是否使用油小猴服务器。 |
| 1.0.7.2 | 2023年07月29日 | 1、修复使用RPC下载时会重复发送链接的Bug。 |
| 1.0.7.1 | 2023年07月27日 | 1、\[实验功能,不影响正常使用\]支持百度网盘手机网页版,勾选文件后可在顶栏找到“下载助手”按钮。 |
| 1.0.7   | 2023年07月26日 | 1、重构夸克网盘、阿里云盘按钮。 |
| 1.0.6.9 | 2023年07月25日 | 1、下载窗口加入关闭按钮。 |
| 1.0.6.8 | 2023年07月24日 | 1、修复夸克网盘按钮错位。 |
| 1.0.6.7 | 2023年07月24日 | 1、将百度网盘界面修改为主题色,可在设置选择是否修改;<br>2、增加主题色名称,更改部分内容颜色;<br>3、移动云盘API下载支持批量复制;<br>4、优化控制台输出结果;<br>5、百度网盘API下载不使用IDM时可以显示剩余时间;<br>6、“取消点亮按钮”按钮的位置现已移动到设置页面。<br>7、homo特有的彩蛋又回来力(喜)。 |
| 1.0.6.6 | 2023年06月07日 | 1、修复暗号错误。 |
| 1.0.6.5 | 2023年06月04日 | 1、修复即使输入正确暗号也不能成功点亮按钮的服务器错误。 |
| 1.0.6.4 | 2023年06月02日 | 1、跟进官方V6.1.1版本,修复阿里云盘获取下载链接时的问题。 |
| 1.0.6.3 | 2023年05月19日 | 1、照顾小屏幕用户,将始终显示复制全部链接的按钮;<br>2、增加取消下载时的动画。 |
| 1.0.6.2 | 2023年05月08日 | 1、修复部分界面错位,实现CSS内置;<br>2、百度网盘界面将变得更加简洁。 |
| 1.0.6.1 | 2023年05月06日 | 1、新增百度云盘API下载支持复制链接;<br>2、为了照顾手机浏览器用户,增大项目之间间隙,新增隐藏IDM提示选项,可在助手设置中启用;<br>3、修改CSS,界面会出现更多的主题色;<br>4、支持在油小猴官网查看暗号;<br>5、修复部分语法错误。 |
| 1.0.6   | 2023年04月15日 | 1、修复了打开阿里云盘分享连接时因下载移动端广告导致只能点击API下载;<br>2、跟进官方6.0.4版本,修复夸克网盘获取下载链接失效、支持移动云盘。 |
| 1.0.5.5 | 2023年04月01日 | 1、感谢[Night Stars](https://github.com/Night-stars-1)的帮助,修复因为原作者服务器导致的初始化暗号识别错误;<br>2、修改一些文本以及提供给服务器的信息。 |
| 1.0.5.4 | 2023年03月13日 | 1、小修小改css,让主题色出现在更多地方;<br>2、修改下载链接获取失败的提示;<br>3、增加更多的主题色,可在助手设置查看;<br>4、homo彩蛋被删去力(悲)。 |
| 1.0.5.3 | 2023年03月10日 | 1、阿里云盘可以摸到下载菜单了。 |
| 1.0.5.2 | 2022年10月04日 | 1、增加脚本信息菜单;<br>2、优化阿里云盘显示svg图片;<br>3、修改弹窗按钮颜色。 |
| 1.0.5.1 | 2022年09月30日 | 1、修复在切换按钮主题后夸克网盘不能正常显示按钮。 |
| 1.0.5   | 2022年09月21日 | 1、跟进官方5.9.4版,修复文件名识别。 |
| 1.0.4   | 2022年08月13日 | 1、修复了原作者留下的夸克网盘切换文件夹就多一个“下载助手”按钮的大BUG;<br>2、在下载菜单增加“助手设置”“更新日志”按钮;<br>3、修改阿里云盘和夸克网盘下载助手按钮样式;<br>4、增加“取消点亮按钮”油猴菜单;<br>5、修改部分css,使其与选择的主题更贴切。 |
| 1.0.3   | 2022年08月11日 | 1、增加homo特有的彩蛋 |
| 1.0.2   | 2022年08月10日 | 1、修改并加宽界面,调整部分css,使Sweetalert2界面更美观,更与原版相近;<br>2、修改部分提示文字,使文字更容易复制。 |
| 1.0.1   | 2022年08月10日 | 1、去除更新提示;<br>2、更新Sweetalert2至11版本。 |
| 1.0.0   | 2022年08月10日 | (脚本发布)<br>1、增加“注入”功能(bushi);<br>2、去除广告。 |

---

<p align="center">这是给认真阅读完README文件的人的赞美</p>
<p align="center">个人博客: <a target="_blank" href="https://hmjz100blog.rf.gd">https://hmjz100blog.rf.gd</a></p>

================================================
FILE: config/ali.json
================================================
{
	"code": 200,
	"tips": "这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用",
	"pcs": {
		"0": "https://api.aliyundrive.com/v2/file/get_share_link_download_url",
		"1": "https://api.aliyundrive.com/v2/file/get_download_url"
	},
	"img": "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png",
	"btn": {
		"home": ".actions--M9Np-",
		"share": ".right--x0Z1g"
	},
	"d": "https://d.youxiaohou.com",
	"dom": {
		"list": "[class^=\"node-list-table-view--\"]",
		"grid": "[class^=\"node-list-grid-view--\"]",
		"switch": "[class^=\"switch-wrapper--\"]"
	},
	"name": "网盘直链下载助手",
	"init": {
		"0": "请输入初始化暗号",
		"1": "请输入暗号点亮按钮,扫二维码免费获取",
		"2": "暗号正确!【下载助手】点亮成功!",
		"3": "暗号不正确!",
		"4": "试试用微信扫码回复👉暗号👈来点亮按钮吧!",
		"5": "请先安装网盘万能助手,安装后请刷新本页!!!"
	},
	"api": {
		"0": "API下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,<a href=\"https://www.youxiaohou.com/zh-cn/ndm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">NDM</a> 以及浏览器自带下载)</span>",
		"1": "点击链接直接下载,例如:<a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,若未唤起IDM,请 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">点击这里</a> 配置文件类型。"
	},
	"aria": {
		"0": "Aria下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a> 及 <a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell命令行</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到支持 aria2c 协议的下载器中,例如:<a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a>,<a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell</a>。"
	},
	"rpc": {
		"0": "RPC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Aria2 Tools</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">AriaNgGUI</a>)</span>",
		"1": "点击按钮发送链接至本地或远程 RPC 服务,例如:<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,RPC 参数含义见<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">此处</a>。"
	},
	"curl": {
		"0": "cURL下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>,支持断点续传。"
	},
	"bc": {
		"0": "BC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a> 下载器中。"
	},
	"num": "865746",
	"license": "AGPL3",
	"version": "6.2.3",
	"footer": "<div style=\"text-align: center;\">感谢您使用本脚本,给我们一个<a href=\"https://github.com/hmjz100/Online-disk-direct-link-download-assistant\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Star</a>吧~</div>"
}

================================================
FILE: config/config.json
================================================
{
	"code": 200,
	"tips": "这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用",
	"pcs": {
		"0": "https://pan.baidu.com/rest/2.0/xpan/multimedia?method=filemetas&dlink=1",
		"1": "https://pan.baidu.com/api/sharedownload?channel=chunlei&clienttype=12&web=1&app_id=250528",
		"2": "https://pan.baidu.com/share/tplconfig?fields=sign,timestamp&channel=chunlei&web=1&app_id=250528&clienttype=0",
		"3": "https://openapi.baidu.com/oauth/2.0/authorize?client_id=IlLqBbU3GjQ0t46TRwFateTprHWl39zF&response_type=token&redirect_uri=oob&confirm_login=0&scope=basic,netdisk"
	},
	"img": "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png",
	"btn": {
		"home": ".tcuLAu",
		"main": ".wp-s-agile-tool-bar__header",
		"share": ".module-share-top-bar .x-button-box"
	},
	"d": "https://d.youxiaohou.com",
	"idm": "https://www.youxiaohou.com/zh-cn/idm.html",
	"name": "网盘直链下载助手",
	"init": {
		"0": "请输入初始化暗号",
		"1": "请输入暗号点亮按钮,扫二维码免费获取",
		"2": "暗号正确!【下载助手】点亮成功!",
		"3": "暗号不正确!",
		"4": "试试用微信扫码回复👉暗号👈来点亮按钮吧!",
		"5": "请先安装网盘万能助手,安装后请刷新本页!!!"
	},
	"api": {
		"0": "API下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,<a href=\"https://www.youxiaohou.com/zh-cn/ndm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">NDM</a> 以及浏览器自带下载)</span>",
		"1": "点击链接直接下载,例如:<a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,若未唤起IDM,请 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">点击这里</a> 配置文件类型,建议配合超级会员使用。"
	},
	"aria": {
		"0": "Aria下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a> 及 <a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell命令行</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到支持 aria2c 协议的下载器中,例如:<a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a>,<a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell</a>,建议配合超级会员使用。"
	},
	"rpc": {
		"0": "RPC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Aria2 Tools</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">AriaNgGUI</a>)</span>",
		"1": "点击按钮发送链接至本地或远程 RPC 服务,例如:<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,RPC 参数含义见<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">此处</a>,建议配合超级会员使用。"
	},
	"curl": {
		"0": "cURL下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>,支持断点续传,建议配合超级会员使用。"
	},
	"bc": {
		"0": "BC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a> 下载器中,建议配合超级会员使用。"
	},
	"assistant": "https://www.crxsoso.com/addon/detail/mphijdmblaalbakceeadippfkbgfgaaa",
	"num": "865746",
	"license": "AGPL3",
	"version": "6.2.3",
	"ua": "pan.baidu.com",
	"footer": "<div style=\"text-align: center;\">感谢您使用本脚本,给我们一个<a href=\"https://github.com/hmjz100/Online-disk-direct-link-download-assistant\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Star</a>吧~</div>"
}

================================================
FILE: config/quark.json
================================================
{
	"code": 200,
	"tips": "这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用",
	"pcs": {
		"0": "https://drive.quark.cn/1/clouddrive/file/download?pr=ucpro&fr=pc"
	},
	"img": "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png",
	"btn": {
		"home": ".btn-operate .btn-main",
		"share": ".file-info-share-buttom"
	},
	"d": "https://d.youxiaohou.com",
	"name": "网盘直链下载助手",
	"init": {
		"0": "请输入初始化暗号",
		"1": "请输入暗号点亮按钮,扫二维码免费获取",
		"2": "暗号正确!【下载助手】点亮成功!",
		"3": "暗号不正确!",
		"4": "试试用微信扫码回复👉暗号👈来点亮按钮吧!",
		"5": "请先安装网盘万能助手,安装后请刷新本页!!!"
	},
	"api": {
		"0": "API下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,<a href=\"https://www.youxiaohou.com/zh-cn/ndm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">NDM</a> 以及浏览器自带下载)</span>",
		"1": "点击链接直接下载,例如:<a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,若未唤起IDM,请 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">点击这里</a> 配置文件类型。"
	},
	"aria": {
		"0": "Aria下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a> 及 <a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell命令行</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到支持 aria2c 协议的下载器中,例如:<a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a>,<a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell</a>。"
	},
	"rpc": {
		"0": "RPC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Aria2 Tools</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">AriaNgGUI</a>)</span>",
		"1": "点击按钮发送链接至本地或远程 RPC 服务,例如:<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,RPC 参数含义见<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">此处</a>。"
	},
	"curl": {
		"0": "cURL下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>,支持断点续传。"
	},
	"bc": {
		"0": "BC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a> 下载器中。"
	},
	"num": "865746",
	"license": "AGPL3",
	"version": "6.2.3",
	"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch",
	"footer": "<div style=\"text-align: center;\">感谢您使用本脚本,给我们一个<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Star</a>吧~</div>"
}

================================================
FILE: config/tianyi.json
================================================
{
	"code": 200,
	"tips": "这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用",
	"pcs": {
		"0": "https://cloud.189.cn/api/open/file/getFileDownloadUrl.action",
		"1": "https://api.cloud.189.cn/open/oauth2/ssoH5.action",
		"2": "https://api.cloud.189.cn/open/file/getFileDownloadUrl.action"
	},
	"img": "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png",
	"btn": {
		"home": ".nav-opea",
		"share": ".nav-opea"
	},
	"d": "https://d.youxiaohou.com",
	"name": "网盘直链下载助手",
	"init": {
		"0": "请输入初始化暗号",
		"1": "请输入暗号点亮按钮,扫二维码免费获取",
		"2": "暗号正确!【下载助手】点亮成功!",
		"3": "暗号不正确!",
		"4": "试试用微信扫码回复👉暗号👈来点亮按钮吧!",
		"5": "请先安装网盘万能助手,安装后请刷新本页!!!"
	},
	"api": {
		"0": "API下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,<a href=\"https://www.youxiaohou.com/zh-cn/ndm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">NDM</a> 以及浏览器自带下载)</span>",
		"1": "点击链接直接下载,例如:<a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,若未唤起IDM,请 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">点击这里</a> 配置文件类型。"
	},
	"aria": {
		"0": "Aria下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a> 及 <a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell命令行</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到支持 aria2c 协议的下载器中,例如:<a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a>,<a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell</a>。"
	},
	"rpc": {
		"0": "RPC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Aria2 Tools</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">AriaNgGUI</a>)</span>",
		"1": "点击按钮发送链接至本地或远程 RPC 服务,例如:<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,RPC 参数含义见<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">此处</a>。"
	},
	"curl": {
		"0": "cURL下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>,支持断点续传。"
	},
	"bc": {
		"0": "BC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a> 下载器中。"
	},
	"num": "865746",
	"license": "AGPL3",
	"version": "6.2.3",
	"footer": "<div style=\"text-align: center;\">感谢您使用本脚本,给我们一个<a href=\"https://github.com/hmjz100/Online-disk-direct-link-download-assistant\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Star</a>吧~</div>"
}

================================================
FILE: config/xunlei.json
================================================
{
	"code": 200,
	"tips": "这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用",
	"pcs": {
		"0": "https://api-pan.xunlei.com/drive/v1/files/"
	},
	"img": "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png",
	"btn": {
		"home": ".FileMenu__menu--XBFEH",
		"share": ".Share__batchActionBox--VKPyR"
	},
	"d": "https://d.youxiaohou.com",
	"name": "网盘直链下载助手",
	"init": {
		"0": "请输入初始化暗号",
		"1": "请输入暗号点亮按钮,扫二维码免费获取",
		"2": "暗号正确!【下载助手】点亮成功!",
		"3": "暗号不正确!",
		"4": "试试用微信扫码回复👉暗号👈来点亮按钮吧!",
		"5": "请先安装网盘万能助手,安装后请刷新本页!!!"
	},
	"api": {
		"0": "API下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,<a href=\"https://www.youxiaohou.com/zh-cn/ndm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">NDM</a> 以及浏览器自带下载)</span>",
		"1": "点击链接直接下载,例如:<a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,若未唤起IDM,请 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">点击这里</a> 配置文件类型,IDM 不显示文件名时,请手动复制填写"
	},
	"aria": {
		"0": "Aria下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a> 及 <a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell命令行</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到支持 aria2c 协议的下载器中,例如:<a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a>,<a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell</a>。"
	},
	"rpc": {
		"0": "RPC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Aria2 Tools</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">AriaNgGUI</a>)</span>",
		"1": "点击按钮发送链接至本地或远程 RPC 服务,例如:<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,RPC 参数含义见<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">此处</a>。"
	},
	"curl": {
		"0": "cURL下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>,支持断点续传。"
	},
	"bc": {
		"0": "BC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a> 下载器中,镜像地址可用于加速下载,使用方法<a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">见此处</a>。"
	},
	"mirror": [
		"vod0007-h05-vip-lixian.xunlei.com",
		"vod0008-h05-vip-lixian.xunlei.com",
		"vod0009-h05-vip-lixian.xunlei.com",
		"vod0010-h05-vip-lixian.xunlei.com",
		"vod0011-h05-vip-lixian.xunlei.com",
		"vod0012-h05-vip-lixian.xunlei.com",
		"vod0013-h05-vip-lixian.xunlei.com",
		"vod0014-h05-vip-lixian.xunlei.com",
		"vod0067-aliyun08-vip-lixian.xunlei.com",
		"vod0254-aliyun08-vip-lixian.xunlei.com",
		"vod0255-aliyun08-vip-lixian.xunlei.com",
		"vod0256-aliyun08-vip-lixian.xunlei.com",
		"vod0257-aliyun08-vip-lixian.xunlei.com",
		"vod0258-aliyun08-vip-lixian.xunlei.com",
		"vod0259-aliyun08-vip-lixian.xunlei.com",
		"vod0260-aliyun08-vip-lixian.xunlei.com",
		"vod0261-aliyun08-vip-lixian.xunlei.com",
		"vod0262-aliyun08-vip-lixian.xunlei.com",
		"vod0263-aliyun08-vip-lixian.xunlei.com",
		"vod0264-aliyun08-vip-lixian.xunlei.com",
		"vod0265-aliyun08-vip-lixian.xunlei.com",
		"vod0266-aliyun08-vip-lixian.xunlei.com",
		"vod0267-aliyun08-vip-lixian.xunlei.com",
		"vod0554-aliyun06-vip-lixian.xunlei.com",
		"vod0555-aliyun06-vip-lixian.xunlei.com",
		"vod0556-aliyun06-vip-lixian.xunlei.com",
		"vod0680-aliyun08-vip-lixian.xunlei.com",
		"vod0681-aliyun08-vip-lixian.xunlei.com",
		"vod0682-aliyun08-vip-lixian.xunlei.com",
		"vod0683-aliyun08-vip-lixian.xunlei.com",
		"vod0684-aliyun08-vip-lixian.xunlei.com",
		"vod0685-aliyun08-vip-lixian.xunlei.com",
		"vod0686-aliyun08-vip-lixian.xunlei.com",
		"vod0687-aliyun08-vip-lixian.xunlei.com",
		"vod0688-aliyun08-vip-lixian.xunlei.com",
		"vod0689-aliyun08-vip-lixian.xunlei.com",
		"vod0690-aliyun08-vip-lixian.xunlei.com",
		"vod0724-aliyun08-vip-lixian.xunlei.com",
		"vod0725-aliyun08-vip-lixian.xunlei.com",
		"vod0726-aliyun08-vip-lixian.xunlei.com",
		"vod0727-aliyun08-vip-lixian.xunlei.com",
		"vod0728-aliyun08-vip-lixian.xunlei.com",
		"vod0075.aliyun06.vip.lixian.xunlei.com",
		"vod0076.aliyun06.vip.lixian.xunlei.com",
		"vod0077.aliyun06.vip.lixian.xunlei.com",
		"vod0779-aliyun04-vip-lixian.xunlei.com",
		"vod0078.aliyun06.vip.lixian.xunlei.com",
		"vod0780-aliyun04-vip-lixian.xunlei.com",
		"vod0781-aliyun04-vip-lixian.xunlei.com",
		"vod0079.aliyun06.vip.lixian.xunlei.com",
		"vod0080.aliyun06.vip.lixian.xunlei.com",
		"vod0117.aliyun04.vip.lixian.xunlei.com",
		"vod0118.aliyun04.vip.lixian.xunlei.com",
		"vod0119.aliyun04.vip.lixian.xunlei.com",
		"vod1284-aliyun06-vip-lixian.xunlei.com",
		"vod1285-aliyun06-vip-lixian.xunlei.com",
		"vod1363-aliyun06-vip-lixian.xunlei.com",
		"vod1371-aliyun06-vip-lixian.xunlei.com",
		"vod1372-aliyun06-vip-lixian.xunlei.com",
		"vod1426-aliyun06-vip-lixian.xunlei.com",
		"vod1427-aliyun06-vip-lixian.xunlei.com",
		"vod1428-aliyun06-vip-lixian.xunlei.com",
		"vod1429-aliyun06-vip-lixian.xunlei.com",
		"vod1442-aliyun06-vip-lixian.xunlei.com",
		"vod1443-aliyun06-vip-lixian.xunlei.com",
		"vod1444-aliyun06-vip-lixian.xunlei.com",
		"vod1445-aliyun06-vip-lixian.xunlei.com",
		"vod1446-aliyun06-vip-lixian.xunlei.com",
		"vod1447-aliyun06-vip-lixian.xunlei.com",
		"vod1469-aliyun06-vip-lixian.xunlei.com",
		"vod1470-aliyun06-vip-lixian.xunlei.com",
		"vod1471-aliyun06-vip-lixian.xunlei.com",
		"vod1489-aliyun06-vip-lixian.xunlei.com",
		"vod1490-aliyun06-vip-lixian.xunlei.com",
		"vod1491-aliyun06-vip-lixian.xunlei.com",
		"vod1492-aliyun06-vip-lixian.xunlei.com",
		"vod1493-aliyun06-vip-lixian.xunlei.com",
		"vod0215.aliyun06.vip.lixian.xunlei.com",
		"vod0216.aliyun06.vip.lixian.xunlei.com",
		"vod0217.aliyun06.vip.lixian.xunlei.com",
		"vod0218.aliyun06.vip.lixian.xunlei.com",
		"vod0219.aliyun06.vip.lixian.xunlei.com",
		"vod0220.aliyun06.vip.lixian.xunlei.com",
		"vod0241.aliyun08.vip.lixian.xunlei.com",
		"vod0244.aliyun08.vip.lixian.xunlei.com",
		"vod0251.aliyun08.vip.lixian.xunlei.com",
		"vod0252.aliyun08.vip.lixian.xunlei.com",
		"vod0253.aliyun08.vip.lixian.xunlei.com",
		"vod0254.aliyun08.vip.lixian.xunlei.com",
		"vod0255.aliyun08.vip.lixian.xunlei.com",
		"vod0256.aliyun08.vip.lixian.xunlei.com",
		"vod0257.aliyun08.vip.lixian.xunlei.com",
		"vod0260.aliyun08.vip.lixian.xunlei.com",
		"vod0261.aliyun08.vip.lixian.xunlei.com",
		"vod0262.aliyun08.vip.lixian.xunlei.com",
		"vod0263.aliyun08.vip.lixian.xunlei.com",
		"vod0264.aliyun08.vip.lixian.xunlei.com",
		"vod0265.aliyun08.vip.lixian.xunlei.com",
		"vod0266.aliyun08.vip.lixian.xunlei.com",
		"vod0267.aliyun08.vip.lixian.xunlei.com",
		"vod3379-aliyun04-vip-lixian.xunlei.com",
		"vod3380-aliyun04-vip-lixian.xunlei.com",
		"vod3429-aliyun04-vip-lixian.xunlei.com",
		"vod3458-aliyun04-vip-lixian.xunlei.com",
		"vod3459-aliyun04-vip-lixian.xunlei.com",
		"vod3496-aliyun04-vip-lixian.xunlei.com",
		"vod3497-aliyun04-vip-lixian.xunlei.com",
		"vod3498-aliyun04-vip-lixian.xunlei.com",
		"vod3499-aliyun04-vip-lixian.xunlei.com",
		"vod3500-aliyun04-vip-lixian.xunlei.com",
		"vod3501-aliyun04-vip-lixian.xunlei.com",
		"vod3522-aliyun04-vip-lixian.xunlei.com",
		"vod3523-aliyun04-vip-lixian.xunlei.com",
		"vod3533-aliyun04-vip-lixian.xunlei.com",
		"vod3534-aliyun04-vip-lixian.xunlei.com",
		"vod3535-aliyun04-vip-lixian.xunlei.com",
		"vod3536-aliyun04-vip-lixian.xunlei.com",
		"vod3549-aliyun04-vip-lixian.xunlei.com",
		"vod3550-aliyun04-vip-lixian.xunlei.com",
		"vod3551-aliyun04-vip-lixian.xunlei.com",
		"vod3552-aliyun04-vip-lixian.xunlei.com",
		"vod3553-aliyun04-vip-lixian.xunlei.com",
		"vod3554-aliyun04-vip-lixian.xunlei.com",
		"vod3555-aliyun04-vip-lixian.xunlei.com",
		"vod0551.aliyun06.vip.lixian.xunlei.com",
		"vod0552.aliyun06.vip.lixian.xunlei.com",
		"vod0553.aliyun06.vip.lixian.xunlei.com",
		"vod0554.aliyun06.vip.lixian.xunlei.com",
		"vod0555.aliyun06.vip.lixian.xunlei.com",
		"vod0556.aliyun06.vip.lixian.xunlei.com",
		"vod0686.aliyun08.vip.lixian.xunlei.com",
		"vod0687.aliyun08.vip.lixian.xunlei.com",
		"vod0688.aliyun08.vip.lixian.xunlei.com",
		"vod0689.aliyun08.vip.lixian.xunlei.com",
		"vod0724.aliyun08.vip.lixian.xunlei.com",
		"vod0725.aliyun08.vip.lixian.xunlei.com",
		"vod0726.aliyun08.vip.lixian.xunlei.com",
		"vod0727.aliyun08.vip.lixian.xunlei.com",
		"vod0728.aliyun08.vip.lixian.xunlei.com",
		"vod0759.aliyun04.vip.lixian.xunlei.com",
		"vod0760.aliyun04.vip.lixian.xunlei.com",
		"vod0769.aliyun04.vip.lixian.xunlei.com",
		"vod0770.aliyun04.vip.lixian.xunlei.com",
		"vod0771.aliyun04.vip.lixian.xunlei.com",
		"vod0772.aliyun04.vip.lixian.xunlei.com",
		"vod0773.aliyun04.vip.lixian.xunlei.com",
		"vod0774.aliyun04.vip.lixian.xunlei.com",
		"vod0775.aliyun04.vip.lixian.xunlei.com",
		"vod0776.aliyun04.vip.lixian.xunlei.com",
		"vod0777.aliyun04.vip.lixian.xunlei.com",
		"vod0778.aliyun04.vip.lixian.xunlei.com",
		"vod0779.aliyun04.vip.lixian.xunlei.com",
		"vod0780.aliyun04.vip.lixian.xunlei.com",
		"vod0781.aliyun04.vip.lixian.xunlei.com",
		"vod3522.aliyun04.vip.lixian.xunlei.com",
		"vod3523.aliyun04.vip.lixian.xunlei.com",
		"vod3533.aliyun04.vip.lixian.xunlei.com",
		"vod3535.aliyun04.vip.lixian.xunlei.com",
		"vod3550.aliyun04.vip.lixian.xunlei.com",
		"vod3551.aliyun04.vip.lixian.xunlei.com",
		"vod3552.aliyun04.vip.lixian.xunlei.com",
		"vod3553.aliyun04.vip.lixian.xunlei.com",
		"vod3554.aliyun04.vip.lixian.xunlei.com",
		"vod3555.aliyun04.vip.lixian.xunlei.com"
	],
	"num": "865746",
	"license": "AGPL3",
	"version": "6.2.3",
	"footer": "<div style=\"text-align: center;\">感谢您使用本脚本,给我们一个<a href=\"https://github.com/hmjz100/Online-disk-direct-link-download-assistant\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Star</a>吧~</div>"
}

================================================
FILE: config/yidong.json
================================================
{
	"code": 200,
	"tips": "这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用",
	"pcs": {
		"0": "https://yun.139.com/orchestration/personalCloud/uploadAndDownload/v1.0/downloadRequest",
		"1": "https://caiyun.139.com/stapi/outlink/content/download"
	},
	"img": "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png",
	"btn": {
		"home": ".top_button",
		"share": ".top-btns"
	},
	"d": "https://d.youxiaohou.com",
	"name": "网盘直链下载助手",
	"init": {
		"0": "请输入初始化暗号",
		"1": "请输入暗号点亮按钮,扫二维码免费获取",
		"2": "暗号正确!【下载助手】点亮成功!",
		"3": "暗号不正确!",
		"4": "试试用微信扫码回复👉暗号👈来点亮按钮吧!",
		"5": "请先安装网盘万能助手,安装后请刷新本页!!!"
	},
	"api": {
		"0": "API下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,<a href=\"https://www.youxiaohou.com/zh-cn/ndm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">NDM</a> 以及浏览器自带下载)</span>",
		"1": "点击链接直接下载,例如:<a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">IDM</a>,若未唤起IDM,请 <a href=\"https://www.youxiaohou.com/zh-cn/idm.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">点击这里</a> 配置文件类型。"
	},
	"aria": {
		"0": "Aria下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a> 及 <a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell命令行</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到支持 aria2c 协议的下载器中,例如:<a href=\"https://www.youxiaohou.com/zh-cn/xdown.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">XDown</a>,<a href=\"https://www.youxiaohou.com/zh-cn/linux.html#linux-shell\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Linux Shell</a>。"
	},
	"rpc": {
		"0": "RPC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Aria2 Tools</a>,<a href=\"https://www.youxiaohou.com/download.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">AriaNgGUI</a>)</span>",
		"1": "点击按钮发送链接至本地或远程 RPC 服务,例如:<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Motrix</a>,RPC 参数含义见<a href=\"https://www.youxiaohou.com/zh-cn/motrix.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">此处</a>。"
	},
	"curl": {
		"0": "cURL下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/curl.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Windows,Linux,MacOS 终端</a>,支持断点续传。"
	},
	"bc": {
		"0": "BC下载<span style=\"font-size:14px;font-weight: 400;opacity: .8;\">(适用于 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a>)</span>",
		"1": "点击链接复制地址到剪切板,粘贴到 <a href=\"https://www.youxiaohou.com/zh-cn/bitcomet.html\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">比特彗星</a> 下载器中。"
	},
	"num": "865746",
	"license": "AGPL3",
	"version": "6.2.3",
	"footer": "<div style=\"text-align: center;\">感谢您使用本脚本,给我们一个<a href=\"https://github.com/hmjz100/Online-disk-direct-link-download-assistant\" target=\"_blank\" class=\"pl-a\" data-no-instant=\"1\">Star</a>吧~</div>"
}

================================================
FILE: (改)百度网盘会员青春版.user.js
================================================
// ==UserScript==
// @name        (改)百度网盘会员青春版
// @author      Hmjz100、Gwen
// @namespace   github.com/hmjz100
// @version     1.2.6.3.1
// @description 《也许同类型中最好用?》系列、LinkSwift 官方扩展 - 显示百度网盘身份信息为会员,支持使用视频倍速、生成字幕、下载AI字幕、关闭AI聊天、修改头像、修改用户名等功能,自定义程度超高!需要修改头部代码来配置显示内容(非常简单!)
// @icon        data:image/png;base64,iVBORw0KGgoA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zdKuFpdC/jhucEJe97Jn7ob/6IohDPpDrdVE6EdH5zM+EoQP7Z/cEWP6eHhI08aGSK5Ldvufn3gXB1ZX+mM7pGovvLnn3pcKoYYmFKHVOCfSQ9BhgKmjiw69MGJ1cuDgnTRFVEDuxnEs6H5SX4YXbJ19NwM4ugB6UHgVMBU16qOA2AiTv/lSWdhDiIM0/jMm5PQVmpl5fiLw9C5ZKp2vpjghKySnAlW9QkPnrt39GmvxTDChdmhFgX0He3AL4L0iPsHRbgv/yehbpifP/9s13nliyAD94QFyAFCzEsjlF8P8s9G8uyOaBXumVXumVXrmw/AdT224dpRDt7wAAAABJRU5ErkJggg==
// @license     MIT
// @match       *://pan.baidu.com/*
// @match       *://yun.baidu.com/*
// @run-at      document-start
// @downloadURL https://github.com/hmjz100/BaiduNetDiskYouthMember/raw/main/%EF%BC%88%E6%94%B9%EF%BC%89%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E4%BC%9A%E5%91%98%E9%9D%92%E6%98%A5%E7%89%88.user.js
// @updateURL   https://github.com/hmjz100/BaiduNetDiskYouthMember/raw/main/%EF%BC%88%E6%94%B9%EF%BC%89%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E4%BC%9A%E5%91%98%E9%9D%92%E6%98%A5%E7%89%88.user.js
// ==/UserScript==

// (改)百度网盘会员青春版 迁移到新仓库啦!
// 请前往新仓库 https://github.com/hmjz100/BaiduNetDiskYouthMember
// 或者打开 https://github.com/hmjz100/BaiduNetDiskYouthMember/raw/main/%EF%BC%88%E6%94%B9%EF%BC%89%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E4%BC%9A%E5%91%98%E9%9D%92%E6%98%A5%E7%89%88.user.js
// 安装新版脚本~
// 请尽快迁移,hmjz100/LinkSwift 存储的 "(改)百度网盘会员青春版" 文件将在不久后删除!

(function () {
	'use strict';
	// (改)百度网盘会员青春版 迁移到新仓库啦!
	// 请前往新仓库 https://github.com/hmjz100/BaiduNetDiskYouthMember
	// 或者打开 https://github.com/hmjz100/BaiduNetDiskYouthMember/raw/main/%EF%BC%88%E6%94%B9%EF%BC%89%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E4%BC%9A%E5%91%98%E9%9D%92%E6%98%A5%E7%89%88.user.js
	// 安装新版脚本~
	// 请尽快迁移,hmjz100/LinkSwift 存储的 "(改)百度网盘会员青春版" 文件将在不久后删除!
	alert(`(改)百度网盘会员青春版 迁移到新仓库啦!\n\n请前往新仓库: https://github.com/hmjz100/BaiduNetDiskYouthMember\n或者点击下面的 "确认" 按钮打开新仓库的安装链接\n以安装新版本的脚本~`)
	window.location.href = `https://github.com/hmjz100/BaiduNetDiskYouthMember/raw/main/%EF%BC%88%E6%94%B9%EF%BC%89%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E4%BC%9A%E5%91%98%E9%9D%92%E6%98%A5%E7%89%88.user.js`;
})()

================================================
FILE: (改)网盘直链下载助手.user.js
================================================
// ==UserScript==
// @name              LinkSwift
// @namespace         github.com/hmjz100
// @version           1.1.3
// @author            Hmjz100、油小猴
// @icon              data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdvbGRHcmFkaWVudCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiNGRkY1OUQ7c3RvcC1vcGFjaXR5OjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3R5bGU9InN0b3AtY29sb3I6I0ZGRDcwMDtzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I0ZCQzAyRDtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZW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LjVoNy42YzMuMSAwIDUuNSAxLjMgNi42IDMuNWwuMy43Yy43IDIuMS4xIDQuNi0xLjcgNi45eiIgZmlsbD0iI2ZmZiIvPjwvZz48Zz48cGF0aCBkPSJNMCAxMDAgUTY0IDExNSAxMjggMTAwIEwxMjggMTI4IEwwIDEyOCBaIiBmaWxsPSIjRDMyRjJGIi8+PHBhdGggZD0iTTAgMTAwIFE2NCAxMTUgMTI4IDEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ1cmwoI2dvbGRHcmFkaWVudCkiIHN0cm9rZS13aWR0aD0iMiIvPjx0ZXh0IHg9IjY0IiB5PSIxMjEiIGZvbnQtZmFtaWx5PSJzeXN0ZW0tdWksIC1hcHBsZS1zeXN0ZW0sIHNhbnMtc2VyaWYiIGZvbnQtd2VpZ2h0PSI5MDAiIGZvbnQtc2l6ZT0iMTIiIGZpbGw9InVybCgjZ29sZEdyYWRpZW50KSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9InRleHQtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsMCwwLDAuMyk7Ij7liIYg5LiNIOi1t+OAgOe6ryDpnaAg54ixPC90ZXh0PjwvZz48L3N2Zz4=
// @description       (。>ᴗ•)✧《也许同类型中最好用?》系列 - 一个基于 JavaScript 的网盘文件下载地址获取工具✨,基于【网盘直链下载助手】修改 | 支持 百度网盘 / 阿里云盘 / 中国移动云盘 / 天翼云盘 / 迅雷云盘 / 夸克网盘 / UC网盘 / 123云盘 八大网盘 | 开源・自用・去广 | 改界面・添功能・修Bug | 既超越原版,亦是同类中最好用版本!👋
// @description:zh-CN (。>ᴗ•)✧《也许同类型中最好用?》系列 - 一个基于 JavaScript 的网盘文件下载地址获取工具✨,基于【网盘直链下载助手】修改 | 支持 百度网盘 / 阿里云盘 / 中国移动云盘 / 天翼云盘 / 迅雷云盘 / 夸克网盘 / UC网盘 / 123云盘 八大网盘 | 开源・自用・去广 | 改界面・添功能・修Bug | 既超越原版,亦是同类中最好用版本!👋
// @description:zh-TW (。>ᴗ•)✧《也許同類型中最好用?》系列 - 一個基於 JavaScript 的網盤檔案下載地址獲取工具✨,基於【網盤直鏈下載助手】改編 | 支援 百度網盤 / 阿里雲盤 / 中國移動雲盤 / 天翼雲盤 / 迅雷雲盤 / 夸克網盤 / UC網盤 / 123雲盤 八大平台 | 開源・自用・除廣 | 改介面・擴功能・修Bug | 既超越原版,亦是同類中最好用版本!👋
// @description:zh-HK (。>ᴗ•)✧《也許同類型中最好用?》系列 - 一個基於 JavaScript 的網盤檔案下載地址獲取工具✨,基於【網盤直鏈下載助手】改編 | 支援 百度網盤 / 阿里雲盤 / 中國移動雲盤 / 天翼雲盤 / 迅雷雲盤 / 夸克網盤 / UC網盤 / 123雲盤 八大平台 | 開源・自用・除廣 | 改介面・擴功能・修Bug | 既超越原版,亦是同類中最好用版本!👋
// @copyright         © 2022 hmjz100
// @license           AGPL-3.0-or-later
// @source            https://github.com/hmjz100/LinkSwift/
// @website           https://github.com/hmjz100/LinkSwift/
// @homepageURL       https://github.com/hmjz100/LinkSwift/
// @homepage          https://github.com/hmjz100/LinkSwift/
// @support           https://github.com/hmjz100/LinkSwift/issues
// @supportURL        https://github.com/hmjz100/LinkSwift/issues
// @require           https://unpkg.com/jquery@3.6.0/dist/jquery.min.js
// @require           https://unpkg.com/sweetalert2@11.4.8/dist/sweetalert2.min.js
// @resource SwalLigt https://unpkg.com/sweetalert2@11.4.8/dist/sweetalert2.min.css
// @resource SwalDark https://unpkg.com/@sweetalert2/theme-dark@5.0.26/dark.min.css
// @require           https://unpkg.com/js-md5@0.7.3/build/md5.min.js
// @run-at            document-start
// @early-start
// @match             *://pan.baidu.com/disk/home*
// @match             *://yun.baidu.com/disk/home*
// @match             *://pan.baidu.com/disk/timeline*
// @match             *://yun.baidu.com/disk/timeline*
// @match             *://pan.baidu.com/disk/main*
// @match             *://yun.baidu.com/disk/main*
// @match             *://pan.baidu.com/youth/pan/main*
// @match             *://yun.baidu.com/youth/pan/main*
// @match             *://pan.baidu.com/disk/base*
// @match             *://yun.baidu.com/disk/base*
// @match             *://pan.baidu.com/disk/timeline*
// @match             *://yun.baidu.com/disk/timeline*
// @match             *://pan.baidu.com/pfile/*
// @match             *://yun.baidu.com/pfile/*
// @match             *://pan.baidu.com/s/*
// @match             *://pan.baidu.com/aipan/*
// @match             *://yun.baidu.com/s/*
// @match             *://yun.baidu.com/aipan/*
// @match             *://pan.baidu.com/share/*
// @match             *://yun.baidu.com/share/*
// @match             *://pan.baidu.com/embed/*
// @match             *://yun.baidu.com/embed/*
// @match             *://openapi.baidu.com/*
// @match             *://www.aliyundrive.com/s/*
// @match             *://www.aliyundrive.com/drive*
// @match             *://www.alipan.com/s/*
// @match             *://www.alipan.com/drive*
// @match             *://yun.139.com/*
// @match             *://caiyun.139.com/*
// @match             *://cloud.189.cn/web/*
// @match             *://pan.xunlei.com/*
// @match             *://pan.quark.cn/*
// @match             *://drive.uc.cn/*
// @match             *://*.123pan.com/*
// @match             *://*.123pan.cn/*
// @match             *://*.123684.com/*
// @match             *://*.123865.com/*
// @match             *://*.123952.com/*
// @match             *://*.123912.com/*
// @connect           *
// @connect           localhost
// @connect           baidu.com
// @connect           baidupcs.com
// @connect           aliyundrive.com
// @connect           aliyundrive.net
// @connect           alipan.com
// @connect           alicloudccp.com
// @connect           aliyundrive.cloud
// @connect           139.com
// @connect           cmecloud.cn
// @connect           189.cn
// @connect           xunlei.com
// @connect           quark.cn
// @connect           uc.cn
// @connect           123pan.com
// @connect           123pan.cn
// @connect           123684.com
// @connect           123865.com
// @connect           123952.com
// @connect           123912.com
// @connect           cjjd19.com
// @grant             unsafeWindow
// @grant             window.close
// @grant             GM_xmlhttpRequest
// @grant             GM_setClipboard
// @grant             GM_setValue
// @grant             GM_getValue
// @grant             GM_deleteValue
// @grant             GM_openInTab
// @grant             GM_registerMenuCommand
// @grant             GM_getResourceText
// @compatible	      Chrome
// @compatible	      Edge
// @compatible	      Firefox
// @compatible	      Safari
//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MC0xLjctLjUtMi4xLTEuMi0uMy0uNC0uNC0uOC0uNC0xLjMgMC0xLjQgMS4xLTIuNSAyLjUtMi41aDcuNmMzLjEgMCA1LjUgMS4zIDYuNiAzLjVsLjMuN2MuNyAyLjEuMSA0LjYtMS43IDYuOXoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=
/**
 * @name LinkSwift
 * @template (改)网盘直链下载助手
 * @author 油小猴
 * @author hmjz100
 * @namespace github.com/hmjz100
 * @description  一个基于 JavaScript 盘的文件下载地址获取工具  支持 百度网盘/阿里云盘/中国移动云盘/天翼云盘/迅雷云盘/夸克网盘/UC网盘/123云盘 八大网盘  代码改自 “网盘直链下载助手”,作者油小猴
 * @version 1.1.3.1-Canary
 * @license AGPL-3.0-or-later
 * @see {@link https://github.com/hmjz100/LinkSwift/ Github 仓库}
 */
(function linkSwift($) {
	// 严格模式,确保代码安全执行,不越界
	"use strict";
	// unsafeWindow 检测,适用于 Via 这类无 unsafeWindow 的浏览器
	if (typeof (unsafeWindow) === "undefined") window.unsafeWindow = window;
	// 重复执行检测,适用于部分浏览器;出自 “Via 轻插件”,作者谷花泰
	let key = encodeURIComponent("LinkSwift:主代码"); if (window[key]) return; window[key] = true;

	// 全局参数
	let mount = idontknow("LinkSwift");
	let info = {
		author: GM_info.script?.author,
		name: GM_info.script?.name,
		version: (GM_info.script?.version || "1.1.3"),
		icon: (GM_info.script?.icon || "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdvbGRHcmFkaWVudCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiNGRkY1OUQ7c3RvcC1vcGFjaXR5OjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3R5bG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IuMy0uNiAzLjEtMS43bDE0LjgtMTkuM2MuOS0xLjEgMS4xLTIgLjktMi40LS4yLS4zLS45LS43LTIuMS0uN2gtNy42Yy0uOSAwLTEuNy0uNS0yLjEtMS4yLS4zLS40LS40LS44LS40LTEuMyAwLTEuNCAxLjEtMi41IDIuNS0yLjVoNy42YzMuMSAwIDUuNSAxLjMgNi42IDMuNWwuMy43Yy43IDIuMS4xIDQuNi0xLjcgNi45eiIgZmlsbD0iI2ZmZiIvPjwvZz48Zz48cGF0aCBkPSJNMCAxMDAgUTY0IDExNSAxMjggMTAwIEwxMjggMTI4IEwwIDEyOCBaIiBmaWxsPSIjRDMyRjJGIi8+PHBhdGggZD0iTTAgMTAwIFE2NCAxMTUgMTI4IDEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ1cmwoI2dvbGRHcmFkaWVudCkiIHN0cm9rZS13aWR0aD0iMiIvPjx0ZXh0IHg9IjY0IiB5PSIxMjEiIGZvbnQtZmFtaWx5PSJzeXN0ZW0tdWksIC1hcHBsZS1zeXN0ZW0sIHNhbnMtc2VyaWYiIGZvbnQtd2VpZ2h0PSI5MDAiIGZvbnQtc2l6ZT0iMTIiIGZpbGw9InVybCgjZ29sZEdyYWRpZW50KSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgc3R5bGU9InRleHQtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsMCwwLDAuMyk7Ij7liIYg5LiNIOi1t+OAgOe6ryDpnaAg54ixPC90ZXh0PjwvZz48L3N2Zz4="),
		mhandler: GM_info.scriptHandler,
		mversion: GM_info.version,
	};
	let $doc = $(document);
	let temp = {
		mount: $(`.${mount}`),
		main: {},
		page: "",
		mode: [],
		links: [],
		glinks: [],
		color: "",
		request: {},
		colored: false,
		swalDefault: {
			position: "center",
			heightAuto: false,
			scrollbarPadding: false,
			confirmButtonText: `<svg class="pl-icon"><use xlink:href="#pl-icon-fa-check"/></svg> 确认`,
			denyButtonText: `<svg class="pl-icon"><use xlink:href="#pl-icon-fa-x-mark"/></svg> 拒绝`,
			cancelButtonText: `<svg class="pl-icon"><use xlink:href="#pl-icon-fa-x-mark"/></svg> 取消`
		},
		terminalType: {
			wc: "Microsoft Windows 命令提示符",
			wp: "Microsoft Windows PowerShell",
			lt: "Linux 终端",
			ls: "Linux Shell",
			mt: "Apple MacOS 终端"
		}
	};

	/**
	 * SweetAlert2 的 Toast 指示框基础配置
	 * @author 油小猴
	 * @author hmjz100
	 * @description 创建一个全局通用的 Toast 指示框实例,支持自动关闭、鼠标悬停暂停、右上角弹出等特性。
	 *
	 * @type{Sweetalert2.Toast}
	 */
	let toast = Swal.mixin({
		toast: true,
		position: "top-end",
		showConfirmButton: false,
		timer: 3500,
		timerProgressBar: true,
		showCloseButton: true,
		didOpen: function (toast) {
			toast.addEventListener("mouseenter", () => {
				Swal.stopTimer();
			});
			toast.addEventListener("mouseleave", () => {
				Swal.resumeTimer();
			});
		}
	});

	/**
	 * 消息提示工具类
	 * @author 油小猴
	 * @description 提供统一的提示信息展示方法,基于 SweetAlert2 的 Toast 实现;
	 * 包含 success / error / warning / info / question 等类型。
	 */
	let message = {
		success: function (text) {
			toast.fire({ title: text, icon: "success" });
		},
		error: function (text) {
			toast.fire({ title: text, icon: "error" });
		},
		warning: function (text) {
			toast.fire({ title: text, icon: "warning" });
		},
		info: function (text) {
			toast.fire({ title: text, icon: "info" });
		},
		question: function (text) {
			toast.fire({ title: text, icon: "question" });
		}
	};

	/**
	 * 基础配置集合
	 * @author 油小猴
	 * @author hmjz100
	 */
	let config = {
		base: {
			num: "865746",
			license: "AGPL3",
			service: {
				account: "https://pic.rmb.bdstatic.com/bjh/8b9e14345b3cdf96aedac2f3971adcb02681.png"
			},
			dom: {
				footer: `o(≧▽≦)o 十分感谢您的支持!来给此项目一个 <a href="https://github.com/hmjz100/LinkSwift" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-star"></use></svg>Star</a> 吧~`,
				button: {
					api: {
						title: "API 下载",
						footer: `<p>适用于 <a href="https://www.youxiaohou.com/zh-cn/idm.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>IDM</a>,<a href="https://www.youxiaohou.com/zh-cn/ndm.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>NDM</a> 以及浏览器自带下载</p>`
					},
					aria2: {
						title: "Aria2 下载",
						footer: `<p>RPC 适用于 <a href="https://www.youxiaohou.com/zh-cn/motrix.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>Motrix</a>,<a href="https://www.youxiaohou.com/download.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>Aria2 Tools</a>,<a href="https://www.youxiaohou.com/download.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>AriaNgGUI</a></p>
						<p>命令行适用于 <a href="https://www.youxiaohou.com/zh-cn/xdown.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>XDown</a> 及 <a href="https://www.youxiaohou.com/zh-cn/linux.html#linux-shell" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>Linux Shell 命令行</a></p>`
					},
					curl: {
						title: "cURL 下载",
						footer: `<p>适用于 <a href="https://www.youxiaohou.com/zh-cn/curl.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>Windows,Linux,MacOS 终端</a></p>`
					},
					bitcomet: {
						title: "比特彗星下载",
						footer: `<p>适用于 <a href="https://www.youxiaohou.com/zh-cn/bitcomet.html" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>比特彗星</a></p>`
					},
					abdm: {
						title: "ABDM 下载",
						footer: `<p>适用于 <a href="https://abdownloadmanager.com/" target="_blank" class="pl-a" data-no-instant="1"><svg class="pl-icon"><use xlink:href="#pl-icon-fa-link"></use></svg>AB Download Manager</a></p>`
					}
				},
				themes: [
					{ color: "#09AAFF", name: "度盘|经典蓝" },
					{ color: "#cc3235", name: "度盘|平安红" },
					{ color: "#518c17", name: "度盘|盎然绿" },
					{ color: "#ed944b", name: "度盘|周年橙" },
					{ color: "#f969a5", name: "度盘|幸会粉" },
					{ color: "#bca280", name: "度盘|午后棕" },
					{ color: "#b673ab", name: "度盘|物语紫" },
					{ color: "#574AB8", name: "度盘|星空紫" },
					{ color: "#1d2327", name: "OpenAI|默认黑" },
					{ color: "#18a497", name: "OpenAI|默认青" },
					{ color: "#637dff", name: "度里叁|霞光紫" },
					{ color: "#0d53ff", name: "夸克|极简蓝" },
					{ color: "#3181f9", name: "移动|彩云蓝" },
					{ color: "#f8d800", name: "果核|柠檬黄" },
					{ color: "#0396ff", name: "果核|默认蓝" },
					{ color: "#32ccbc", name: "果核|碧波绿" },
					{ color: "#f6416c", name: "果核|玫瑰红" },
					{ color: "#2271b1", name: "文派|默认蓝" },
					{ color: "#59524c", name: "文派|咖啡灰" },
					{ color: "#ff679a", name: "哔哩|少女粉" },
					{ color: "#f44236", name: "哔哩|高能红" },
					{ color: "#fec107", name: "哔哩|咸蛋黄" },
					{ color: "#8bc24a", name: "哔哩|早苗绿" },
					{ color: "#2594ed", name: "哔哩|宝石蓝" },
					{ color: "#9c28b1", name: "哔哩|罗兰紫" }
				]
			}
		},
		$baidu: {
			api: {
				ua: {
					downloadLink: "pan.baidu.com"
				},
				getAccessToken: "https://openapi.baidu.com/oauth/2.0/authorize?response_type=token&scope=basic,netdisk&client_id=omiOnr2tYnN9vSyDErcVFWpPU2mZA7YO&redirect_uri=oob&confirm_login=0",
				getLink: "https://pan.baidu.com/rest/2.0/xpan/multimedia?method=filemetas&dlink=1",
				getFiles: "https://pan.baidu.com/rest/2.0/xpan/file?method=list&showempty=1",
				getShareLink: "https://pan.baidu.com/api/sharedownload?channel=chunlei&clienttype=0&web=1&app_id=250528",
				getShareSign: "https://pan.baidu.com/share/tplconfig?fields=sign,timestamp&channel=chunlei&web=1&app_id=250528&clienttype=0&view_mode=1"
				// getShareFiles: "https://pan.baidu.com/rest/2.0/xpan/share?method=list&showempty=1"
			},
			mount: {
				home: ".frame-main>div>div>div>div:has(.g-dropdown-button.g-new-create)",
				main: ".wp-s-agile-tool-bar__header",
				share: ".module-share-top-bar .x-button-box .g-dropdown-button.tools-more"
			},
			dom: {
				enhance: `+<br/>此方式可以自动设置用户代理(UA),然后下载。<br/>此方式的下载请求<b>可能会</b>被<b>旧版 IDM</b> 捕获。`,
				normal: `+<br/>此方式<b>无法下载超过 50MB 的文件</b>,若超过点击会无反应(服务器 403)。<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`,
				copy: `注:此服务直接访问超过 50MB 文件的直链会导致服务器回报 403 错误<br/>如需访问,<b>请修改用户代理(UA)为 "pan.baidu.com"</b>`
			}
		},
		$aliyun: {
			api: {
				getLink: "https://api.aliyundrive.com/v2/file/get_download_url",
				getShareLink: "https://api.aliyundrive.com/v2/file/get_share_link_download_url"
			},
			mount: {
				home: `[class^="header--"]>[class^="actions--"]`,
				share: `[class^="banner--"]>[class^="right--"]`,
				list: `[class^="node-list-table-view--"]`,
				grid: `[class^="node-list-grid-view--"]`,
				switch: `[class^="switch-wrapper--"]`
			},
			dom: {
				enhance: `+<br/>此方式可以自动设置 Referer,然后下载。<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`,
				copy: `注:此服务直接访问直链会导致服务器回报 403 错误<br/>如需访问,<b>请修改 Referer 为 "https://${location.host}/"</b>`,
				filename: `注:此服务在下载高峰期时<b>可能不会</b>向客户端回报文件名,下载时需要复制文件名。`
			}
		},
		$mcloud: {
			api: {
				getLink: "https://personal-kd-njs.yun.139.com/hcy/file/getDownloadUrl"
			},
			mount: {
				home: ".top_button",
				share: ".top-btns"
			},
			dom: {
				enhance: `+<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`
			}
		},
		$tcloud: {
			api: {
				getAccessToken: "https://api.cloud.189.cn/open/oauth2/ssoH5.action",
				getLink: "https://api.cloud.189.cn/open/file/getFileDownloadUrl.action"
			},
			mount: {
				home: "[class*=\"FileHead_file-head-left\"]",
				share: ".nav-opea"
			},
			dom: {
				enhance: `+<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`
			}
		},
		$xunlei: {
			api: {
				mirror: [
					"vod0780-aliyun04-vip-lixian.xunlei.com", "vod0781-aliyun04-vip-lixian.xunlei.com", "vod3379-aliyun04-vip-lixian.xunlei.com", "vod3429-aliyun04-vip-lixian.xunlei.com", "vod3459-aliyun04-vip-lixian.xunlei.com", "vod3533-aliyun04-vip-lixian.xunlei.com", "vod4252-aliyun04-vip-lixian.xunlei.com", "vod4253-aliyun04-vip-lixian.xunlei.com", "vod4320-aliyun04-vip-lixian.xunlei.com", "vod4321-aliyun04-vip-lixian.xunlei.com", "vod0555-aliyun06-vip-lixian.xunlei.com", "vod0556-aliyun06-vip-lixian.xunlei.com", "vod1284-aliyun06-vip-lixian.xunlei.com", "vod1285-aliyun06-vip-lixian.xunlei.com", "vod1363-aliyun06-vip-lixian.xunlei.com", "vod1372-aliyun06-vip-lixian.xunlei.com", "vod1629-aliyun06-vip-lixian.xunlei.com", "vod1630-aliyun06-vip-lixian.xunlei.com", "vod1703-aliyun06-vip-lixian.xunlei.com", "vod1704-aliyun06-vip-lixian.xunlei.com", "vod1844-aliyun06-vip-lixian.xunlei.com", "vod0254-aliyun08-vip-lixian.xunlei.com", "vod0255-aliyun08-vip-lixian.xunlei.com", "vod0256-aliyun08-vip-lixian.xunlei.com", "vod0257-aliyun08-vip-lixian.xunlei.com", "vod0261-aliyun08-vip-lixian.xunlei.com", "vod0262-aliyun08-vip-lixian.xunlei.com", "vod0263-aliyun08-vip-lixian.xunlei.com", "vod0264-aliyun08-vip-lixian.xunlei.com", "vod0759-aliyun08-vip-lixian.xunlei.com", "vod0760-aliyun08-vip-lixian.xunlei.com", "vod9410-aliyun08-vip-lixian.xunlei.com", "vod9411-aliyun08-vip-lixian.xunlei.com", "vod9412-aliyun08-vip-lixian.xunlei.com", "vod0080-b02-vip-lixian.xunlei.com", "vod0432-b02-vip-lixian.xunlei.com", "vod0531-b02-vip-lixian.xunlei.com", "vod0532-b02-vip-lixian.xunlei.com", "vod0533-b02-vip-lixian.xunlei.com", "vod0534-b02-vip-lixian.xunlei.com", "vod0537-b02-vip-lixian.xunlei.com", "vod0563-b02-vip-lixian.xunlei.com", "vod0565-b02-vip-lixian.xunlei.com", "vod0566-b02-vip-lixian.xunlei.com", "vod0568-b02-vip-lixian.xunlei.com", "vod0571-b02-vip-lixian.xunlei.com", "vod0572-b02-vip-lixian.xunlei.com", "vod0573-b02-vip-lixian.xunlei.com", "vod0595-b02-vip-lixian.xunlei.com", "vod0596-b02-vip-lixian.xunlei.com", "vod0597-b02-vip-lixian.xunlei.com", "vod0598-b02-vip-lixian.xunlei.com", "vod0636-b02-vip-lixian.xunlei.com", "vod0637-b02-vip-lixian.xunlei.com", "vod0638-b02-vip-lixian.xunlei.com", "vod0639-b02-vip-lixian.xunlei.com", "vod0640-b02-vip-lixian.xunlei.com", "vod0641-b02-vip-lixian.xunlei.com", "vod0642-b02-vip-lixian.xunlei.com", "vod0643-b02-vip-lixian.xunlei.com", "vod0644-b02-vip-lixian.xunlei.com", "vod0645-b02-vip-lixian.xunlei.com", "vod0646-b02-vip-lixian.xunlei.com", "vod0647-b02-vip-lixian.xunlei.com", "vod0648-b02-vip-lixian.xunlei.com", "vod0649-b02-vip-lixian.xunlei.com", "vod0650-b02-vip-lixian.xunlei.com", "vod0651-b02-vip-lixian.xunlei.com", "vod0652-b02-vip-lixian.xunlei.com", "vod0653-b02-vip-lixian.xunlei.com", "vod0654-b02-vip-lixian.xunlei.com", "vod0725-b02-vip-lixian.xunlei.com", "vod0726-b02-vip-lixian.xunlei.com", "vod0727-b02-vip-lixian.xunlei.com", "vod0006-b05-vip-lixian.xunlei.com", "vod0009-b05-vip-lixian.xunlei.com", "vod0010-b05-vip-lixian.xunlei.com", "vod0011-b05-vip-lixian.xunlei.com", "vod0012-b05-vip-lixian.xunlei.com", "vod0013-b05-vip-lixian.xunlei.com", "vod0014-b05-vip-lixian.xunlei.com", "vod0043-b05-vip-lixian.xunlei.com", "vod0044-b05-vip-lixian.xunlei.com", "vod0045-b05-vip-lixian.xunlei.com", "vod0051-b05-vip-lixian.xunlei.com", "vod0053-b05-vip-lixian.xunlei.com", "vod0054-b05-vip-lixian.xunlei.com", "vod0055-b05-vip-lixian.xunlei.com", "vod0139-b05-vip-lixian.xunlei.com", "vod0140-b05-vip-lixian.xunlei.com", "vod0141-b05-vip-lixian.xunlei.com", "vod0142-b05-vip-lixian.xunlei.com", "vod0143-b05-vip-lixian.xunlei.com", "vod0349-b05-vip-lixian.xunlei.com", "vod0001-c01-vip-lixian.xunlei.com", "vod0002-c01-vip-lixian.xunlei.com", "vod0003-c01-vip-lixian.xunlei.com", "vod0004-c01-vip-lixian.xunlei.com", "vod0005-c01-vip-lixian.xunlei.com", "vod0070-h01-vip-lixian.xunlei.com", "vod0071-h01-vip-lixian.xunlei.com", "vod0074-h01-vip-lixian.xunlei.com", "vod0075-h01-vip-lixian.xunlei.com", "vod0131-h01-vip-lixian.xunlei.com", "vod0132-h01-vip-lixian.xunlei.com", "vod0153-h01-vip-lixian.xunlei.com", "vod0088-h04-vip-lixian.xunlei.com", "vod0089-h04-vip-lixian.xunlei.com", "vod0090-h04-vip-lixian.xunlei.com", "vod0091-h04-vip-lixian.xunlei.com", "vod0092-h04-vip-lixian.xunlei.com", "vod0093-h04-vip-lixian.xunlei.com", "vod0094-h04-vip-lixian.xunlei.com", "vod0097-h04-vip-lixian.xunlei.com", "vod0098-h04-vip-lixian.xunlei.com", "vod0099-h04-vip-lixian.xunlei.com", "vod0100-h04-vip-lixian.xunlei.com", "vod0101-h04-vip-lixian.xunlei.com", "vod0105-h04-vip-lixian.xunlei.com", "vod0128-h04-vip-lixian.xunlei.com", "vod0129-h04-vip-lixian.xunlei.com", "vod0143-h04-vip-lixian.xunlei.com", "vod0317-h04-vip-lixian.xunlei.com", "vod0318-h04-vip-lixian.xunlei.com", "vod0319-h04-vip-lixian.xunlei.com", "vod0320-h04-vip-lixian.xunlei.com", "vod0003-h05-vip-lixian.xunlei.com", "vod0004-h05-vip-lixian.xunlei.com", "vod0007-h05-vip-lixian.xunlei.com", "vod0008-h05-vip-lixian.xunlei.com", "vod0009-h05-vip-lixian.xunlei.com", "vod0010-h05-vip-lixian.xunlei.com", "vod0012-h05-vip-lixian.xunlei.com", "vod0013-h05-vip-lixian.xunlei.com", "vod0014-h05-vip-lixian.xunlei.com", "vod0017-h05-vip-lixian.xunlei.com", "vod0097-h05-vip-lixian.xunlei.com", "vod0098-h05-vip-lixian.xunlei.com", "vod0099-h05-vip-lixian.xunlei.com", "vod0116-h05-vip-lixian.xunlei.com", "vod0117-h05-vip-lixian.xunlei.com", "vod0121-h05-vip-lixian.xunlei.com", "vod0122-h05-vip-lixian.xunlei.com", "vod0131-h05-vip-lixian.xunlei.com", "vod0145-h05-vip-lixian.xunlei.com", "vod0146-h05-vip-lixian.xunlei.com", "vod0184-h05-vip-lixian.xunlei.com", "vod0185-h05-vip-lixian.xunlei.com", "vod0221-h05-vip-lixian.xunlei.com", "vod0222-h05-vip-lixian.xunlei.com", "vod0223-h05-vip-lixian.xunlei.com", "vod0224-h05-vip-lixian.xunlei.com", "vod0225-h05-vip-lixian.xunlei.com", "vod0227-h05-vip-lixian.xunlei.com", "vod0252-h05-vip-lixian.xunlei.com", "vod0253-h05-vip-lixian.xunlei.com", "vod0254-h05-vip-lixian.xunlei.com", "vod0001-m01-vip-lixian.xunlei.com", "vod0002-m01-vip-lixian.xunlei.com", "vod0003-m01-vip-lixian.xunlei.com", "vod0006-m01-vip-lixian.xunlei.com", "vod0007-m01-vip-lixian.xunlei.com", "vod0008-m01-vip-lixian.xunlei.com", "vod0010-m01-vip-lixian.xunlei.com", "vod0011-m01-vip-lixian.xunlei.com", "vod0012-m01-vip-lixian.xunlei.com", "vod0013-m01-vip-lixian.xunlei.com", "vod0014-m01-vip-lixian.xunlei.com", "vod0019-m01-vip-lixian.xunlei.com", "vod0020-m01-vip-lixian.xunlei.com", "vod0021-m01-vip-lixian.xunlei.com", "vod0022-m01-vip-lixian.xunlei.com", "vod0064-txyun08-vip-lixian.xunlei.com", "vod0065-txyun08-vip-lixian.xunlei.com", "vod0066-txyun08-vip-lixian.xunlei.com", "vod0067-txyun08-vip-lixian.xunlei.com", "vod0068-txyun08-vip-lixian.xunlei.com", "vod0069-txyun08-vip-lixian.xunlei.com", "vod0070-txyun08-vip-lixian.xunlei.com", "vod0340-txyun08-vip-lixian.xunlei.com", "vod0341-txyun08-vip-lixian.xunlei.com", "vod0032-z01-vip-lixian.xunlei.com", "vod0035-z01-vip-lixian.xunlei.com", "vod0036-z01-vip-lixian.xunlei.com", "vod0037-z01-vip-lixian.xunlei.com", "vod0038-z01-vip-lixian.xunlei.com", "vod0039-z01-vip-lixian.xunlei.com", "vod0040-z01-vip-lixian.xunlei.com", "vod0041-z01-vip-lixian.xunlei.com", "vod0042-z01-vip-lixian.xunlei.com", "vod0091-z01-vip-lixian.xunlei.com", "vod0093-z01-vip-lixian.xunlei.com", "vod0131-z01-vip-lixian.xunlei.com", "vod0135-z01-vip-lixian.xunlei.com", "vod0136-z01-vip-lixian.xunlei.com", "vod0146-z01-vip-lixian.xunlei.com", "vod0155-z01-vip-lixian.xunlei.com", "vod0156-z01-vip-lixian.xunlei.com", "vod0167-z01-vip-lixian.xunlei.com", "vod0195-z01-vip-lixian.xunlei.com", "vod0196-z01-vip-lixian.xunlei.com", "vod0281-z01-vip-lixian.xunlei.com"
				],
				getLink: "https://api-pan.xunlei.com/drive/v1/files/"
			},
			mount: {
				home: `[class^="FileMenu__menu--"]`,
				share: `[class^="Share__batchActionBox--"]`
			},
			dom: {
				enhance: `+<br/>此方式可以自动设置文件名,然后下载。<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此服务不会向客户端回报文件名,选用此方式下载需手动重命名文件。<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				filename: `注:此服务不会向客户端回报文件名,下载时需要复制文件名。`
			}
		},
		$quark: {
			api: {
				ua: {
					downloadLink: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/3.20.0 Chrome/112.0.5615.165 Electron/24.1.3.8 Safari/537.36 Channel/pckk_other_ch"
				},
				getLink: "https://drive-pc.quark.cn/1/clouddrive/file/download?entry=ft&fr=pc&pr=ucpro"
			},
			mount: {
				home: ".btn-operate .btn-main",
				share: ".share-btns"
			},
			dom: {
				enhance: `+<br/>此方式可以自动设置用户代理(UA),然后下载。<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`
			}
		},
		$uc: {
			api: {
				ua: {
					downloadLink: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) uc-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch"
				},
				getLink: "https://pc-api.uc.cn/1/clouddrive/file/download?entry=ft&fr=pc&pr=UCBrowser"
			},
			mount: {
				home: ".btn-operate .btn-main",
				share: ".file-info-share-buttom"
			},
			dom: {
				enhance: `+<br/>此方式可以自动设置用户代理(UA),然后下载。<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`
			}
		},
		$123pan: {
			api: {
				getLink: "https://www.123pan.com/api/file/download_info",
				getShareLink: "https://www.123pan.com/api/share/download/info"
			},
			mount: {
				home: ".home-operator .home-operator-button-group",
				share: ".conter .rightInfo",
				shareNew: ".content .content-header-container-wrap .rightInfo, .single-file-sharing-container-content-file-operate"
			},
			dom: {
				enhance: `+<br/>此方式的下载请求<b>不会</b>被 IDM 捕获。`,
				normal: `+<br/>此方式的下载请求<b>可能会</b>被 IDM 捕获。`
			}
		}
	}

	/**
	 * 基础工具集合
	 * @author 油小猴
	 * @author hmjz100
	 */
	let base = {
		/**
		 * 注册 GreaseMonkey-Compatible-Manager 扩展菜单命令
		 * @author 油小猴
		 * @author hmjz100
		 * @description 包含 "设置"、"美化"、"更新" 和 "调试" 四个功能入口
		 */
		registerMenuCommand() {
			GM_registerMenuCommand("⚙️ 设置", () => {
				base.showSetting();
			});
			GM_registerMenuCommand("🍃️ 美化", () => {
				base.showBeautify();
			});
			GM_registerMenuCommand("📃 更新", () => {
				base.showUpdate();
			});
			GM_registerMenuCommand("🛠️ 调试", () => {
				base.showDebug();
			});
		},

		/**
		 * 判断 JavaScript 对象类型
		 * @author 油小猴
		 * @description 通过 Object.prototype.toString 精确识别对象类型
		 * @param {*} obj - 待检测对象
		 * @returns {String} 类型名称(全小写),如:array/number/null/date 等
		 * @example
		 * isType([]) // => "array"
		 * isType(null) // => "null"
		 */
		isType(obj) {
			return Object.prototype.toString.call(obj).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
		},

		/**
		 * 获取 GreaseMonkey-Compatible-Manager 存储的值
		 * @author 油小猴
		 * @param {String} name - 存储键名
		 * @returns {*} 存储的值
		 */
		getValue(name) {
			return GM_getValue(name);
		},

		/**
		 * 设置 GreaseMonkey-Compatible-Manager 存储的值
		 * @author 油小猴
		 * @param {String|Array} path - 存储键名或路径数组
		 * @param {*} value - 要存储的值
		 */
		setValue(path, value) {
			if (base.isType(path) === "string") {
				GM_setValue(path, value);
				return;
			}
			let key = path[0];
			let obj = this.getValue(key) || {};
			let current = obj;
			for (let i = 1; i < path.length - 1; i++) {
				let keyPart = path[i];
				if (!current[keyPart]) current[keyPart] = "";
				current = current[keyPart];
			}
			current[path[path.length - 1]] = value;
			GM_setValue(key, obj);
		},

		/**
		 * 删除 GreaseMonkey-Compatible-Manager 存储的值
		 * @author 油小猴
		 * @param {String|Array} key - 单个键名
		 */
		delValue(key) {
			return GM_deleteValue(key);
		},

		/**
		 * 从 localStorage 获取存储值
		 * @description 自动解析 JSON 格式内容
		 * @author 油小猴
		 * @param {String} key - 存储键名
		 * @returns {*} 存储的原始值或解析后的对象
		 */
		getStorage(key) {
			try {
				return JSON.parse(localStorage.getItem(key));
			} catch (e) {
				return localStorage.getItem(key);
			}
		},

		/**
		 * 设置 localStorage 存储值
		 * @author 油小猴
		 * @description 自动 `JSON.stringify` `对象` `数组` 类型的数据
		 * @param {String} key - 存储键名
		 * @param {*} value - 要存储的值
		 */
		setStorage(key, value) {
			if (this.isType(value) === "object" || this.isType(value) === "array") {
				return localStorage.setItem(key, JSON.stringify(value));
			}
			return localStorage.setItem(key, value);
		},

		/**
		 * 删除 localStorage 存储值
		 * @author 油小猴
		 * @description 没什么特别的
		 * @param {String} key - 存储键名
		 */
		delStorage(key) {
			return localStorage.removeItem(key);
		},

		/**
		 * 剪贴板写入
		 * @author 油小猴
		 * @param {String} text - 要复制的文本内容
		 */
		setClipboard(text) {
			GM_setClipboard(text, "text");
		},

		/**
		 * Base64-URI 编码处理
		 * @author 油小猴
		 * @author hmjz100
		 * @description 自动执行 URI 兼容性编码转换
		 * @param {String} str - 待编码的字符串
		 * @returns {String} Base64 编码结果字符串
		 */
		encodeBase(str) {
			try { str = btoa(str) } catch { }
			return str;
		},

		/**
		 * Base64-URI 解码处理
		 * @author 油小猴
		 * @author hmjz100
		 * @description 自动执行 URI 兼容性解码转换
		 * @param {String} str - Base64 编码字符串
		 * @returns {String} 解码后的原始字符串
		 */
		decodeBase(str) {
			try { str = decodeURIComponent(str) } catch { }
			try { str = atob(str) } catch { }
			try { str = decodeURIComponent(str) } catch { }
			return str;
		},

		/**
		 * 数字补零格式化
		 * @author hmjz100
		 * @description 对 1-9 的数字自动补前导零
		 * @param {Number} i - 待格式化的数字
		 * @returns {String} 格式化后的字符串(如"05")
		 */
		timeFormat(i) {
			if (i >= 0 && i <= 9) {
				return "0" + i;
			} else {
				return i;
			}
		},

		/**
		 * 获取文件扩展名并转为大写
		 * @author 油小猴
		 * @param {String} name - 完整文件名
		 * @returns {String} 大写的文件扩展名(如 `TXT`)
		 */
		getExtension(name) {
			let reg = /(?!\.)\w+$/;
			if (reg.test(name)) {
				let match = name.match(reg);
				return match[0].toUpperCase();
			}
			return "";
		},

		/**
		 * 文件大小格式化
		 * @author hmjz100
		 * @description 自动转换单位到最合适的存储单位(如 `1.2MB`),支持 1000/1024 进制切换
		 * @param {Number} value - 文件字节大小
		 * @returns {String} 可读格式的大小描述
		 */
		sizeFormat(value = 0) {
			var sizeUnitBase = 1024
			try { value = Number(value) } catch { }
			if (typeof value === "number" && !isNaN(value) && value >= 0) {
				var units = sizeUnitBase === 1024
					? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
					: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];

				var unitNames = ["字节", "千字节", "兆字节", "吉字节", "太字节", "拍字节", "艾字节", "泽字节", "尧字节"];

				if (value === 0) return "0B(字节)";

				// 计算单位层级(取整数部分)
				var index = Math.min(
					Math.floor(Math.log(value) / Math.log(sizeUnitBase)),
					units.length - 1
				);

				var size = value / Math.pow(sizeUnitBase, index);
				var formattedSize = size % 1 === 0 ? size.toFixed(0) : size.toFixed(2);

				return `${formattedSize}${unitNames[index]}(${units[index]})`;
			}
			return "";
		},

		/**
		 * 将剩余时间(秒)格式化为可读的时间字符串
		 *
		 * @param {Number} remainingTimeSeconds 剩余总秒数(支持小数)
		 * @returns {String} 格式化后的时间字符串,包含以下可能格式:
		 *   - "X天 HH时:MM分:SS秒"(超过1天)
		 *   - "HH时:MM分:SS秒"(超过1小时)
		 *   - "MM分:SS秒"(超过1分钟)
		 *   - "SS秒"(1分钟内)
		 *   - "计算中..."(无效输入时)
		 *
		 * @example
		 * formatRemainingTime(86400) // "1天 00时:00分:00秒"
		 * formatRemainingTime(3661.5) // "01时:01分:01秒"
		 * formatRemainingTime(0) // "即将完成"
		 * formatRemainingTime(-5) // "计算中..."
		 * formatRemainingTime(NaN) // "计算中..."
		 */
		rtimeFormat(remainingTimeSeconds) {
			if (!Number.isFinite(remainingTimeSeconds) || remainingTimeSeconds < 0) {
				return "计算中...";
			}
			let remainingDays = Math.floor(remainingTimeSeconds / (60 * 60 * 24));
			remainingTimeSeconds %= (60 * 60 * 24);
			let remainingHours = Math.floor(remainingTimeSeconds / (60 * 60));
			remainingTimeSeconds %= (60 * 60);
			let remainingMinutes = Math.floor(remainingTimeSeconds / 60);
			let remainingSeconds = Math.floor(remainingTimeSeconds % 60);
			if (remainingDays > 0) {
				return `${remainingDays}天 ${base.timeFormat(remainingHours)}时:${base.timeFormat(remainingMinutes)}分:${base.timeFormat(remainingSeconds)}秒`;
			} else if (remainingHours > 0) {
				return `${base.timeFormat(remainingHours)}时:${base.timeFormat(remainingMinutes)}分:${base.timeFormat(remainingSeconds)}秒`;
			} else if (remainingMinutes > 0) {
				return `${base.timeFormat(remainingMinutes)}分:${base.timeFormat(remainingSeconds)}秒`;
			} else if (remainingSeconds > 0) {
				return `${remainingSeconds}秒`;
			} else {
				return "0秒";
			}
		},

		/**
		 * 文件列表排序
		 * @author 油小猴
		 * @author hmjz100
		 * @description 按中文拼音顺序对文件数组进行排序
		 * @param {Array} arr - 包含文件对象的数组
		 * @param {String} arr[].filename - 文件名属性(兼容 server_filename)
		 */
		sortByName(arr) {
			arr.sort(() => {
				return (a, b) => {
					let p1 = a.filename ? a.filename : a.server_filename;
					let p2 = b.filename ? b.filename : b.server_filename;
					return p1.localeCompare(p2, "zh-CN");
				};
			});
		},

		/**
		 * 文件名安全处理
		 * @author 油小猴
		 * @description 替换非法字符为下划线
		 * @param {String} name - 原始文件名
		 * @returns {String} 修正后的安全文件名
		 */
		fixFilename(name) {
			let replace = /[!?&|`"'*\/:<>\\]/g
			return name.replace(replace, "_");
		},

		/**
		 * 头标准化
		 * @author hmjz100
		 * @description 标准化请求头、响应头的键,使用驼峰命名
		 * @param {String|Object} headers - 请求头、响应头的字符串或对象
		 * @param {Boolean} addDeafult - 是否不添加默认头
		 * @returns {Object} 标准化后的 Headers
		 */
		standHeaders(headers = {}, addDeafult = false) {
			if (!headers) return {};
			if (typeof headers === 'string') {
				const rawHeaders = {};
				headers.split(/[\r\n]+/).forEach(line => {
					if (!line.trim() || !line.includes(':')) return;
					const [key, ...valueParts] = line.split(':');
					rawHeaders[key.trim().toLowerCase()] = valueParts.join(':').trim();
				});
				headers = rawHeaders;
			}
			let newHeaders = {};
			for (let key in headers) {
				let value
				if (this.isType(headers[key]) === "object") value = JSON.stringify(headers[key]);
				else value = String(headers[key]);
				newHeaders[key.toLowerCase().split("-").map(word => word.charAt(0).toUpperCase() + word.slice(1)).join("-")] = value;
			}
			if (addDeafult) return newHeaders;
			return {
				"Dnt": "", "Cache-Control": "no-cache", "Pragma": "no-cache", "Expires": "0",
				"Cookie": document.cookie,
				"User-Agent": navigator.userAgent,
				"Origin": location.origin,
				"Referer": `${location.origin}/`,
				...newHeaders
			};
		},

		/**
		 * 生成 cURL 下载命令
		 * @author 油小猴
		 * @author hmjz100
		 * @description 根据终端类型生成对应 curl 命令,支持断点续传,自动处理文件名特殊字符
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {String} [headers] - 自定义请求头参数(可选)
		 * @returns {String} 编码后的 curl 命令字符串
		 */
		convertLinkToCurl(link, filename, headers) {
			let terminal = base.getValue("setting_curl_terminal");
			filename = base.fixFilename(filename);
			return `${terminal !== "wp" ? "curl" : "curl.exe"} -L -C - "${link}" -o "${filename}"${headers ? (" " + headers) : ""}`;
		},

		/**
		 * 生成 Aria2 下载命令
		 * @author 油小猴
		 * @author hmjz100
		 * @description 将链接转换为 Aria2 格式命令,自动处理文件名特殊字符
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {String} [headers] - 自定义请求头参数(可选)
		 * @returns {String} 编码后的 aria2c 命令字符串
		 */
		convertLinkToAria2(link, filename, headers) {
			filename = base.fixFilename(filename);
			return `aria2c "${link}" --out "${filename}"${headers ? (" " + headers) : ""}`;
		},

		/**
		 * 生成 BC 协议下载链接
		 * @author 油小猴
		 * @author hmjz100
		 * @description 将链接转换为 BC 协议格式,自动处理 URL 编码
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {String} [headers] - 自定义请求头参数(可选)
		 * @returns {String} 编码后的 BC 协议 URL
		 */
		convertLinkToBitComet(link, filename, headers) {
			filename = base.fixFilename(filename);
			let bc = `AA/${encodeURIComponent(filename)}/?url=${encodeURIComponent(link)}${headers ? ("&" + headers) : ""}ZZ`;
			return `bc://http/${base.encodeBase(bc)}`;
		},

		/**
		 * 发送链接到 IDM 下载器
		 * @author hmjz100
		 * @author Night-stars-1
		 * @description IDM 下载必备
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {Array} [headers] - 自定义请求头参数(可选)
		 * @returns {Promise<"success"|"fail">} 发送态结果
		 */
		async sendLinkToIDM(link, filename, filesize, headers = {}) {
			let rpc = base.getValue("setting_idm_rpc").find(i => i.default);
			if (!this.sendLinkToIDM.lock) this.sendLinkToIDM.lock = Promise.resolve();
			return this.sendLinkToIDM.lock = this.sendLinkToIDM.lock.then(async () => {
				headers = this.standHeaders(headers);

				if (!this.sendLinkToIDM.seq) this.sendLinkToIDM.seq = 1;
				let seq = this.sendLinkToIDM.seq;
				let time = Date.now();
				let url = `http://127.0.0.1:1001/client/${rpc.id}?seq=${seq}`;
				let ext = base.getExtension(filename);

				let headersText = Object.entries(headers).map(([key, value]) => `${key}: ${value}`).join("\n") + "\n"; // 坑1:IDM 对 Header 的解码比较死板,最后不加换行不肯解析

				function format(key, val) {
					if (val === undefined || val === null) return "";
					var strVal = String(val);
					var len = new Blob([strVal]).size; // 坑2:使用 blob.size,而不是 length
					return `${key}=${len}:${strVal}`;
				};

				let fields = [
					format(4, ext), // 4: 文件类型
					format(6, link), // 6: 链接
					format(7, location.origin), // 7: 来源页面(“该文件来自网页”)
					format(11, headersText), // 11: 请求头
					format(100, filename), // 100: 文件名
					format(122, 4), // 122: 代理
				];

				// 坑3:神秘的请求格式
				// MSG# {请求指示} #13#1# {10241/20xx}(是/否 使用扩展提供的文件信息) : {?}(可能是距离扩展启动的时间?) :0: {当前时间戳} :0:1: {2/1}(是/否 优先弹窗,再获取文件信息) : {文件大小} :0,{表单}(格式如上);
				let data = `MSG#${seq}#13#1#10241:${seq + 1000}:0:${time}:0:1:2:${filesize}:0,${fields.join(",")};`;

				let request = base.post(url, data, {}, "text").catch(() => false);
				let timeout = new Promise((_, reject) => {
					setTimeout(() => {
						if (request.abort) request.abort();
						reject(new Error("timeout"));
					}, 15 * 1000);
				})

				let res = await Promise.race([request, timeout]).catch(() => false);

				if (res && res.endsWith(`${seq}:3;`)) {
					this.sendLinkToIDM.seq++;
					return "success";
				};
				return "fail";
			});
		},

		/**
		 * 发送链接到 Aria2 下载器
		 * @author 油小猴
		 * @author hmjz100
		 * @description Aria2 下载必备
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {Array} [headers] - 自定义请求头参数(可选)
		 * @returns {Promise<"success"|"fail">} 发送态结果
		 */
		async sendLinkToAria2(link, filename, headers) {
			if (!this.sendLinkToAria2.lock) this.sendLinkToAria2.lock = Promise.resolve();
			return this.sendLinkToAria2.lock = this.sendLinkToAria2.lock.then(async () => {
				let list = base.getValue("setting_aria2_rpc");
				let selected = list.find(i => i.default);
				let rpc = {
					domain: selected.domain,
					port: selected.port,
					path: selected.path,
					dir: selected.dir,
					token: selected.token
				};
				let url = `${rpc.domain}:${rpc.port}${rpc.path}`;
				let dir = (rpc.dir !== null && rpc.dir !== "") ? rpc.dir : undefined;
				let data = {
					id: new Date().getTime(),
					jsonrpc: "2.0",
					method: "aria2.addUri",
					params: [`token:${rpc.token}`, [link], {
						dir,
						out: filename,
						header: headers
					}]
				};
				try {
					let res = await base.post(url, data, {}, "");
					if (res.result) return "success";
					return "fail";
				} catch (e) {
					return "fail";
				}
			});
		},

		/**
		 * 发送链接到比特彗星下载器
		 * @author hmjz100
		 * @description 比特彗星下载必备
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {Array} [headers] - 自定义请求头参数(可选)
		 * @returns {Promise<"success"|"fail">} 发送态结果
		 */
		async sendLinkToBitcomet(link, filename, headers) {
			if (!this.sendLinkToBitcomet.lock) this.sendLinkToBitcomet.lock = Promise.resolve();
			return this.sendLinkToBitcomet.lock = this.sendLinkToBitcomet.lock.then(async () => {
				let list = base.getValue("setting_bitcomet_rpc");
				let selected = list.find(i => i.default);
				let rpc = {
					domain: selected.domain,
					port: selected.port,
					path: selected.path,
					dir: selected.dir,
					authName: selected.authName,
					authPass: selected.authPass,
				};
				let url = `${rpc.domain}:${rpc.port}${rpc.path}`;
				let data = new URLSearchParams();
				data.append("url", link);
				if (rpc.dir !== null && rpc.dir !== "") data.append("save_path", rpc.dir);
				data.append("file_name", filename);
				data.append("connection", 200);
				if (headers && base.isType(headers) === "object") {
					for (var [key, value] of Object.entries(headers)) {
						data.append(key, value);
					}
				}
				try {
					let res = await base.post(url, data, {
						"Authorization": `Basic ${base.encodeBase(rpc.authName + ":" + rpc.authPass)}`,
						"Content-Type": "application/x-www-form-urlencoded",
						"Cache-Control": "max-age=0",
						"Origin": `${rpc.domain}:${rpc.port}`,
						"Referer": `${rpc.domain}:${rpc.port}/panel/task_add_httpftp`,
					}, "text");
					if (res && res.includes("Add task failed!")) {
						return "fail";
					} else {
						return "success";
					}
				} catch (e) {
					return "success";
				}
			});
		},

		/**
		 * 发送链接到 AB Download Manager 下载器
		 * @author hmjz100
		 * @description AB Download Manager 下载必备
		 * @param {String} link - 下载链接
		 * @param {String} filename - 文件名
		 * @param {Array} [headers] - 自定义请求头参数(可选)
		 * @returns {Promise<"success"|"fail">} 发送态结果
		 */
		async sendLinkToABDM(link, filename, headers) {
			if (!this.sendLinkToBitcomet.lock) this.sendLinkToBitcomet.lock = Promise.resolve();
			return this.sendLinkToBitcomet.lock = this.sendLinkToBitcomet.lock.then(async () => {
				let newHeaders = {};
				for (let key in headers) {
					newHeaders[key.toLowerCase().split("-").map(word => word.charAt(0).toUpperCase() + word.slice(1)).join("-")] = headers[key];
				}
				headers = { "User-Agent": navigator.userAgent, "Origin": location.origin, "Referer": `${location.origin}/`, "DNT": "1", ...newHeaders };
				let list = base.getValue("setting_abdm_rpc");
				let selected = list.find(i => i.default);
				let rpc = {
					domain: selected.domain,
					port: selected.port,
					dir: selected.dir
				};
				let url = `${rpc.domain}:${rpc.port}/start-headless-download`;
				let data = {
					"downloadSource": {
						"name": filename,
						"description": "LinkSwift",
						"link": link,
						"headers": headers,
						"downloadPage": headers["Referer"]
					},
					"name": filename
				}
				if (rpc.dir) data.folder = rpc.dir;
				try {
					let res = await base.post(url, data, { "Content-Type": "text/plain;charset=UTF-8" }, "text");
					if (res === "OK") return "success";
					return "fail";
				} catch (e) {
					return "fail";
				}
			});
		},

		/**
		 * Blob 文件下载
		 * @author 油小猴
		 * @description 通过创建临时链接实现文件下载
		 * @param {Blob} blob - 要下载的 Blob 对象
		 * @param {String} filename - 下载时提示保存的文件名
		 */
		blobDownload(blob, filename) {
			if (blob instanceof Blob) {
				let url = URL.createObjectURL(blob);
				let a = document.createElement("a");
				a.href = url;
				a.download = filename;
				a.rel = "noopener"
				a.click();
				URL.revokeObjectURL(url);
			}
		},

		/**
		 * 可跨域 xmlhttpRequest 请求
		 * @author hmjz100
		 * @description 封装 `GreaseMonkey-Compatible_xmlhttpRequest` 实现的跨域请求,与原始函数参数相同,支持回调和 await 两种用法
		 * @param {Object} option - 请求配置对象
		 * @returns {XMLHttpRequest|Promise} 请求对象实例或 Promise
		 */
		xmlHttpRequest(option) {
			let xmlHttpRequest = (typeof GM_xmlhttpRequest === "function") ? GM_xmlhttpRequest : (typeof GM?.xmlHttpRequest === "function") ? GM.xmlHttpRequest : null;
			if (!xmlHttpRequest || base.isType(xmlHttpRequest) !== "function") throw new Error("GreaseMonkey 兼容 XMLHttpRequest 不可用。");

			return xmlHttpRequest({ withCredentials: true, ...option });;
		},

		/**
		 * 发送 POST 请求
		 * @author 油小猴
		 * @author hmjz100
		 * @description 一般用于请求 API,支持智能格式化数据、智能编码请求数据
		 * @param {String} url - 请求地址
		 * @param {Object|String} data - 请求数据
		 * @param {Object} headers - 请求头配置
		 * @param {String} [type="json"] - 响应类型(支持 `json`, `blob` 等)
		 * @returns {Promise} 包含响应数据的 `Promise` 对象
		 */
		async post(url, data, headers, type = "json") {
			let _data = data;
			if (this.isType(data) === "object" || this.isType(data) === "array") {
				data = JSON.stringify(data);
			} else if (this.isType(data) === "urlsearchparams") {
				_data = Object.fromEntries(data);
			}
			headers = this.standHeaders(headers);
			headers = { "Accept": "*/*,application/json;charset=utf-8", ...headers };
			let request
			let promise = new Promise((resolve, reject) => {
				request = base.xmlHttpRequest({
					url, headers, data,
					method: "POST", responseType: type,
					onloadstart: (res) => {
						base.console.log("【LinkSwift】Post(start)\n请求地址:" + url + "\n请求数据:", _data, "\n请求头部:", headers);
					},
					onload: (res) => {
						const rawHeaders = res.responseHeaders || (request?.getAllResponseHeaders?.() || "") || "";
						res.responseHeaders = base.standHeaders(typeof rawHeaders === 'string' ? rawHeaders.trim() : "", true);
						if (type === "blob") {
							base.console.log("【LinkSwift】Post(load) Blob\n请求地址:" + url + "\n请求数据:", _data, "\n请求结果:", res);
							resolve(res);
							return;
						}

						// 尝试解析响应
						res.responseDecode = res.responseText;
						try { res.responseDecode = atob(res.responseDecode) } catch { }
						try { res.responseDecode = escape(res.responseDecode) } catch { }
						try { res.responseDecode = decodeURIComponent(res.responseDecode) } catch { }
						try { res.responseDecode = JSON.parse(res.responseDecode) } catch { }
						if (res.responseDecode === res.responseText) res.responseDecode = null;
						if (this.isType(res.response) === "object") res.responseDecode = res.response;

						base.console.log("【LinkSwift】Post(load)\n请求地址:" + url + "\n请求数据:", _data, "\n请求头部:", headers, "\n请求结果:", res);
						resolve(res.responseDecode ?? res.response ?? res.responseText);
					},
					onerror: (error) => {
						let msg = "请求失败";
						if (error && typeof error === "object") msg += ": " + JSON.stringify(error, null, 2);
						base.console.error("【LinkSwift】Post(error)\n请求出现错误,可能是网络问题。", error);
						reject(new Error(msg));
					}
				});
			})
			if (request) {
				var methods = Object.getOwnPropertyNames(request).filter(key => typeof request[key] === 'function' && !promise.hasOwnProperty(key) && !['then', 'catch', 'finally'].includes(key)); // 自动收集 request 上的函数属性进行绑定,并能智能排除 Promise 原生方法
				methods.forEach(method => { promise[method] = (...args) => request[method](...args); }); // 动态绑定到 Promise
			}
			return promise;
		},

		/**
		 * 发送 GET 请求
		 * @author 油小猴
		 * @author hmjz100
		 * @description 一般用于请求 API,支持智能格式化数据
		 * @param {String} url - 请求地址
		 * @param {Object} headers - 请求头配置
		 * @param {String} [type="json"] - 响应类型
		 * @returns {Promise} 包含响应数据的 `Promise` 对象
		 */
		async get(url, headers, type = "json") {
			headers = this.standHeaders(headers);
			let request
			let promise = new Promise((resolve, reject) => {
				request = base.xmlHttpRequest({
					url, headers,
					method: "GET", responseType: type,
					onloadstart: (res) => {
						base.console.log("【LinkSwift】Get(start)\n请求地址:" + url + "\n请求头部:", headers);
					},
					onload: (res) => {
						const rawHeaders = res.responseHeaders || (request?.getAllResponseHeaders?.() || "") || "";
						res.responseHeaders = base.standHeaders(typeof rawHeaders === 'string' ? rawHeaders.trim() : "", true);
						if (type === "blob") {
							base.console.log("【LinkSwift】Get(load) Blob\n请求地址:" + url, "\n请求结果:", res);
							resolve(res);
							return;
						}
						// 尝试解析响应
						res.responseDecode = res.responseText;
						try { res.responseDecode = JSON.parse(res.responseDecode) } catch { }
						if (res.responseDecode === res.responseText) res.responseDecode = null;
						if (this.isType(res.response) === "object") res.responseDecode = res.response;

						base.console.log("【LinkSwift】Get(load)\n请求地址:" + url + "\n请求头部:", headers, "\n请求结果:", res);
						resolve(res.responseDecode ?? res.response ?? res.responseText);
					},
					onerror: (error) => {
						let msg = "请求失败";
						if (error && typeof error === "object") msg += ": " + JSON.stringify(error, null, 2);
						base.console.error("【LinkSwift】Get(error)\n请求出现错误,可能是网络问题。", error);
						reject(new Error(msg));
					}
				});
			})
			if (request) {
				var methods = Object.getOwnPropertyNames(request).filter(key => typeof request[key] === 'function' && !promise.hasOwnProperty(key) && !['then', 'catch', 'finally'].includes(key)); // 自动收集 request 上的函数属性进行绑定,并能智能排除 Promise 原生方法
				methods.forEach(method => { promise[method] = (...args) => request[method](...args); }); // 动态绑定到 Promise
			}
			return promise;
		},
		/**
		 * 发送 HEAD 请求
		 * @author hmjz100
		 * @description 用于获取请求地址返回的请求头,支持智能降级为轻量 GET (`Range: bytes=0-0`),返回结构化响应头
		 * @param {String} url - 请求地址
		 * @param {Object} headers - 请求头配置
		 * @param {Boolean} usingGET - 是否使用 GET
		 * @returns {Promise} 包含响应数据的 `Promise` 对象
		 */
		async head(url, headers, usingGET) {
			headers = this.standHeaders(headers);
			return new Promise((resolve, reject) => {
				var method = usingGET ? "Get" : "Head";
				let _aborted = false;
				let request = base.xmlHttpRequest({
					method: method.toUpperCase(),
					url,
					headers,
					onloadstart: () => {
						base.console.log(`【LinkSwift】Head${usingGET ? " Get" : ""}(start)\n请求地址:${url}\n请求头部:`, headers);
					},
					onload: function (res) {
						if (!_aborted) {
							const rawHeaders = res.responseHeaders || (request?.getAllResponseHeaders?.() || "") || "";
							res.responseHeaders = base.standHeaders(typeof rawHeaders === 'string' ? rawHeaders.trim() : "", true);

							base.console.log(`【LinkSwift】Head${usingGET ? " Get" : ""}(load)\n请求地址:${res.finalUrl}\n响应状态:${res.status}\n响应内容:`, res);

							if (!usingGET && !res.responseHeaders.hasOwnProperty("Range") && !(res?.status >= 200 && res?.status < 400)) {
								base.head(res.finalUrl, { ...headers, Range: "bytes=0-0" }, true).then(resolve).catch(reject);
								return;
							}

							resolve(res);
						}
					},
					onreadystatechange: function (res) {
						if (res.readyState === 2) { // HEADERS_RECEIVED
							_aborted = true;
							if (request && request.abort) request.abort();

							const rawHeaders = res.responseHeaders || (request?.getAllResponseHeaders?.() || "") || "";
							res.responseHeaders = base.standHeaders(typeof rawHeaders === 'string' ? rawHeaders.trim() : "", true);

							base.console.log(`【LinkSwift】Head${usingGET ? " Get" : ""}(load) RS2\n请求地址:${res.finalUrl}\n响应状态:${res.status}\n响应内容:`, res);

							if (!usingGET && !res.responseHeaders.hasOwnProperty("Range") && !(res?.status >= 200 && res?.status < 400)) {
								base.head(res.finalUrl, { ...headers, Range: "bytes=0-0" }, true).then(resolve).catch(reject);
								return;
							}

							resolve(res);
						}
					},
					onerror: function (err) {
						if (!_aborted) {
							base.console.error(`【LinkSwift】Head${usingGET ? " Get" : ""}(error)\n请求出现错误,可能是网络问题。`, err);
							reject(err);
						}
					}
				});
			});
		},

		/**
		 * 获取最终重定向
		 * @author 油小猴
		 * @author hmjz100
		 * @description 使用 GET、Head,智能追踪 HTTP 30x 重定向,返回最终访问地址
		 * @param {String} url - 初始请求地址
		 * @param {Object} headers - 请求头配置
		 * @param {Boolean} usingGET - 是否使用 GET
		 * @param {Boolean} returnURL - 是否只返回链接而不是 res
		 * @returns {Promise<String>} 最终 URL 地址
		 */
		getFinal(url, headers = {}, usingGET = false, returnURL = true) {
			return new Promise(async (resolve, reject) => {
				var res = await this.head(url, headers, usingGET).catch(reject);
				if (!res?.finalUrl) return reject(res);
				if (res?.status == 204 && res?.statusText === "IDM") return reject(res);
				if (res?.status >= 300 && res?.status < 400) {
					base.getFinal(res.finalUrl, headers, usingGET, returnURL).then(resolve).catch(reject);
					return;
				}
				if (returnURL) return resolve(res.finalUrl);
				else return resolve(res);
			});
		},

		/**
		 * 下载文件
		 * @author hmjz100
		 * @description 发送 GET 请求,一般用于文件下载,支持进度监控、自动重试、断点续传、非断回退
		 * @param {String} url - 请求地址
		 * @param {Object} headers - 请求头配置
		 * @param {Number} [size=0] - 响应类型
		 * @param {Object} [extra] - 附加参数(必须 `name`、`index`、`size` 属性;可选 `thread`、`retry` 属性)
		 * @returns {Promise} 包含响应数据的 `Promise` 对象
		 */
		async download(url, headers, extra) {
			headers = this.standHeaders(headers);
			// 初始化全局共享状态
			this.download.active = this.download.active || 0; // 全局活跃线程数
			this.download.taskCount = this.download.taskCount || 0; // 当前正在运行的 download 任务数
			var global_maxThreads = 8; // 整个允许的最大并发数

			if (extra) base.console.log(`【LinkSwift】Download\n收到数据:`, extra);
			if (!extra || !extra.index || !extra.name || !extra.size) throw new Error("extra 缺少内容。");

			let status = {
				aborted: false,
				requests: new Set(),
				results: [],
				active: 0,
				maxSpeed: 0
			};

			let promise = new Promise(async (resolve, reject) => {
				this.download.taskCount++; // 任务进入

				try {
					var finalHead = await base.getFinal(url, headers, false, false).catch(reject);
					if (!finalHead) return;
					url = finalHead.finalUrl;

					var responseHeaders = finalHead.responseHeaders;
					let size = parseInt(extra.size || responseHeaders?.["Content-Length"] || 0, 10);
					if (responseHeaders?.["Content-Range"]) {
						size = parseInt((responseHeaders["Content-Range"]?.match(/\/(\d+)$/)?.[1] || size), 10);
					}

					if (!status.aborted && typeof extra?.onProgress === "function") extra.onProgress(0, 0, size);
					if (!(finalHead.status >= 200 && finalHead.status < 400)) return reject(finalHead);
					if (finalHead.status == 204 && finalHead.statusText === "IDM") return reject(finalHead);

					var supportRange = finalHead.status == 206 && (responseHeaders?.["Accept-Ranges"]?.includes("bytes") || responseHeaders?.["Content-Range"]?.includes("bytes"));

					if (!!supportRange || size > 0) {
						base.console.log(`【LinkSwift】Download(Start)\n文件名称:${extra.name}\n断点续传:支持`);

						var maxRetry = extra.retry || 10;
						let index = 0;
						let offset = 0;
						let totalLoaded = 0;

						var worker = async () => {
							var minChunk = extra.minChunk || 50 * 1024; // 最小 50KB
							var maxChunk = extra.maxChunk || 1 * 1024 * 1024; // 最大 1MB
							let chunk = Math.floor(minChunk + (maxChunk - minChunk) * 0.37);

							while (offset < size && !status.aborted) {
								// 如果全局线程满了,且当前任务已经抢到了 1 条以上的线程,则 “让路” 给后来的任务
								let fairShare = Math.max(1, Math.floor(global_maxThreads / this.download.taskCount));
								while (!status.aborted && this.download.active >= global_maxThreads && status.active >= fairShare) {
									await new Promise(r => setTimeout(r, 200)); // 等待,直到其他任务释放或有空位
								}

								if (status.aborted || offset >= size) break;

								var _index = index++;
								var start = offset;
								var end = Math.min(start + chunk - 1, size - 1);
								var _size = end - start + 1;
								offset += _size;

								let attempt = 0;
								while (attempt <= maxRetry && !status.aborted) {
									// 占用线程计数
									status.active++;
									this.download.active++;

									try {
										var startTime = Date.now();
										let lastLoaded = 0;

										var res = await new Promise((s, j) => {
											var xhr = base.xmlHttpRequest({
												url, method: "GET", responseType: "arraybuffer",
												headers: { ...headers, "Range": `bytes=${start}-${end}` },
												onloadstart() {
													startTime = Date.now();
												},
												onprogress: (progress) => {
													totalLoaded += (progress.loaded - lastLoaded);
													lastLoaded = progress.loaded;
													let prog = (totalLoaded * 100 / size);
													if (!status.aborted && typeof extra?.onProgress === "function") extra.onProgress(prog, totalLoaded, size);
												},
												onload: (load) => {
													status.requests.delete(xhr);
													if (load.status == 204 && load.statusText === "IDM") return j(load);
													if (load.status >= 200 && load.status < 300) s(load.response);
													else j(load);
												},
												onerror: (error) => {
													status.requests.delete(xhr);
													j(error);
												}
											});
											status.requests.add(xhr);
										});

										// 智能分块调整
										var _duration = extra.duration || 1.5; // 目标
										var duration = (Date.now() - startTime) / 1000 || 0.1;
										var speed = _size / duration;

										let nextChunk;
										if (speed > status.maxSpeed * 0.9) {
											// 如果速度在提升或维持高位,说明大块是有效的,即便超时也要大胆增加
											// 目标是找到能让 speed 最大化的 chunk 大小
											nextChunk = chunk * 1.5;
											status.maxSpeed = Math.max(status.maxSpeed, speed);
										} else if (duration < _duration * 0.5) {
											// 跑得太快了,可以尝试再加一点
											nextChunk = chunk * 1.2;
										} else if (duration > _duration * 2) {
											// 只有当耗时严重超过目标(比如超过 2 倍)且速度下降时,才收缩
											nextChunk = chunk * 0.8;
										} else {
											// 稳定期
											nextChunk = chunk;
										}

										chunk = Math.max(minChunk, Math.min(maxChunk, chunk * 0.7 + nextChunk * 0.3));
										chunk = Math.floor(chunk);

										status.results.push({ index: _index, data: res });
										res = null;
										break;
									} catch (e) {
										await new Promise(r => setTimeout(r, 1000 * attempt));
										attempt++;
										if (attempt > maxRetry) throw e;
									} finally {
										// 释放线程计数
										status.active--;
										this.download.active--;
									}
								}
							}
						};

						// 启动当前任务的并发线程,单任务最高 3 个
						var maxThreads = Math.min(extra.thread || 3, 3);
						await Promise.all(Array(maxThreads).fill(0).map(worker));

						if (status.aborted) return;
						if (!status.aborted && typeof extra?.onProgress === "function") extra.onProgress(100, size, size);

						await new Promise(resolve => setTimeout(resolve, 0));
						status.results.sort((a, b) => a.index - b.index);

						// 分段提取数据
						async function getBlobData(results) {
							var dataList = [];
							var batchSize = 100; // 每处理 100 个分块释放一次主线程
							for (let i = 0; i < results.length; i++) {
								dataList.push(results[i].data);
								if (i % batchSize === 0) {
									await new Promise(resolve => setTimeout(resolve, 0));
								}
							}
							return dataList;
						};

						var finalData = await getBlobData(status.results);
						status.results = null; // 释放内存引用

						resolve({
							status: 200,
							statusText: "Ok!",
							readyState: 4,
							response: new Blob(finalData),
							finalUrl: url
						});
					} else {
						// 不支持 Range,回退
						var xhr = base.xmlHttpRequest({
							url: url, headers, method: "GET", responseType: "blob",
							onprogress: (progress) => {
								if (!status.aborted && typeof extra?.onProgress === "function") extra.onProgress((progress.loaded * 100 / progress.total), progress.loaded, progress.total);
							},
							onload: (load) => resolve(load),
							onerror: (error) => reject(error)
						});
						status.requests.add(xhr);
					}
				} catch (e) {
					status.aborted = true;
					reject(e);
				} finally {
					this.download.taskCount--; // 无论成功失败,任务退出
				}
			});

			promise.abort = () => {
				status.aborted = true;
				status.requests.forEach(xhr => xhr?.abort?.());
				status.requests.clear();
				status.results = null;
			};

			if (extra.index) temp.request[extra.index] = promise;
			return promise;
		},

		/**
		 * Aria2 RPC 服务测试
		 * @author hmjz100
		 * @description 验证 `JSON-RPC` 接口可用性
		 * @param {String} domain - 服务域名
		 * @param {String} port - 服务端口
		 * @param {String} path - RPC 路径
		 * @param {String} token - 认证令牌
		 * @returns {Promise<"success"|"fail">} 连接状态结果
		 */
		async testConnectToAria2(domain, port, path, token) {
			return new Promise((resolve, reject) => {
				let rpc = { domain, port, path, token };
				let url = `${rpc.domain}:${rpc.port}${rpc.path}`;
				let rpcData = {
					id: new Date().getTime(),
					jsonrpc: "2.0",
					method: "aria2.getVersion",
					params: [`token:${rpc.token}`]
				};
				base.xmlHttpRequest({
					method: "POST", url, headers: {}, data: JSON.stringify(rpcData),
					responseType: "json",
					onloadstart() {
						base.console.log("【LinkSwift】Post(start) Aria2Test\n请求地址:" + url + "\n请求内容:", rpcData);
					},
					onload: function (res) {
						base.console.log("【LinkSwift】Post(load) Aria2Test\n请求地址:" + url + "\n请求结果:", res);
						if (!res.response) return resolve("fail");
						if (res.response?.error) {
							resolve("fail");
						} else {
							resolve("success");
						}
					},
					onerror: function (err) {
						base.console.error("【LinkSwift】Post(error) Aria2Test\n请求失败", err);
						resolve("fail");
					},
				});
			});
		},

		/**
		 * AB Download Manager RPC 服务测试
		 * @author hmjz100
		 * @description 验证 `JSON-RPC` 接口可用性
		 * @param {String} domain - 服务域名
		 * @param {String} port - 服务端口
		 * @returns {Promise<"success"|"fail">} 连接状态结果
		 */
		async testConnectToABDM(domain, port) {
			return new Promise((resolve, reject) => {
				let rpc = { domain, port };
				let url = `${rpc.domain}:${rpc.port}/ping`;
				base.xmlHttpRequest({
					method: "POST", url, headers: {}, data: new Date().getTime(),
					responseType: "text",
					onloadstart() {
						base.console.log("【LinkSwift】Post(start) ABDMTest\n请求地址:" + url + "\n请求内容:", new Date().getTime());
					},
					onload: function (res) {
						base.console.log("【LinkSwift】Post(load) ABDMTest\n请求地址:" + url + "\n请求结果:", res);
						if (!res.response || res.response !== "pong") return resolve("fail");
						resolve("success");
					},
					onerror: function (err) {
						base.console.error("【LinkSwift】Post(error) ABDMTest\n请求失败", err);
						resolve("fail");
					},
				});
			});
		},

		/**
		 * 重置请求相关数据
		 * @author 油小猴
		 * @description 中止所有进行中的请求,清除进度记录和定时器
		 */
		_resetAllData() {
			temp.links = [];
			$.each(temp.request, function (key) {
				(temp.request[key]).abort();
			});
			temp.request = {};
		},

		/**
		 * 重置请求相关数据
		 * @author 油小猴
		 * @description 中止指定的进行中的请求,清除进度记录和定时器
		 */
		_resetData(i) {
			temp.request[i] && temp.request[i].abort();
		},

		/**
		 * 将对象转换为 URL 编码字符串
		 * @author 油小猴
		 * @description 递归处理嵌套数组,自动进行 URI 编码
		 * @param {Object} obj - 待转换的键值对对象
		 * @returns {String} URL 编码格式字符串(如`key1=value1&key2=value2`)
		 */
		stringify(obj) {
			let str = "";
			for (let key in obj) {
				if (obj.hasOwnProperty(key)) {
					let value = obj[key];
					if (Array.isArray(value)) {
						for (let i = 0; i < value.length; i++) {
							str += encodeURIComponent(key) + "=" + encodeURIComponent(value[i]) + "&";
						}
					} else {
						str += encodeURIComponent(key) + "=" + encodeURIComponent(value) + "&";
					}
				}
			}
			return str.slice(0, -1); // 去掉末尾的 "&"
		},

		/**
		 * 动态注入样式表
		 * @author 油小猴
		 * @author hmjz100
		 * @description 支持 `样式标签` `外链CSS` 注入,提供精准的 DOM 定位和插入位置控制
		 * @param {String} id - 样式元素 ID
		 * @param {"style"|"link"} tag - 标签类型(`style` 或 `link`)
		 * @param {String} css - CSS 内容或外链 URL
		 * @param {String} [element=".{mount}"] - 定位基准元素选择器
		 * @param {"before"|"after"|"prepend"|"append"} [position="append"] - 插入位置
		 */
		addStyle(id, tag = "style", css, element = `.${mount}`, position = "append") {
			base.waitForKeyElements(element, (element) => {
				let $styleDom = $(`[${mount}="${id}"], #${id}`);
				let $style = $(`<${tag}>`, {
					rel: "stylesheet",
					id: id,
					[mount]: id
				});
				tag === "style" ? $style.html(css.trim().replace(/\t/g, "").replace(/\r\n|\n\r|\n|\r/g, "\n").replace(/\n+/g, "\n")) : $style.attr("href", css);
				if ($styleDom.length) {
					$styleDom.replaceWith($style);
					base.console.log($style[0])
					return true;
				}
				if (position === "before") {
					element.before($style);
				} else if (position === "after") {
					element.after($style);
				} else if (position === "prepend") {
					element.prepend($style);
				} else {
					element.append($style);
				}
				// return true;
			}, true);
		},

		/**
		 * 十六进制颜色转 RGBA
		 * @author hmjz100
		 * @description 支持 4 位和 8 位十六进制格式,自动解析透明度通道
		 * @param {String} hex - 十六进制颜色值(如 `#09f` 或 `#0099ffaa` )
		 * @returns {String} RGBA 格式字符串(如 `15, 170, 255, 0.67`)
		 */
		hexToRgba(hex) {
			// 去掉 # 号
			hex = hex.replace(/^#/, "");
			// 如果是四位十六进制颜色值,转换为八位
			if (hex.length === 4) {
				hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2] + hex[3] + hex[3];
			}
			// 解析 RGB 分量
			let r = parseInt(hex.substring(0, 2), 16);
			let g = parseInt(hex.substring(2, 4), 16);
			let b = parseInt(hex.substring(4, 6), 16);
			let a = "";
			// 如果是八位十六进制颜色值,解析 alpha 通道
			if (hex.length === 8) {
				a = parseInt(hex.substring(6, 8), 16) / 255; // 将 alpha 值转换为 0 到 1 之间的小数
				a = "," + a
			}
			// 返回 rgba 格式字符串
			return r + ", " + g + ", " + b + a;
		},

		/**
		 * RGBA 颜色转十六进制
		 * @author hmjz100
		 * @description 支持透明度转换,自动补全缩写格式
		 * @param {String} rgba - RGBA 格式颜色值(如 `rgba(15,170,255,0.67)`)
		 * @returns {String} 十六进制颜色值(如 `#09aaffaa`)
		 */
		rgbaToHex(rgba) {
			// 去掉前缀 "rgba" 或 "rgb" 并移除空格
			rgba = rgba.replace(/^(rgba?|RGBA?)\(/, "").replace(/\s+/g, "").replace(")", "");
			// 将颜色值分割为数组
			let [r, g, b, a] = rgba.split(",");
			// 将 RGB 转换为十六进制
			r = parseInt(r).toString(16).padStart(2, "0");
			g = parseInt(g).toString(16).padStart(2, "0");
			b = parseInt(b).toString(16).padStart(2, "0");
			// 如果存在 alpha 通道,处理透明度值
			if (a !== undefined) {
				// 将 alpha 转换为 0 到 255 的十六进制
				a = Math.round(parseFloat(a) * 255).toString(16).padStart(2, "0");
				return `#${r}${g}${b}${a}`;
			}
			// 如果没有 alpha 通道,返回标准六位的十六进制颜色
			return `#${r}${g}${b}`;
		},

		/**
		 * 自适应样式颜色替换器
		 * @author hmjz100
		 * @description 支持全局样式替换和资源路径修正,处理颜色渐变过渡效果等
		 * @param {String} cssText - 原始 CSS 内容
		 * @param {String} baseURI - 资源基础路径
		 * @param {"default"|"other"} type - 替换模式(默认模式包含过渡效果)
		 * @param {Array<[String, String]>} colorMap - 颜色映射表(旧颜色 → 新颜色)
		 * @returns {String} 处理后的 CSS 内容
		 */
		adaptiveStyleOverride(cssText, baseURI, type, colorMap) {
			if (!cssText) return "";
			if (baseURI) {
				// 替换相对路径资源为绝对路径
				cssText = cssText.replace(/url\s*\(\s*(['"]?)(.*?)\1\s*\)/g, (match, quote, url) => {
					if (url && !/^(data:|https?:|\/\/)/i.test(url)) {
						try {
							let absoluteURL = new URL(url, baseURI).href;
							return `url(${absoluteURL})`;
						} catch (e) {
							return match;
						}
					}
					return match;
				});
			}
			// 处理默认颜色列表
			config.base.dom.themes.forEach(item => {
				let oldColor = item.color;
				cssText = cssText.replace(new RegExp(base.hexToRgba(oldColor), "ig"), base.hexToRgba(temp.color));
				cssText = cssText.replace(new RegExp(oldColor, "ig"), temp.color);
			});
			// 处理 colorMap
			if (type === "other") {
				colorMap.forEach(function (colorPair) {
					let oldColor = colorPair[0];
					let newColor = colorPair[1];
					// 生成旧颜色的三种形式:原样、全大写、全小写
					var variants = [
						oldColor,
						oldColor.toUpperCase(),
						oldColor.toLowerCase()
					];
					// 使用 Set 去重
					var uniqueVariants = [...new Set(variants)];
					uniqueVariants.forEach(variant => {
						var regex = new RegExp(variant, "g");
						cssText = cssText.replace(regex, newColor);
					});
				});
				return cssText;
			}
			if (colorMap) {
				colorMap.forEach(function (colorPair) {
					let oldColor = colorPair[0];
					let newColor = colorPair[1];
					// 生成三种形式
					var variants = [
						oldColor,
						oldColor.toUpperCase(),
						oldColor.toLowerCase()
					];
					var uniqueVariants = [...new Set(variants)];
					if (oldColor.includes("#")) {
						// 替换带属性块的情况(添加 transition)
						uniqueVariants.forEach(variant => {
							var regexWithBlock = new RegExp(variant + "(.*?)}", "gi");
							cssText = cssText.replace(regexWithBlock, newColor + "$1; transition:all.2s}");
						});
						// 最后再统一替换剩下的
						uniqueVariants.forEach(variant => {
							cssText = cssText.replace(new RegExp(variant, "gi"), newColor);
						});
					} else {
						// 普通字符串替换
						uniqueVariants.forEach(variant => {
							cssText = cssText.replace(new RegExp(variant, "gi"), newColor);
						});
					}
				});
			}
			return cssText;
		},

		/**
		 * 自适应全局主题颜色修改器
		 * @author hmjz100
		 * @description 自动遍历并替换 `页面所有样式表` `SVG 元素` 的颜色值
		 * @param {Array<[String, String]>} colorMap - 颜色映射表
		 * @param {"default"|"other"} type - 替换模式
		 */
		adaptiveThemeOverride(colorMap, type) {
			base.waitForKeyElements(`[${mount}^="${mount}-ColorUI-"], [id^="${mount}-ColorUI-"]`, function (tag) {
				if (tag.html() === base.adaptiveStyleOverride(tag.text(), "", type, colorMap)) return;
				let cssText = base.adaptiveStyleOverride(tag.text(), "", type, colorMap);
				base.addStyle(tag.attr(mount), "style", cssText, tag[0]);
				return true;
			}, true)
			base.waitForKeyElements(`[data-pl-colored]`, function (tag) {
				if (tag.attr("data-pl-colored") === temp.color) return;
				let originalStyle = tag.attr("style");
				if (!originalStyle) return;
				let newStyle = base.adaptiveStyleOverride(originalStyle, "", type, colorMap);
				if (newStyle !== originalStyle) {
					tag.attr("style", newStyle);
				}
				return true;
			}, true);
			let count = 0;
			if (!temp.colored) {
				base.waitForKeyElements(`link[rel="stylesheet"]`, function (tag) {
					if (!tag.parent().length || !tag.attr("href")) return;
					let href = tag.attr("href");
					try {
						href = new URL(href, location.href).href;
					} catch (e) {
						return;
					}
					fetch(href)
						.then(response => response.text())
						.then(responseText => {
							let id = `${mount}-ColorUI-` + href.replace(/[^\w]/g, "_");
							let cssText = base.adaptiveStyleOverride(responseText, href, type, colorMap);
							if (responseText === base.adaptiveStyleOverride(responseText, href, type, colorMap)) return;
							base.addStyle(id, "style", cssText, tag[0], "after");
						})
				}, true);
				base.waitForKeyElements(`style:not([${mount}^="${mount}-"],[id^="swal-pub"],[class^="darkreader"])`, function (tag) {
					let id = tag.attr(mount);
					let text = tag.html()
					if (tag.data("styles") === text) return;
					tag.data("styles", text);
					// 替换颜色并添加样式
					let cssText = base.adaptiveStyleOverride(text, "", type, colorMap);
					if (text === cssText) return;
					id = id ? id : `${mount}-ColorUI-${count++}`
					base.addStyle(id, "style", cssText, tag[0], "after");
				}, true)
				base.waitForKeyElements("svg", function (element) {
					element.find("*").each((index, element) => {
						let fill = $(element).attr("fill");
						let stroke = $(element).attr("stroke");
						if (fill) {
							let newFill = base.adaptiveStyleOverride(fill, "", type, colorMap);
							if (newFill !== fill) {
								$(element).attr("fill", newFill);
							}
						}
						if (stroke) {
							let newStroke = base.adaptiveStyleOverride(stroke, "", type, colorMap);
							if (newStroke !== stroke) {
								$(element).attr("stroke", newStroke);
							}
						}
					});
				}, true);
				base.waitForKeyElements(`[style]:not([${mount}^="${mount}-"],[class*="listener-"])`, function (element) {
					if (element.parent(`[class*="pl-"]`).length) return;
					if (element.attr("data-pl-colored") === temp.color) return;
					let originalStyle = element.attr("style");
					if (!originalStyle) return;
					let newStyle = base.adaptiveStyleOverride(originalStyle, "", type, colorMap);
					if (newStyle !== originalStyle) {
						element.attr("style", newStyle);
						element.attr("data-pl-colored", temp.color);
					}
				}, true);
				temp.colored = true;
			}
		},

		/**
		 * 延时执行
		 * @author 油小猴
		 * @description 仅可于 `async` 函数中执行,否则无法倒计时。
		 * @param {Number} time - 等待时间(毫秒)
		 * @returns {Promise<void>} 延时完成的 `Promise`
		 */
		sleep(time) {
			return new Promise(resolve => setTimeout(resolve, time));
		},

		/**
		 * 判断版本号新旧
		 * @author hmjz100
		 * @description 该函数将版本号按 `.` 分割为数字数组,逐段比较大小。
		 * 若某段 a 的数字大于 b,则 a 更新;
		 * 若所有段均相等,则版本相等(返回 false)。
		 * @param {String} a - 待比较的版本号
		 * @param {String} b - 基准版本号(如 "1.0.9.7")
		 * @returns {Boolean} - 若 a 比 b 更新,返回 true;否则返回 false
		 */
		isNewerVersion(a, b) {
			let partsA = a.split(".").map(Number);
			let partsB = b.split(".").map(Number);
			let maxLength = Math.max(partsA.length, partsB.length);
			for (let i = 0; i < maxLength; i++) {
				let numA = partsA[i] || 0;
				let numB = partsB[i] || 0;
				if (numA > numB) return true;
				if (numA < numB) return false;
			}
			return false;
		},

		/**
		 * 提取版本号主版本
		 * @author 油小猴
		 * @param {String} version - 完整版本号(如 `1.2.3`)
		 * @returns {String|null} 主版本号(如 `1`)或 `null`(格式错误时)
		 */
		getMajorVersion(version) {
			let [major] = (version || "").split(".");
			return /^\d+$/.test(major) ? major : null;
		},

		/**
		 * 查找 React 组件实例
		 * @author 油小猴
		 * @description 支持 Fiber 架构遍历,可指定向上查找层级
		 * @param {HTMLElement} dom - 起始 DOM 元素
		 * @param {Number} [traverseUp=0] - 向上遍历层级
		 * @returns {Object|null} React 组件实例或 `null`
		 */
		findReact(dom, traverseUp = 0) {
			let key = Object.keys(dom).find(key => {
				return key.startsWith("__reactFiber$")
					|| key.startsWith("__reactInternalInstance$");
			});
			let domFiber = dom[key];
			if (domFiber == null) return null;
			if (domFiber._currentElement) {
				let compFiber = domFiber._currentElement._owner;
				for (let i = 0; i < traverseUp; i++) {
					compFiber = compFiber._currentElement._owner;
				}
				return compFiber._instance;
			}
			let GetCompFiber = fiber => {
				let parentFiber = fiber.return;
				while (base.isType(parentFiber.type) == "string") {
					parentFiber = parentFiber.return;
				}
				return parentFiber;
			};
			let compFiber = GetCompFiber(domFiber);
			for (let i = 0; i < traverseUp; i++) {
				compFiber = GetCompFiber(compFiber);
			}
			return compFiber.stateNode || compFiber;
		},

		/**
		 * 深拷贝
		 * @author hmjz100
		 * @description 完全复制某个东西
		 */
		clone(value) {
			try {
				if (this.isType(structuredClone) === "function") return structuredClone(value);
			} catch {
				if (value === null || value === undefined) return value;
				if (typeof value !== 'object') return value;
				if (value instanceof Date) return new Date(value);
				if (value instanceof RegExp) return new RegExp(value);
				if (Array.isArray(value)) return value.map(item => base.clone(item));
				const result = {};
				for (const key in value) {
					if (Object.prototype.hasOwnProperty.call(value, key)) result[key] = base.clone(value[key]);
				}
				return result;
			}
		},

		/**
		 * 迁移旧版本配置
		 * @author hmjz100
		 * @description 将旧版配置项目迁移到新版配置
		 */
		initConfigMigration(latest) {
			try {
				if (latest === 1) {
					let mapping = {
						"setting_rpc_domain": ["setting_aria2_rpc", 0, "domain"],
						"setting_rpc_port": ["setting_aria2_rpc", 0, "port"],
						"setting_rpc_path": ["setting_aria2_rpc", 0, "path"],
						"setting_rpc_token": ["setting_aria2_rpc", 0, "token"],
						"setting_rpc_dir": ["setting_aria2_rpc", 0, "dir"],
						"setting_terminal_type": ["setting_curl_terminal"],
						"setting_init_code": ["setting_init", "code"],
						"setting_init_license": ["setting_init", "license"],
						"setting_init_version": ["setting_init", "version"],
						"setting_theme_color": ["setting_ui_theme", "color"],
						"setting_theme_baidu": ["setting_ui_theme", "custom", "$baidu"],
						"setting_theme_ali": ["setting_ui_theme", "custom", "$aliyun"],
						"setting_theme_mcloud": ["setting_ui_theme", "custom", "$mcloud"],
						"setting_theme_tcloud": ["setting_ui_theme", "custom", "$tcloud"],
						"setting_theme_xunlei": ["setting_ui_theme", "custom", "$xunlei"],
						"setting_theme_quark": ["setting_ui_theme", "custom", "$quark"],
						"setting_theme_uc": ["setting_ui_theme", "custom", "$uc"],
						"setting_theme_123": ["setting_ui_theme", "custom", "$123pan"]
					};
					// 旧版配置执行迁移
					for (let oldKey in mapping) {
						let val = base.getValue(oldKey);
						if (val === undefined || val === null) continue;
						val = (val === "no" ? false : val === "yes" ? true : val);
						let path = mapping[oldKey];
						if (path.length === 1) {
							base.setValue(path[0], val);
						} else {
							let [root, ...keys] = path;
							let obj = base.getValue(root);
							if (obj === undefined || obj === null) {
								let firstKeyType = typeof keys[0];
								let isIndex = firstKeyType === "number" || (firstKeyType === "string" && /^\d+$/.test(keys[0]));
								obj = isIndex ? [] : {};
							}
							let ref = obj;
							for (let i = 0; i < keys.length - 1; i++) {
								let key = keys[i];
								if (!ref[key]) {
									let nextKey = keys[i + 1];
									let hasNextIndex = nextKey !== undefined && (base.isType(nextKey === "number" || (typeof nextKey) === "string" && /^\d+$/.test(nextKey)));
									ref[key] = hasNextIndex ? [] : {};
								}
								ref = ref[key];
							}
							ref[keys.slice(-1)[0]] = val;
							base.setValue(root, obj);
						}
						base.delValue(oldKey);
					}
				}
			} catch (e) {
				base.console.error("【LinkSwift】迁移旧版本配置到新配置时出错", e);
			}
		},

		/**
		 * 初始化默认配置
		 * @author 油小猴
		 * @author hmjz100
		 * @description 创建基础配置、主题设置等存储项(仅当不存在时)
		 */
		initDefaultConfig() {
			if (base.getValue("setting_config_version") !== "1") base.initConfigMigration(1);
			// 设置新结构的默认值(仅当未设置时)
			let defaults = [
				{
					name: "setting_idm_rpc",
					value: [
						{
							id: "1",
							default: true
						}
					]
				},
				{
					name: "setting_aria2_rpc",
					value: [
						{
							domain: "http://localhost",
							port: "16800",
							path: "/jsonrpc",
							token: "",
							dir: "",
							default: true
						}
					]
				},
				{
					name: "setting_bitcomet_rpc",
					value: [
						{
							domain: "http://localhost",
							port: "8080",
							path: "/panel/task_add_httpftp_result",
							authName: "",
							authPass: "",
							dir: "",
							default: true
						}
					]
				},
				{
					name: "setting_abdm_rpc",
					value: [
						{
							domain: "http://localhost",
							port: "15151",
							dir: "",
							default: true
						}
					]
				},
				{
					name: "setting_curl_terminal",
					value: "wc"
				},
				{
					name: "setting_init",
					value: {
						code: "",
						license: "",
						version: ""
					}
				},
				{
					name: "setting_ui_theme",
					value: {
						color: "#574AB8",
						custom: {
							$baidu: false,
							$aliyun: false,
							$mcloud: false,
							$tcloud: false,
							$xunlei: false,
							$quark: false,
							$uc: false,
							$123pan: false
						}
					}
				},
				{
					name: "setting_config_version",
					value: "1"
				}
			];
			function cloneDeep(item) {
				return JSON.parse(JSON.stringify(item));
			}
			function fillMissingFields(target, source) {
				// 如果 target 不存在,直接返回 source 的深拷贝
				if (target === null || target === u
Download .txt
gitextract_r264j1ue/

├── .github/
│   ├── CODE_OF_CONDUCT.md
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.yml
│   │   ├── config.yml
│   │   └── feature_request.yml
│   └── contributing.md
├── LICENSE
├── README-ScriptCat.md
├── README.md
├── config/
│   ├── ali.json
│   ├── config.json
│   ├── quark.json
│   ├── tianyi.json
│   ├── xunlei.json
│   └── yidong.json
├── (改)百度网盘会员青春版.user.js
└── (改)网盘直链下载助手.user.js
Download .txt
SYMBOL INDEX (159 symbols across 1 files)

FILE: (改)网盘直链下载助手.user.js
  method registerMenuCommand (line 423) | registerMenuCommand() {
  method isType (line 448) | isType(obj) {
  method getValue (line 458) | getValue(name) {
  method setValue (line 468) | setValue(path, value) {
  method delValue (line 490) | delValue(key) {
  method getStorage (line 501) | getStorage(key) {
  method setStorage (line 516) | setStorage(key, value) {
  method delStorage (line 529) | delStorage(key) {
  method setClipboard (line 538) | setClipboard(text) {
  method encodeBase (line 550) | encodeBase(str) {
  method decodeBase (line 563) | decodeBase(str) {
  method timeFormat (line 577) | timeFormat(i) {
  method getExtension (line 591) | getExtension(name) {
  method sizeFormat (line 607) | sizeFormat(value = 0) {
  method rtimeFormat (line 651) | rtimeFormat(remainingTimeSeconds) {
  method sortByName (line 682) | sortByName(arr) {
  method fixFilename (line 699) | fixFilename(name) {
  method standHeaders (line 712) | standHeaders(headers = {}, addDeafult = false) {
  method convertLinkToCurl (line 751) | convertLinkToCurl(link, filename, headers) {
  method convertLinkToAria2 (line 767) | convertLinkToAria2(link, filename, headers) {
  method convertLinkToBitComet (line 782) | convertLinkToBitComet(link, filename, headers) {
  method sendLinkToIDM (line 798) | async sendLinkToIDM(link, filename, filesize, headers = {}) {
  method sendLinkToAria2 (line 860) | async sendLinkToAria2(link, filename, headers) {
  method sendLinkToBitcomet (line 903) | async sendLinkToBitcomet(link, filename, headers) {
  method sendLinkToABDM (line 955) | async sendLinkToABDM(link, filename, headers) {
  method blobDownload (line 999) | blobDownload(blob, filename) {
  method xmlHttpRequest (line 1018) | xmlHttpRequest(option) {
  method post (line 1036) | async post(url, data, headers, type = "json") {
  method get (line 1099) | async get(url, headers, type = "json") {
  method head (line 1149) | async head(url, headers, usingGET) {
  method getFinal (line 1215) | getFinal(url, headers = {}, usingGET = false, returnURL = true) {
  method download (line 1239) | async download(url, headers, extra) {
  method testConnectToAria2 (line 1457) | async testConnectToAria2(domain, port, path, token) {
  method testConnectToABDM (line 1498) | async testConnectToABDM(domain, port) {
  method _resetAllData (line 1526) | _resetAllData() {
  method _resetData (line 1539) | _resetData(i) {
  method stringify (line 1550) | stringify(obj) {
  method addStyle (line 1578) | addStyle(id, tag = "style", css, element = `.${mount}`, position = "appe...
  method hexToRgba (line 1612) | hexToRgba(hex) {
  method rgbaToHex (line 1640) | rgbaToHex(rgba) {
  method adaptiveStyleOverride (line 1669) | adaptiveStyleOverride(cssText, baseURI, type, colorMap) {
  method adaptiveThemeOverride (line 1750) | adaptiveThemeOverride(colorMap, type) {
  method sleep (line 1837) | sleep(time) {
  method isNewerVersion (line 1851) | isNewerVersion(a, b) {
  method getMajorVersion (line 1870) | getMajorVersion(version) {
  method findReact (line 1883) | findReact(dom, traverseUp = 0) {
  method clone (line 1916) | clone(value) {
  method initConfigMigration (line 1938) | initConfigMigration(latest) {
  method initDefaultConfig (line 2004) | initDefaultConfig() {
  method showSetting (line 2169) | showSetting(event) {
  method showIDMSetting (line 2223) | showIDMSetting(event) {
  method showAria2Setting (line 2293) | showAria2Setting(event) {
  method showBitcometSetting (line 2366) | showBitcometSetting(event) {
  method showABDMSetting (line 2442) | showABDMSetting(event) {
  method showBeautify (line 2509) | showBeautify() {
  method showDebug (line 2572) | showDebug() {
  method showUpdate (line 2600) | async showUpdate() {
  method createTip (line 3135) | createTip() {
  method createLoading (line 3244) | createLoading() {
  method createIframe (line 3254) | createIframe() {
  method generateDOM (line 3267) | generateDOM(configs) {
  method getMirrorList (line 3417) | getMirrorList(link, mirror, thread = 2) {
  method addPageListener (line 3439) | addPageListener() {
  method addPanLinkerStyle (line 3727) | addPanLinkerStyle() {
  method showInitDialog (line 4670) | async showInitDialog() {
  method showMainDialog (line 4768) | showMainDialog(title, html, footer) {
  method waitForKeyElements (line 4805) | waitForKeyElements(selectorElem, actionFunction, bWaitOnce, iframeSelect...
  method _EventFactory (line 4872) | _EventFactory(event) {
  method getToken (line 4893) | async getToken() {
  method getShareData (line 4937) | async getShareData() {
  method addPageListener (line 4967) | addPageListener() {
  method greenerPage (line 5138) | greenerPage() {
  method beautifyPage (line 5324) | beautifyPage() {
  method addButton (line 5528) | addButton() {
  method addInitButton (line 5611) | addInitButton() {
  method getFilesUrl (line 5646) | async getFilesUrl(items, token) {
  method getShareFilesUrl (line 5708) | async getShareFilesUrl(items, sData) {
  method getFilesList (line 5773) | async getFilesList(dirs, accessToken, proc = 0) {
  method getLink (line 5802) | async getLink() {
  method getSelectedList (line 5875) | getSelectedList() {
  method detectPage (line 5896) | detectPage() {
  method initPanLinker (line 5904) | async initPanLinker() {
  method initPanLinker (line 5915) | async initPanLinker() {
  method addPageListener (line 6052) | addPageListener() {
  method greenerPage (line 6230) | greenerPage() {
  method beautifyPage (line 6250) | beautifyPage() {
  method addButton (line 6266) | addButton() {
  method addInitButton (line 6301) | addInitButton() {
  method getLink (line 6317) | async getLink() {
  method getFilesUrl (line 6366) | async getFilesUrl(items, token) {
  method getSelectedList (line 6419) | getSelectedList() {
  method detectPage (line 6440) | detectPage() {
  method initPanLinker (line 6446) | async initPanLinker() {
  method addPageListener (line 6463) | addPageListener() {
  method greenerPage (line 6622) | greenerPage() {
  method beautifyPage (line 6663) | beautifyPage() {
  method addButton (line 6673) | addButton() {
  method addInitButton (line 6707) | addInitButton() {
  method getRandomString (line 6723) | getRandomString(len) {
  method utob (line 6733) | utob(str) {
  method getSign (line 6744) | getSign(e, t, a, n) {
  method getFileUrl (line 6760) | async getFileUrl(item, index) {
  method getFilesUrl (line 6839) | async getFilesUrl(items, token) {
  method getLink (line 6842) | async getLink() {
  method getSelectedList (line 6882) | getSelectedList() {
  method detectPage (line 6900) | detectPage() {
  method initPanLinker (line 6906) | async initPanLinker() {
  method addPageListener (line 6923) | addPageListener() {
  method greenerPage (line 7073) | greenerPage() {
  method beautifyPage (line 7081) | beautifyPage() {
  method addButton (line 7097) | addButton() {
  method addInitButton (line 7131) | addInitButton() {
  method getToken (line 7146) | async getToken() {
  method getFileUrl (line 7156) | async getFileUrl(item, index, token) {
  method getLink (line 7204) | async getLink() {
  method getSelectedList (line 7248) | getSelectedList() {
  method detectPage (line 7255) | detectPage() {
  method initPanLinker (line 7261) | async initPanLinker() {
  method addPageListener (line 7279) | addPageListener() {
  method beautifyPage (line 7439) | beautifyPage() {
  method addButton (line 7455) | addButton() {
  method addInitButton (line 7489) | addInitButton() {
  method getToken (line 7504) | getToken() {
  method getFileUrl (line 7525) | async getFileUrl(item, index, token) {
  method getLink (line 7552) | async getLink() {
  method getSelectedList (line 7593) | getSelectedList() {
  method detectPage (line 7605) | detectPage() {
  method initPanLinker (line 7611) | async initPanLinker() {
  method addPageListener (line 7628) | addPageListener() {
  method greenerPage (line 7796) | greenerPage() {
  method beautifyPage (line 7839) | beautifyPage() {
  method addButton (line 7855) | addButton() {
  method addInitButton (line 7900) | addInitButton() {
  method getLink (line 7918) | async getLink() {
  method getSelectedList (line 8022) | getSelectedList() {
  method detectPage (line 8043) | detectPage() {
  method initPanLinker (line 8049) | async initPanLinker() {
  method addPageListener (line 8066) | addPageListener() {
  method greenerPage (line 8227) | greenerPage() {
  method beautifyPage (line 8240) | beautifyPage() {
  method addButton (line 8256) | addButton() {
  method addInitButton (line 8300) | addInitButton() {
  method getLink (line 8316) | async getLink() {
  method getSelectedList (line 8420) | getSelectedList() {
  method detectPage (line 8441) | detectPage() {
  method initPanLinker (line 8447) | async initPanLinker() {
  method addPageListener (line 8464) | addPageListener() {
  method greenerPage (line 8614) | greenerPage() {
  method beautifyPage (line 8741) | beautifyPage() {
  method getToken (line 8769) | getToken() {
  method getLink (line 8775) | async getLink() {
  method getFileUrl (line 8851) | async getFileUrl(item, index, token, ShareKey) {
  method getSelectedList (line 8881) | getSelectedList() {
  method addButton (line 8904) | addButton() {
  method addInitButton (line 8964) | addInitButton() {
  method detectPage (line 8996) | detectPage() {
  method initPanLinker (line 9002) | async initPanLinker() {
  method init (line 9015) | async init() {
  function idontknow (line 9126) | function idontknow(input) {
Condensed preview — 16 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (732K chars).
[
  {
    "path": ".github/CODE_OF_CONDUCT.md",
    "chars": 1647,
    "preview": "# 贡献者公约 & 行为准则\n\n## 我们的承诺\n\n我们作为成员、贡献者和领导者承诺,让社区参与者免遭骚扰,无论其年龄、体型、可见或不可见的残疾、族裔、性征、性别认同和表达、经验水平、教育程度、社会地位、国籍、外貌、种族、宗教或性取向如何。"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "chars": 3100,
    "preview": "name: 错误报告\ndescription: 反馈发现的 Bug、问题……\ntitle: \"[错误报告] 请修改我为您的问题\"\nlabels: [\"bug/漏洞\"]\nassignees:\n  - hmjz100\nbody:\n  - typ"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "chars": 156,
    "preview": "blank_issues_enabled: false\ncontact_links:\n  - name: 问题和讨论\n    url: https://github.com/hmjz100/LinkSwift/discussions\n   "
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.yml",
    "chars": 1493,
    "preview": "name: 功能请求\ndescription: 请求新功能\ntitle: \"[功能请求] 请修改我为您的问题\"\nlabels: [\"enhancement/新功能\"]\nassignees:\n  - hmjz100\nbody:\n  - typ"
  },
  {
    "path": ".github/contributing.md",
    "chars": 539,
    "preview": "# 贡献指南\n\n## 开发环境\n\n编者的环境如下:\n\n- 开发工具  \nVisual Studio Code、Github Desktop、Git\n\n- AI 辅助(按常用排序,纯聊天,无助理)  \nGoogle/Gemini(VSCode"
  },
  {
    "path": "LICENSE",
    "chars": 34523,
    "preview": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C)"
  },
  {
    "path": "README-ScriptCat.md",
    "chars": 17733,
    "preview": "<details>\n<summary>【置顶】【Q&A】为啥本脚本不能破解百度网盘限速?其他脚本又能?</summary>\n<p><br/>在本站,您可能见过某些宣称 “无限制下载” “不限速解析” “无视黑号” 的脚本,安装后,却又要求完"
  },
  {
    "path": "README.md",
    "chars": 12801,
    "preview": "> [!IMPORTANT]\n> 如果您是从 GreasyFork 找到这的,建议前往下方的 [安装](#安装) 选择一个合适的源覆盖安装,避免因脚本失效或 GF 黑产刷子导致无法及时更新。\n\n![LinkSwift](https://so"
  },
  {
    "path": "config/ali.json",
    "chars": 3943,
    "preview": "{\r\n\t\"code\": 200,\r\n\t\"tips\": \"这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用\",\r\n\t\"pcs\": {\r\n\t\t\"0\": \"https://api.aliy"
  },
  {
    "path": "config/config.json",
    "chars": 4400,
    "preview": "{\r\n\t\"code\": 200,\r\n\t\"tips\": \"这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用\",\r\n\t\"pcs\": {\r\n\t\t\"0\": \"https://pan.baid"
  },
  {
    "path": "config/quark.json",
    "chars": 3916,
    "preview": "{\r\n\t\"code\": 200,\r\n\t\"tips\": \"这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用\",\r\n\t\"pcs\": {\r\n\t\t\"0\": \"https://drive.qu"
  },
  {
    "path": "config/tianyi.json",
    "chars": 3839,
    "preview": "{\r\n\t\"code\": 200,\r\n\t\"tips\": \"这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用\",\r\n\t\"pcs\": {\r\n\t\t\"0\": \"https://cloud.18"
  },
  {
    "path": "config/xunlei.json",
    "chars": 11236,
    "preview": "{\r\n\t\"code\": 200,\r\n\t\"tips\": \"这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用\",\r\n\t\"pcs\": {\r\n\t\t\"0\": \"https://api-pan."
  },
  {
    "path": "config/yidong.json",
    "chars": 3799,
    "preview": "{\r\n\t\"code\": 200,\r\n\t\"tips\": \"这是一个油小猴服务器配置的备份文件,只在 (改)网盘直连下载助手 这个脚本无法访问油小猴的服务器时自动调用\",\r\n\t\"pcs\": {\r\n\t\t\"0\": \"https://yun.139."
  },
  {
    "path": "(改)百度网盘会员青春版.user.js",
    "chars": 6599,
    "preview": "// ==UserScript==\n// @name        (改)百度网盘会员青春版\n// @author      Hmjz100、Gwen\n// @namespace   github.com/hmjz100\n// @versi"
  },
  {
    "path": "(改)网盘直链下载助手.user.js",
    "chars": 553051,
    "preview": "// ==UserScript==\r\n// @name              LinkSwift\r\n// @namespace         github.com/hmjz100\r\n// @version           1.1."
  }
]

About this extraction

This page contains the full source code of the hmjz100/LinkSwift GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 16 files (647.2 KB), approximately 285.8k tokens, and a symbol index with 159 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!