Full Code of DIYgod/RSSHub-Radar for AI

dev 5cc44dc18a34 cached
79 files
1.2 MB
357.9k tokens
54 symbols
1 requests
Download .txt
Showing preview only (1,252K chars total). Download the full file or copy to clipboard to get everything.
Repository: DIYgod/RSSHub-Radar
Branch: dev
Commit: 5cc44dc18a34
Files: 79
Total size: 1.2 MB

Directory structure:
gitextract_39z2lr6o/

├── .github/
│   ├── dependabot.yml
│   └── workflows/
│       ├── release.yml
│       ├── submit.yml
│       └── test.yml
├── .gitignore
├── .prettierignore
├── .prettierrc.js
├── .prettierrc.mjs
├── LICENSE
├── README.md
├── components.json
├── package.json
├── postcss.config.js
├── public/
│   └── _locales/
│       ├── en/
│       │   └── messages.json
│       └── zh_CN/
│           └── messages.json
├── src/
│   ├── background/
│   │   ├── badge.ts
│   │   ├── index.ts
│   │   ├── messages/
│   │   │   ├── contentReady.ts
│   │   │   ├── popupReady.ts
│   │   │   ├── refreshRules.ts
│   │   │   ├── requestDisplayedRules.ts
│   │   │   ├── responseDisplayedRules.ts
│   │   │   └── responseRSS.ts
│   │   ├── rss.ts
│   │   ├── rules.ts
│   │   └── update-notifications.ts
│   ├── contents/
│   │   └── index.ts
│   ├── entrypoints/
│   │   ├── background.ts
│   │   ├── content.ts
│   │   ├── offscreen/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   ├── options/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   ├── popup/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   ├── preview/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   └── sandbox/
│   │       ├── index.html
│   │       └── main.ts
│   ├── lib/
│   │   ├── components/
│   │   │   ├── Accordion.tsx
│   │   │   ├── AppearanceSwitch.tsx
│   │   │   ├── Button.tsx
│   │   │   ├── Card.tsx
│   │   │   ├── Input.tsx
│   │   │   ├── Label.tsx
│   │   │   ├── Pagination.tsx
│   │   │   ├── Sheet.tsx
│   │   │   └── Switch.tsx
│   │   ├── config.ts
│   │   ├── hooks/
│   │   │   └── use-dark.ts
│   │   ├── messaging.ts
│   │   ├── offscreen.ts
│   │   ├── quick-subscriptions-logos.tsx
│   │   ├── quick-subscriptions.ts
│   │   ├── radar-rules.ts
│   │   ├── report.ts
│   │   ├── rss.ts
│   │   ├── rsshub.ts
│   │   ├── rules.ts
│   │   ├── storage.ts
│   │   ├── style.css
│   │   ├── types.ts
│   │   └── utils.ts
│   ├── options/
│   │   ├── Siderbar.tsx
│   │   ├── index.tsx
│   │   └── routes/
│   │       ├── About.tsx
│   │       ├── General.tsx
│   │       ├── Rules.tsx
│   │       └── index.tsx
│   ├── popup/
│   │   ├── RSSItem.tsx
│   │   ├── RSSList.tsx
│   │   └── index.tsx
│   ├── sandboxes/
│   │   └── index.ts
│   └── tabs/
│       ├── offscreen.tsx
│       ├── preview.tsx
│       └── sandboxes.ts
├── tailwind.config.js
├── tsconfig.json
└── wxt.config.ts

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

================================================
FILE: .github/dependabot.yml
================================================
version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "daily"
    open-pull-requests-limit: 20

  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      interval: "daily"
    open-pull-requests-limit: 20


================================================
FILE: .github/workflows/release.yml
================================================
name: release

on:
  push:
    tags:
      - "*"

env:
  WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI_ID }}
  WXT_UMAMI_URL: ${{ vars.WXT_UMAMI_URL || vars.PLASMO_PUBLIC_UMAMI_URL }}
  WXT_UMAMI_SAMPLE_RATE: ${{ vars.WXT_UMAMI_SAMPLE_RATE || vars.PLASMO_PUBLIC_UMAMI_SAMPLE_RATE }}

jobs:
  build:
    runs-on: macos-latest
    name: Build assets
    steps:
      - uses: actions/checkout@v4
      - name: Cache pnpm modules
        uses: actions/cache@v4
        with:
          path: ~/.pnpm-store
          key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-
      - uses: pnpm/action-setup@v3.0.0
        with:
          version: latest
          run_install: true
      - name: Use Node.js 22.x
        uses: actions/setup-node@v4.0.2
        with:
          node-version: 22.x
          cache: "pnpm"
      - name: Package the extension for Chrome
        run: pnpm zip
      - name: Package the extension for Firefox
        run: pnpm zip:firefox
      - name: Package the extension for Safari
        run: pnpm build:safari:zip
      - name: Upload file
        uses: xresloader/upload-to-github-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          file: "build/chrome-mv3-prod.zip;build/firefox-mv3-prod.zip;build/safari-mv3-prod.zip"
          tags: true
          draft: false


================================================
FILE: .github/workflows/submit.yml
================================================
name: "Submit to Web Store"
on:
  workflow_dispatch:
    inputs:
      dry_run:
        description: "Run submission in dry-run mode"
        required: false
        default: false
        type: boolean

env:
  WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI_ID }}
  WXT_UMAMI_URL: ${{ vars.WXT_UMAMI_URL || vars.PLASMO_PUBLIC_UMAMI_URL }}
  WXT_UMAMI_SAMPLE_RATE: ${{ vars.WXT_UMAMI_SAMPLE_RATE || vars.PLASMO_PUBLIC_UMAMI_SAMPLE_RATE }}

jobs:
  build:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v4
      - name: Cache pnpm modules
        uses: actions/cache@v4
        with:
          path: ~/.pnpm-store
          key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-
      - uses: pnpm/action-setup@v3.0.0
        with:
          version: latest
          run_install: true
      - name: Use Node.js 22.x
        uses: actions/setup-node@v4.0.2
        with:
          node-version: 22.x
          cache: "pnpm"
      - name: Package the extension for Chrome
        run: pnpm zip
      - name: Package the extension for Firefox
        run: pnpm zip:firefox
      - name: Submit to web stores
        env:
          CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID || vars.CHROME_EXTENSION_ID }}
          CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID || vars.CHROME_CLIENT_ID }}
          CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET || vars.CHROME_CLIENT_SECRET }}
          CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN || vars.CHROME_REFRESH_TOKEN }}
          FIREFOX_EXTENSION_ID: ${{ secrets.FIREFOX_EXTENSION_ID || vars.FIREFOX_EXTENSION_ID }}
          FIREFOX_JWT_ISSUER: ${{ secrets.FIREFOX_JWT_ISSUER || vars.FIREFOX_JWT_ISSUER }}
          FIREFOX_JWT_SECRET: ${{ secrets.FIREFOX_JWT_SECRET || vars.FIREFOX_JWT_SECRET }}
          EDGE_PRODUCT_ID: ${{ secrets.EDGE_PRODUCT_ID || vars.EDGE_PRODUCT_ID }}
          EDGE_CLIENT_ID: ${{ secrets.EDGE_CLIENT_ID || vars.EDGE_CLIENT_ID }}
          EDGE_API_KEY: ${{ secrets.EDGE_API_KEY || vars.EDGE_API_KEY }}
        run: |
          DRY_RUN_FLAG=""
          if [ "${{ inputs.dry_run }}" = "true" ]; then
            DRY_RUN_FLAG="--dry-run"
          fi

          pnpm wxt submit \
            --chrome-zip .output/*-chrome.zip \
            --firefox-zip .output/*-firefox.zip \
            --firefox-sources-zip .output/*-sources.zip \
            --edge-zip .output/*-chrome.zip \
            ${DRY_RUN_FLAG}


================================================
FILE: .github/workflows/test.yml
================================================
name: test

on:
  push:

env:
  WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI_ID }}
  WXT_UMAMI_URL: ${{ vars.WXT_UMAMI_URL || vars.PLASMO_PUBLIC_UMAMI_URL }}
  WXT_UMAMI_SAMPLE_RATE: ${{ vars.WXT_UMAMI_SAMPLE_RATE || vars.PLASMO_PUBLIC_UMAMI_SAMPLE_RATE }}

jobs:
  build:
    runs-on: macos-latest
    name: Build assets
    steps:
      - uses: actions/checkout@v4
      - name: Cache pnpm modules
        uses: actions/cache@v4
        with:
          path: ~/.pnpm-store
          key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-
      - uses: pnpm/action-setup@v3.0.0
        with:
          version: latest
          run_install: true
      - name: Use Node.js 22.x
        uses: actions/setup-node@v4.0.2
        with:
          node-version: 22.x
          cache: "pnpm"
      - name: Package the extension for Chrome
        run: pnpm zip
      - name: Package the extension for Firefox
        run: pnpm zip:firefox
      - name: Package the extension for Safari
        run: pnpm build:safari:zip
      - name: Archive production artifacts
        uses: actions/upload-artifact@v4
        with:
          name: build
          path: |
            build/safari-mv3-prod.zip
            build/chrome-mv3-prod.zip
            build/firefox-mv3-prod.zip


================================================
FILE: .gitignore
================================================

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

#cache
.turbo

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*

out/
build/
dist/
.wxt/
.output/

# plasmo - https://www.plasmo.com
.plasmo

# bpp - http://bpp.browser.market/
keys.json

# typescript
.tsbuildinfo


================================================
FILE: .prettierignore
================================================
pnpm-lock.yaml

================================================
FILE: .prettierrc.js
================================================
module.exports = {
  singleQuote: false,
  semi: false,
  trailingComma: "all",
  endOfLine: "lf",
  plugins: ["prettier-package-json", "@ianvs/prettier-plugin-sort-imports"],

  importOrderParserPlugins: [
    "classProperties",
    "decorators-legacy",
    "typescript",
    "jsx",
  ],
  importOrder: [
    "<THIRD_PARTY_MODULES>",
    "",
    "^@(.*)/(.*)$",
    "",
    "^~/(.*)$",
    "",
    "^@/(.*)$",
    "",
    "^[./]",
  ],
}


================================================
FILE: .prettierrc.mjs
================================================
/**
 * @type {import('prettier').Options}
 */
export default {
  printWidth: 80,
  tabWidth: 2,
  useTabs: false,
  semi: false,
  singleQuote: false,
  trailingComma: "none",
  bracketSpacing: true,
  bracketSameLine: true,
  plugins: ["@ianvs/prettier-plugin-sort-imports"],
  importOrder: [
    "<BUILTIN_MODULES>", // Node.js built-in modules
    "<THIRD_PARTY_MODULES>", // Imports not matched by other special words or groups.
    "", // Empty line
    "^@plasmohq/(.*)$",
    "",
    "^~(.*)$",
    "",
    "^[./]",
  ],
}


================================================
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 License 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 the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program>  Copyright (C) <year>  <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

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.md
================================================
<p align="center">
<img src="https://i.loli.net/2019/04/23/5cbeb7e41414c.png" alt="RSSHub" width="100">
</p>
<h1 align="center">RSSHub Radar</h1>

> Browser extension that simplifies finding and subscribing RSS and RSSHub.
>
> Everything is RSSible

[![version](https://img.shields.io/chrome-web-store/v/kefjpfngnndepjbopdmoebkipbgkggaa.svg?style=flat-square&logo=googlechrome&logoColor=fff)](https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa)
[![users](https://img.shields.io/chrome-web-store/users/kefjpfngnndepjbopdmoebkipbgkggaa.svg?style=flat-square)](https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa)
[![rating](https://img.shields.io/chrome-web-store/rating/kefjpfngnndepjbopdmoebkipbgkggaa.svg?style=flat-square)](https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa)

[![Mozilla Add-on](https://img.shields.io/amo/v/rsshub-radar?style=flat-square&logo=firefoxbrowser&logoColor=fff)](https://addons.mozilla.org/zh-CN/firefox/addon/rsshub-radar/)
[![Mozilla Add-on](https://img.shields.io/amo/users/rsshub-radar?color=%2344cc11&style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/rsshub-radar/)
[![Mozilla Add-on](https://img.shields.io/amo/rating/rsshub-radar?style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/rsshub-radar/)

[![](https://img.shields.io/badge/dynamic/json?label=edge%20add-on&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fgangkeiaobmjcjokiofpkfpcobpbmnln&style=flat-square&logo=microsoftedge&logoColor=fff)](https://microsoftedge.microsoft.com/addons/detail/arxivutils/gangkeiaobmjcjokiofpkfpcobpbmnln)
[![](https://img.shields.io/badge/dynamic/json?label=users&query=%24.activeInstallCount&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fgangkeiaobmjcjokiofpkfpcobpbmnln&style=flat-square&color=%2344cc11)](https://microsoftedge.microsoft.com/addons/detail/arxivutils/gangkeiaobmjcjokiofpkfpcobpbmnln)
[![](https://img.shields.io/badge/dynamic/json?label=rating&suffix=/5&query=%24.averageRating&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fgangkeiaobmjcjokiofpkfpcobpbmnln&style=flat-square&color=%2344cc11)](https://microsoftedge.microsoft.com/addons/detail/arxivutils/gangkeiaobmjcjokiofpkfpcobpbmnln)

[![iTunes App Store](https://img.shields.io/itunes/v/1610744717?label=apple%20app%20store&style=flat-square&logo=appstore&logoColor=fff)](https://apps.apple.com/us/app/rsshub-radar/id1610744717)

Tested for compatibility with the following browsers (other Chromium-based browsers should also work):

<a href="https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_128x128.png" width="48" /></a>
<a href="https://microsoftedge.microsoft.com/addons/detail/gangkeiaobmjcjokiofpkfpcobpbmnln"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_128x128.png" width="48" /></a>
<a href="https://addons.mozilla.org/firefox/addon/rsshub-radar/"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_128x128.png" width="48" /></a>
<a href="https://apps.apple.com/us/app/rsshub-radar/id1610744717?l=zh&mt=12"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_128x128.png" width="48" /></a>
<a href="https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://i.imgur.com/ofOUkIB.png" width="48" /></a>
<a href="https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://i.imgur.com/9RH7UNb.png" width="48" /></a>
<a href="https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/vivaldi/vivaldi_128x128.png" width="48" /></a>

## Introduction

[Telegram group](https://t.me/rsshub) | [Telegram channel](https://t.me/awesomeRSSHub)

RSSHub Radar is a spin-off project of [RSSHub](https://github.com/DIYgod/RSSHub), a browser extension that simplifies finding and subscribing RSS and RSSHub.

- Discover and subscribe to the RSS feeds associated with the current page effortlessly.
- Explore and subscribe to the RSSHub supported by the current page promptly.
- Easily identify the RSSHubs supported by the current website quickly.
- Supports one-click RSS subscription for various platforms including Tiny Tiny RSS, Miniflux, FreshRSS, Feedly, Inoreader, Feedbin, The Old Reader, Feeds.Pub, Local Reader...

![image](https://github.com/DIYgod/RSSHub-Radar/assets/8266075/3474727c-fa8c-4949-bd86-afc3a471a020)
![image](https://github.com/DIYgod/RSSHub-Radar/assets/8266075/42103b61-cb13-489a-b00b-c8c786a4cc30)
![image](https://github.com/DIYgod/RSSHub-Radar/assets/8266075/72d7a96f-90bf-46d8-804c-0809ab71a3cf)

## Install

### Webstore

<a href="https://chromewebstore.google.com/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_128x128.png" width="48" /></a>
<a href="https://microsoftedge.microsoft.com/addons/detail/gangkeiaobmjcjokiofpkfpcobpbmnln"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_128x128.png" width="48" /></a>
<a href="https://addons.mozilla.org/firefox/addon/rsshub-radar/"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_128x128.png" width="48" /></a>
<a href="https://apps.apple.com/us/app/rsshub-radar/id1610744717?l=zh&mt=12"><img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_128x128.png" width="48" /></a>

### Manual installation

First download the corresponding version of `chrome-mv3-prod.zip` from the [releases](https://github.com/DIYgod/RSSHub-Radar/releases) page and unzip it

**Chrome install extension:**

Open `chrome://extensions/`

Open the upper right corner `Developer mode`

Click `Load unpacked extension` in the upper left corner

Select the unzipped extension directory containing `manifest.json`

**Firefox install extension:**

Open `about:debugging`

Click `Load Temporary Extension` in the upper right corner

Select the `manifest.json` file in the unzipped extension directory

## Join us

### Start the Development Server

Also refer to: https://wxt.dev/guide/installation

```
pnpm i
pnpm dev
```

or use npm

```
npm install
npm run dev
```

Get the `.output/chrome-mv3` directory, the installation method refers to [manual installation](#manual installation)

### Submit New RSSHub Radar Rules

[See documentation](https://docs.rsshub.app/joinus/new-radar)

## Author

**RSSHub Radar** © [DIYgod](https://github.com/DIYgod), Released under the [AGPL-3.0](./LICENSE) License.<br>
Authored and maintained by DIYgod with help from contributors ([list](https://github.com/DIYgod/RSSHub-radar/contributors)).

> Blog [@DIYgod](https://diygod.cc) · GitHub [@DIYgod](https://github.com/DIYgod) · Twitter [@DIYgod](https://twitter.com/DIYgod) · Telegram Channel [@awesomeDIYgod](https://t.me/awesomeDIYgod)


================================================
FILE: components.json
================================================
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "default",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/lib/style.css",
    "baseColor": "orange",
    "cssVariables": true
  },
  "aliases": {
    "components": "~/lib/components",
    "utils": "~/lib/utils"
  }
}


================================================
FILE: package.json
================================================
{
  "name": "rsshub-radar",
  "displayName": "RSSHub Radar",
  "version": "2.2.0",
  "description": "__MSG_extensionDescription__",
  "author": "DIYgod",
  "packageManager": "pnpm@9.12.3",
  "scripts": {
    "dev": "wxt",
    "build": "wxt build",
    "dev:firefox": "wxt -b firefox --mv3",
    "build:firefox": "wxt build -b firefox --mv3",
    "build:safari": "wxt build -b safari --mv3",
    "zip": "wxt zip && mkdir -p build && cp .output/rsshub-radar-*-chrome.zip build/chrome-mv3-prod.zip",
    "zip:firefox": "wxt zip -b firefox --mv3 && mkdir -p build && cp .output/rsshub-radar-*-firefox.zip build/firefox-mv3-prod.zip",
    "safari-convert": "xcrun safari-web-extension-converter .output/safari-mv3 --project-location build --bundle-identifier app.rsshub.RSSHub-Radar --force",
    "safari-zip": "zip -r build/safari-mv3-prod.zip \"build/RSSHub Radar\"",
    "build:safari:zip": "pnpm build:safari && pnpm safari-convert && pnpm safari-zip",
    "package": "pnpm zip && pnpm zip:firefox",
    "prepare": "husky install",
    "postinstall": "wxt prepare"
  },
  "dependencies": {
    "@iconify-json/mingcute": "^1.2.3",
    "@radix-ui/react-accordion": "^1.2.3",
    "@radix-ui/react-dialog": "1.1.6",
    "@radix-ui/react-label": "^2.1.2",
    "@radix-ui/react-slot": "^1.1.2",
    "@radix-ui/react-switch": "^1.1.3",
    "async-lock": "^1.4.1",
    "class-variance-authority": "^0.7.1",
    "clsx": "^2.1.1",
    "foxact": "^0.2.44",
    "he": "1.2.0",
    "lodash": "^4.17.21",
    "lucide-react": "^0.475.0",
    "md5.js": "^1.3.5",
    "react": "18.3.1",
    "react-dom": "18.3.1",
    "react-hot-toast": "^2.5.1",
    "react-router": "^7.1.5",
    "route-recognizer": "^0.3.4",
    "rss-parser": "3.13.0",
    "tailwind-merge": "^2.5.3",
    "tailwindcss-animate": "^1.0.7",
    "tldts": "^6.1.76",
    "usehooks-ts": "^3.1.1",
    "xss": "1.0.15"
  },
  "devDependencies": {
    "@egoist/tailwindcss-icons": "^1.9.0",
    "@ianvs/prettier-plugin-sort-imports": "4.4.1",
    "@types/chrome": "^0.0.303",
    "@types/node": "22.13.1",
    "@types/react": "18.3.11",
    "@types/react-dom": "18.3.1",
    "@wxt-dev/module-react": "^1.1.5",
    "autoprefixer": "^10.4.20",
    "husky": "9.1.7",
    "lint-staged": "15.4.3",
    "postcss": "^8.4.47",
    "prettier": "3.4.2",
    "prettier-package-json": "2.8.0",
    "shadcn-ui": "^0.9.4",
    "tailwindcss": "^3.4.13",
    "typescript": "5.7.3",
    "wxt": "^0.20.14"
  },
  "lint-staged": {
    "**/*": "prettier --write --ignore-unknown"
  },
  "pnpm": {
    "overrides": {
      "publish-browser-extension": "3.0.3"
    }
  }
}


================================================
FILE: postcss.config.js
================================================
/**
 * @type {import('postcss').ProcessOptions}
 */
module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}


================================================
FILE: public/_locales/en/messages.json
================================================
{
  "extensionDescription": {
    "message": "Easily find and subscribe to RSS and RSSHub."
  },
  "about": {
    "message": "About"
  },
  "accessKey": {
    "message": "Access key"
  },
  "accessKeyType": {
    "message": "Access key format"
  },
  "clickToSet": {
    "message": "Click to set"
  },
  "configurationRequiredIfAccessKeysEnabled": {
    "message": "Configuration is required only if the instance has enabled access key"
  },
  "copied": {
    "message": "Copied"
  },
  "copy": {
    "message": "Copy"
  },
  "currentPageRSS": {
    "message": "RSS on the current page"
  },
  "currentPageRSSHub": {
    "message": "RSSHub for the current page"
  },
  "customRSSHubDomain": {
    "message": "RSSHub instance"
  },
  "currentSiteRSSHub": {
    "message": "RSSHub for the current site"
  },
  "document": {
    "message": "Doc"
  },
  "iWillUpdateAutomaticallyAndYouCan": {
    "message": "I will update automatically, and you can"
  },
  "updating": {
    "message": "Updating"
  },
  "updateNow": {
    "message": "Update Now"
  },
  "beforeUpdate": {
    "message": "before update"
  },
  "afterAutomaticUpdate": {
    "message": "after automatic update"
  },
  "fullRemoteUpdatesAreDisabledDueToBrowserLimitations": {
    "message": "Full remote updates are disabled due to browser limitations"
  },
  "forMoreRulesJoinUs": {
    "message": "For more rules support, <a target=\"_blank\" href=\"https://docs.rsshub.app/joinus/#quick-start\">join us</a>!"
  },
  "general": {
    "message": "General"
  },
  "popupWindowHotKey": {
    "message": "Popup window hotkey"
  },
  "joinRSSHub": {
    "message": "Join <a href=\"https://docs.rsshub.app\" target=\"_blank\">RSSHub</a> to make everything RSSible!"
  },
  "listOfRules": {
    "message": "List of rules"
  },
  "localReader": {
    "message": "Local reader"
  },
  "updateNotification": {
    "message": "Extension update notification"
  },
  "notificationsAndReminders": {
    "message": "Badge reminder"
  },
  "RSSNotFound": {
    "message": "No RSS found"
  },
  "rules": {
    "message": "Radar Rules"
  },
  "manuallyUpdate": {
    "message": "Manually update radar rules"
  },
  "rulesUpdate": {
    "message": "Rules update"
  },
  "settings": {
    "message": "Extension Settings"
  },
  "RSSHubRelatedSettings": {
    "message": "RSSHub Settings"
  },
  "quickSubscription": {
    "message": "Quick Subscriptions"
  },
  "showCornerBadge": {
    "message": "Show corner badge"
  },
  "updatedTimeAgo": {
    "message": "%{hours}h %{minutes}m since last update"
  },
  "version": {
    "message": "Version"
  },
  "RSSHubRadarInfo": {
    "message": "RSSHub Radar is a spin-off of <a target=\"_blank\" href=\"https://docs.rsshub.app\">RSSHub</a> that helps you quickly discover and subscribe to RSS and RSSHub for your current site, and the project is <a target=\"_blank\" href=\"https://github.com/DIYgod/RSSHub-Radar\">open source</a> under the AGPL-3.0 license and is completely free to use."
  },
  "sponsoredDevelopment": {
    "message": "⭐️ Sponsor RSSHub Radar: <a target=\"_blank\" href=\"https://docs.rsshub.app/sponsor\">https://docs.rsshub.app/sponsor</a>"
  },
  "updateLog": {
    "message": "📝 Update log"
  },
  "questionFeedback": {
    "message": "🙋 Question feedback"
  },
  "RSSHubDocumentation": {
    "message": "🗞️ RSSHub Documentation: <a target=\"_blank\" href=\"https://docs.rsshub.app\">https://docs.rsshub.app</a>"
  },
  "fillInstanceDomain": {
    "message": "Please fill in your instance domain"
  },
  "totalNumberOfRules": {
    "message": "Total number of rules"
  },
  "updateSuccessful": {
    "message": "Update successful"
  },
  "updateFailed": {
    "message": "Update failed"
  },
  "updateTip": {
    "message": "Automatically update every two hours, you can also manually update."
  },
  "extensionInstallTip": {
    "message": "🎉 RSSHub Radar installed"
  },
  "extensionUpdateTip": {
    "message": "🎉 RSSHub Radar updated"
  },
  "clickToViewChangeLog": {
    "message": "click to view the change log."
  },
  "remoteRulesUrl": {
    "message": "Remote radar rules URL"
  },
  "preview": {
    "message": "Preview"
  },
  "current": {
    "message": "Current"
  },
  "paginationPrevious": {
    "message": "Previous"
  },
  "paginationNext": {
    "message": "Next"
  }
}


================================================
FILE: public/_locales/zh_CN/messages.json
================================================
{
  "extensionDescription": {
    "message": "轻松查找和订阅 RSS 和 RSSHub。"
  },
  "about": {
    "message": "关于"
  },
  "accessKey": {
    "message": "访问密钥"
  },
  "accessKeyType": {
    "message": "访问密钥格式"
  },
  "clickToSet": {
    "message": "点此设置"
  },
  "configurationRequiredIfAccessKeysEnabled": {
    "message": "只有当实例启用了访问密钥时才需要进行配置"
  },
  "copied": {
    "message": "已复制"
  },
  "copy": {
    "message": "复制"
  },
  "currentPageRSS": {
    "message": "当前页面上的 RSS"
  },
  "currentPageRSSHub": {
    "message": "适用于当前页面的 RSSHub"
  },
  "customRSSHubDomain": {
    "message": "RSSHub 实例"
  },
  "currentSiteRSSHub": {
    "message": "适用于当前网站的 RSSHub"
  },
  "document": {
    "message": "文档"
  },
  "iWillUpdateAutomaticallyAndYouCan": {
    "message": "我会自动更新,你也可以"
  },
  "updating": {
    "message": "更新中"
  },
  "updateNow": {
    "message": "立即更新"
  },
  "beforeUpdate": {
    "message": "前更新"
  },
  "afterAutomaticUpdate": {
    "message": "后自动更新"
  },
  "fullRemoteUpdatesAreDisabledDueToBrowserLimitations": {
    "message": "由于浏览器限制,完整的远程更新被禁用"
  },
  "forMoreRulesJoinUs": {
    "message": "更多规则支持中,快来<a target=\"_blank\" href=\"https://docs.rsshub.app/zh/joinus/#quick-start\">参与我们</a>吧!"
  },
  "general": {
    "message": "常规"
  },
  "popupWindowHotKey": {
    "message": "弹出窗口快捷键"
  },
  "joinRSSHub": {
    "message": "参与到 <a href=\"https://docs.rsshub.app/zh/\">RSSHub</a> 让万物皆可 RSS 吧!"
  },
  "listOfRules": {
    "message": "规则列表"
  },
  "localReader": {
    "message": "本地阅读器"
  },
  "updateNotification": {
    "message": "扩展更新通知"
  },
  "notificationsAndReminders": {
    "message": "角标提醒"
  },
  "RSSNotFound": {
    "message": "没有检测到 RSS"
  },
  "rules": {
    "message": "Radar 规则"
  },
  "manuallyUpdate": {
    "message": "手动更新 Radar 规则"
  },
  "rulesUpdate": {
    "message": "规则更新"
  },
  "settings": {
    "message": "扩展设置"
  },
  "RSSHubRelatedSettings": {
    "message": "RSSHub 设置"
  },
  "quickSubscription": {
    "message": "快速订阅"
  },
  "showCornerBadge": {
    "message": "角标提醒"
  },
  "updatedTimeAgo": {
    "message": "%{hours}小时 %{minutes}分钟 前更新"
  },
  "version": {
    "message": "版本"
  },
  "RSSHubRadarInfo": {
    "message": "RSSHub Radar 是 <a target=\"_blank\" href=\"https://docs.rsshub.app/zh/\">RSSHub</a> 的衍生项目,她可以帮助你快速发现和订阅当前网站的 RSS 和 RSSHub,项目<a target=\"_blank\" href=\"https://github.com/DIYgod/RSSHub-Radar\">采用 AGPL-3.0 许可开源</a>,使用完全免费。"
  },
  "sponsoredDevelopment": {
    "message": "⭐️ 赞助 RSSHub Radar 的开发: <a target=\"_blank\" href=\"https://docs.rsshub.app/zh/sponsor\">https://docs.rsshub.app/zh/sponsor</a>"
  },
  "updateLog": {
    "message": "📝 更新日志"
  },
  "questionFeedback": {
    "message": "🙋 问题反馈"
  },
  "RSSHubDocumentation": {
    "message": "🗞️ RSSHub 文档: <a target=\"_blank\" href=\"https://docs.rsshub.app/zh/\">https://docs.rsshub.app/zh/</a>"
  },
  "fillInstanceDomain": {
    "message": "请填写你的实例域名"
  },
  "totalNumberOfRules": {
    "message": "规则总数"
  },
  "updateSuccessful": {
    "message": "更新成功"
  },
  "updateFailed": {
    "message": "更新失败"
  },
  "updateTip": {
    "message": "每两小时自动更新一次,你也可以手动更新"
  },
  "extensionInstallTip": {
    "message": "🎉 RSSHub Radar 已安装"
  },
  "extensionUpdateTip": {
    "message": "🎉 RSSHub Radar 已更新"
  },
  "clickToViewChangeLog": {
    "message": "点击查看更新日志。"
  },
  "remoteRulesUrl": {
    "message": "远程 Radar Rules 地址"
  },
  "preview": {
    "message": "预览"
  },
  "current": {
    "message": "当前"
  },
  "paginationPrevious": {
    "message": "上一页"
  },
  "paginationNext": {
    "message": "下一页"
  }
}


================================================
FILE: src/background/badge.ts
================================================
import { getConfig } from "~/lib/config"

chrome.action?.setBadgeBackgroundColor?.({
  color: "#F62800",
})

chrome.action?.setBadgeTextColor?.({
  color: "#fff",
})

export const setBadge = async (text: string, tabId: number) => {
  const config = await getConfig()

  if (config.notice.badge) {
    chrome.action.setBadgeText({
      text,
      tabId,
    })
  }
}


================================================
FILE: src/background/index.ts
================================================
import contentReady from "./messages/contentReady"
import popupReady from "./messages/popupReady"
import refreshRules from "./messages/refreshRules"
import requestDisplayedRules from "./messages/requestDisplayedRules"
import responseDisplayedRules from "./messages/responseDisplayedRules"
import responseRSS from "./messages/responseRSS"
import { deleteCachedRSS, getRSS } from "./rss"
import { initSchedule } from "./rules"
import { initUpdateNotifications } from "./update-notifications"

export {}

chrome.tabs.onActivated.addListener((tab) => {
  chrome.tabs.get(tab.tabId, (info) => {
    if (info.url) {
      getRSS(tab.tabId, info.url)
    }
  })
})

chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
  if (tab.active) {
    if (changeInfo.url) {
      deleteCachedRSS(tabId)
      getRSS(tabId, changeInfo.url)
    } else if (changeInfo.status === "loading") {
      deleteCachedRSS(tabId)
    } else if (changeInfo.status === "complete") {
      getRSS(tabId, tab.url)
    }
  }
})

chrome.tabs.onRemoved.addListener((tabId) => {
  deleteCachedRSS(tabId)
})

chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
  const run = async () => {
    switch (msg?.name) {
      case "contentReady":
        return contentReady(msg, sender)
      case "popupReady":
        return popupReady(msg, sender)
      case "refreshRules":
        return refreshRules(msg, sender)
      case "requestDisplayedRules":
        return requestDisplayedRules(msg, sender)
      case "responseDisplayedRules":
        return responseDisplayedRules(msg, sender)
      case "responseRSS":
        return responseRSS(msg, sender)
      default:
        return undefined
    }
  }

  run()
    .then((res) => {
      sendResponse(res)
    })
    .catch((error) => {
      console.error(error)
      sendResponse(undefined)
    })

  return true
})

initSchedule()
initUpdateNotifications()


================================================
FILE: src/background/messages/contentReady.ts
================================================
import { getRSS } from "~/background/rss"

const handler = (_message: unknown, sender: chrome.runtime.MessageSender) => {
  if (sender.tab?.id && sender.tab?.url) {
    getRSS(sender.tab.id, sender.tab.url)
  }
  return ""
}

export default handler


================================================
FILE: src/background/messages/popupReady.ts
================================================
import { getCachedRSS } from "~/background/rss"

const handler = (
  _message?: unknown,
  _sender?: chrome.runtime.MessageSender,
) => {
  return new Promise((resolve) => {
    chrome.tabs.query(
      {
        active: true,
        lastFocusedWindow: true,
      },
      ([tab]) => {
        resolve(getCachedRSS(tab.id))
      },
    )
  })
}

export default handler


================================================
FILE: src/background/messages/refreshRules.ts
================================================
import { refreshRules } from "~/background/rules"

const handler = async (
  _message?: unknown,
  _sender?: chrome.runtime.MessageSender,
) => {
  try {
    await refreshRules()
    return {
      success: true,
    }
  } catch (error) {
    console.error(error)
    return {
      success: false,
      error:
        error instanceof Error
          ? error.message
          : "Unknown error while refreshing rules",
    }
  }
}

export default handler


================================================
FILE: src/background/messages/requestDisplayedRules.ts
================================================
import { getDisplayedRules } from "~/background/rules"

const handler = async (
  _message?: unknown,
  _sender?: chrome.runtime.MessageSender,
) => getDisplayedRules()

export default handler


================================================
FILE: src/background/messages/responseDisplayedRules.ts
================================================
import { setDisplayedRules } from "~/background/rules"

const handler = (
  message: { body?: { displayedRules?: any } },
  _sender?: chrome.runtime.MessageSender,
) => {
  setDisplayedRules(message?.body?.displayedRules)
  return ""
}

export default handler


================================================
FILE: src/background/messages/responseRSS.ts
================================================
import { setRSS } from "~/background/rss"

const handler = async (
  message: { body?: { tabId?: number; rss?: any } },
  sender?: chrome.runtime.MessageSender,
) => {
  const tabId = message?.body?.tabId ?? sender?.tab?.id
  if (tabId) {
    setRSS(tabId, message?.body?.rss)
  }
  return ""
}

export default handler


================================================
FILE: src/background/rss.ts
================================================
import AsyncLock from "async-lock"

import { sendToContentScript } from "~/lib/messaging"
import { setupOffscreenDocument } from "~/lib/offscreen"
import report from "~/lib/report"
import { getLocalStorage } from "~/lib/storage"
import type { RSSData } from "~/lib/types"
import { getRSSHub as sandboxGetRSSHub } from "~/tabs/sandboxes"

import { setBadge } from "./badge"

const savedRSS: {
  [tabId: number]: {
    pageRSSHub: RSSData[]
    websiteRSSHub: RSSData[]
    pageRSS: RSSData[]
  }
} = {}

const lock = new AsyncLock({
  maxExecutionTime: 3000,
})
export const getRSS = async (tabId, url) => {
  if (!tabId || !url || !url.startsWith("http")) {
    return
  }
  try {
    await lock.acquire(tabId, async () => {
      if (savedRSS[tabId]) {
        setRSS(tabId, savedRSS[tabId])
        return
      }

      report({
        url,
      })
      const html = await sendToContentScript({
        name: "requestHTML",
        tabId,
      })

      if (chrome.offscreen && (chrome.runtime as any).getContexts) {
        await setupOffscreenDocument("offscreen.html")
        chrome.runtime.sendMessage({
          target: "offscreen",
          data: {
            name: "requestRSSHub",
            body: {
              tabId,
              html,
              url,
              rules: await getLocalStorage("rules"),
            },
          },
        })
      } else {
        const rsshub = sandboxGetRSSHub({
          html,
          url,
          rules: await getLocalStorage("rules"),
        })
        setRSS(tabId, rsshub)
      }

      const pageRSS = await sendToContentScript({
        name: "requestPageRSS",
        tabId,
      })
      setRSS(tabId, pageRSS)
    })
  } catch (error) {
    console.error(error)
  }
}

export const getCachedRSS = (tabId) => {
  return savedRSS[tabId]
}

export const setRSS = async (
  tabId,
  data:
    | {
        pageRSS: RSSData[]
      }
    | {
        pageRSSHub: RSSData[]
        websiteRSSHub: RSSData[]
      },
) => {
  if (!data) {
    return
  }
  if (!savedRSS[tabId]) {
    savedRSS[tabId] = {
      pageRSS: [],
      pageRSSHub: [],
      websiteRSSHub: [],
    }
  }
  if ("pageRSS" in data) {
    savedRSS[tabId].pageRSS = data.pageRSS
  } else {
    savedRSS[tabId].pageRSSHub = data.pageRSSHub
    savedRSS[tabId].websiteRSSHub = data.websiteRSSHub
  }

  let text = ""
  if (savedRSS[tabId].pageRSS.length || savedRSS[tabId].pageRSSHub.length) {
    text =
      savedRSS[tabId].pageRSS.length + savedRSS[tabId].pageRSSHub.length + ""
  } else if (savedRSS[tabId].websiteRSSHub.length) {
    text = " "
  }
  setBadge(text, tabId)
}

export const deleteCachedRSS = (tabId) => {
  delete savedRSS[tabId]
}


================================================
FILE: src/background/rules.ts
================================================
import { getConfig } from "~/lib/config"
import { setupOffscreenDocument } from "~/lib/offscreen"
import { getRemoteRules } from "~/lib/rules"
import { getLocalStorage, setLocalStorage } from "~/lib/storage"
import { getDisplayedRules as sandboxGetDisplayedRules } from "~/tabs/sandboxes"

export const refreshRules = async () => {
  const rules = await getRemoteRules()
  await setLocalStorage("rules", rules)
  if (chrome.offscreen && (chrome.runtime as any).getContexts) {
    await setupOffscreenDocument("offscreen.html")
    chrome.runtime.sendMessage({
      target: "offscreen",
      data: {
        name: "requestDisplayedRules",
        body: {
          rules,
        },
      },
    })
  } else {
    const displayedRules = sandboxGetDisplayedRules(rules)
    setDisplayedRules(displayedRules)
  }
  return rules
}

export const getDisplayedRules = () => getLocalStorage("displayedRules")

export const setDisplayedRules = (displayedRules) =>
  setLocalStorage("displayedRules", displayedRules)

const refreshRulesSafely = () => {
  refreshRules().catch((error) => {
    console.error(error)
  })
}

chrome.alarms.onAlarm.addListener((alarm) => {
  if (alarm.name === "refreshRulesAlarm") {
    refreshRulesSafely()
  }
})

export async function initSchedule() {
  const config = await getConfig()
  const rules = await getLocalStorage("rules")
  if (!rules) {
    setTimeout(() => {
      refreshRulesSafely()
    }, 60 * 1000)
  }

  const alarm = await chrome.alarms.get("refreshRulesAlarm")
  if (!alarm) {
    chrome.alarms.create("refreshRulesAlarm", {
      periodInMinutes: config.refreshTimeout / 60,
    })
  }
}


================================================
FILE: src/background/update-notifications.ts
================================================
import RSSHubIcon from "~/assets/icon.png"
import { getLocalStorage, setLocalStorage } from "~/lib/storage"

import info from "../../package.json"

export const initUpdateNotifications = async () => {
  const version = await getLocalStorage("version")
  if (version === info.version) return

  chrome.notifications?.create("RSSHubRadarUpdate", {
    type: "basic",
    iconUrl: RSSHubIcon,
    title: version
      ? chrome.i18n.getMessage("extensionUpdateTip")
      : chrome.i18n.getMessage("extensionInstallTip"),
    message: `v${info.version}, ${chrome.i18n.getMessage("clickToViewChangeLog")}`,
  })
  chrome.notifications?.onClicked.addListener((id) => {
    if (id === "RSSHubRadarUpdate") {
      chrome.tabs.create({
        url: "https://github.com/DIYgod/RSSHub-Radar/releases",
      })
      chrome.notifications?.clear("RSSHubRadarUpdate")
    }
  })
  await setLocalStorage("version", info.version)
}


================================================
FILE: src/contents/index.ts
================================================
import { sendToBackground } from "~/lib/messaging"
import { getPageRSS } from "~/lib/rss"

sendToBackground({
  name: "contentReady",
})

chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
  if (msg.name === "requestHTML") {
    sendResponse(document.documentElement.outerHTML)
  } else if (msg.name === "requestPageRSS") {
    getPageRSS().then((data) => {
      sendResponse(data)
    })
    return true
  }
})

export {}


================================================
FILE: src/entrypoints/background.ts
================================================
export default defineBackground(() => {
  import("~/background/index")
})


================================================
FILE: src/entrypoints/content.ts
================================================
export default defineContentScript({
  matches: ["<all_urls>"],
  main() {
    import("~/contents/index")
  },
})


================================================
FILE: src/entrypoints/offscreen/index.html
================================================
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>RSSHub Radar</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>


================================================
FILE: src/entrypoints/offscreen/main.tsx
================================================
import ReactDOM from "react-dom/client"

import OffscreenPage from "~/tabs/offscreen"

ReactDOM.createRoot(document.getElementById("root")!).render(<OffscreenPage />)


================================================
FILE: src/entrypoints/options/index.html
================================================
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>RSSHub Radar</title>
    <meta name="manifest.open_in_tab" content="true" />
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>


================================================
FILE: src/entrypoints/options/main.tsx
================================================
import ReactDOM from "react-dom/client"

import Options from "~/options/index"

ReactDOM.createRoot(document.getElementById("root")!).render(<Options />)


================================================
FILE: src/entrypoints/popup/index.html
================================================
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>RSSHub Radar</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>


================================================
FILE: src/entrypoints/popup/main.tsx
================================================
import ReactDOM from "react-dom/client"

import IndexPopup from "~/popup/index"

ReactDOM.createRoot(document.getElementById("root")!).render(<IndexPopup />)


================================================
FILE: src/entrypoints/preview/index.html
================================================
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>RSSHub Radar</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>


================================================
FILE: src/entrypoints/preview/main.tsx
================================================
import ReactDOM from "react-dom/client"

import PreviewPage from "~/tabs/preview"

ReactDOM.createRoot(document.getElementById("root")!).render(<PreviewPage />)


================================================
FILE: src/entrypoints/sandbox/index.html
================================================
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>RSSHub Radar</title>
  </head>
  <body>
    <script type="module" src="./main.ts"></script>
  </body>
</html>


================================================
FILE: src/entrypoints/sandbox/main.ts
================================================
import "~/tabs/sandboxes"


================================================
FILE: src/lib/components/Accordion.tsx
================================================
"use client"

import { ChevronDown } from "lucide-react"
import * as React from "react"

import * as AccordionPrimitive from "@radix-ui/react-accordion"

import { cn } from "~/lib/utils"

const Accordion = AccordionPrimitive.Root

const AccordionItem = React.forwardRef<
  React.ElementRef<typeof AccordionPrimitive.Item>,
  React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
>(({ className, ...props }, ref) => (
  <AccordionPrimitive.Item
    ref={ref}
    className={cn("border-b", className)}
    {...props}
  />
))
AccordionItem.displayName = "AccordionItem"

const AccordionTrigger = React.forwardRef<
  React.ElementRef<typeof AccordionPrimitive.Trigger>,
  React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
>(({ className, children, ...props }, ref) => (
  <AccordionPrimitive.Header className="flex">
    <AccordionPrimitive.Trigger
      ref={ref}
      className={cn(
        "flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",
        className,
      )}
      {...props}
    >
      {children}
      <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
    </AccordionPrimitive.Trigger>
  </AccordionPrimitive.Header>
))
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName

const AccordionContent = React.forwardRef<
  React.ElementRef<typeof AccordionPrimitive.Content>,
  React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
>(({ className, children, ...props }, ref) => (
  <AccordionPrimitive.Content
    ref={ref}
    className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
    {...props}
  >
    <div className={cn("pb-4 pt-0", className)}>{children}</div>
  </AccordionPrimitive.Content>
))

AccordionContent.displayName = AccordionPrimitive.Content.displayName

export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }


================================================
FILE: src/lib/components/AppearanceSwitch.tsx
================================================
import { useDark } from "~/lib/hooks/use-dark"

export function AppearanceSwitch({ className = "" }: { className?: string }) {
  const { toggleDark } = useDark()

  return (
    <button type="button" onClick={toggleDark} className={"flex " + className}>
      <div className="i-mingcute-sun-2-line scale-100 dark:scale-0 transition-transform duration-500 rotate-0 dark:-rotate-90" />
      <div className="i-mingcute-moon-line absolute scale-0 dark:scale-100 transition-transform duration-500 rotate-90 dark:rotate-0" />
      <span className="sr-only">Toggle theme</span>
    </button>
  )
}


================================================
FILE: src/lib/components/Button.tsx
================================================
import { cva, type VariantProps } from "class-variance-authority"
import * as React from "react"

import { Slot } from "@radix-ui/react-slot"

import { cn } from "~/lib/utils"

const buttonVariants = cva(
  "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground hover:bg-primary/90",
        destructive:
          "bg-destructive text-destructive-foreground hover:bg-destructive/90",
        outline:
          "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
        secondary:
          "bg-secondary text-secondary-foreground hover:bg-secondary/80",
        ghost: "hover:bg-accent hover:text-accent-foreground",
        link: "text-primary underline-offset-4 hover:underline",
        rss: "text-white bg-primary",
      },
      size: {
        default: "h-10 px-4 py-2",
        sm: "h-8 rounded-md px-2",
        lg: "h-11 rounded-md px-8",
        icon: "h-10 w-10",
      },
    },
    defaultVariants: {
      variant: "default",
      size: "default",
    },
  },
)

export interface ButtonProps
  extends React.ButtonHTMLAttributes<HTMLButtonElement>,
    VariantProps<typeof buttonVariants> {
  asChild?: boolean
}

const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
  ({ className, variant, size, asChild = false, ...props }, ref) => {
    const Comp = asChild ? Slot : "button"
    return (
      <Comp
        className={cn(buttonVariants({ variant, size, className }))}
        ref={ref}
        {...props}
      />
    )
  },
)
Button.displayName = "Button"

export { Button, buttonVariants }


================================================
FILE: src/lib/components/Card.tsx
================================================
import * as React from "react"

import { cn } from "~/lib/utils"

const Card = React.forwardRef<
  HTMLDivElement,
  React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
  <div
    ref={ref}
    className={cn(
      "rounded-lg border bg-card text-card-foreground shadow-sm",
      className,
    )}
    {...props}
  />
))
Card.displayName = "Card"

const CardHeader = React.forwardRef<
  HTMLDivElement,
  React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
  <div
    ref={ref}
    className={cn("flex flex-col space-y-1.5 p-6", className)}
    {...props}
  />
))
CardHeader.displayName = "CardHeader"

const CardTitle = React.forwardRef<
  HTMLParagraphElement,
  React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
  <h3
    ref={ref}
    className={cn(
      "text-xl font-semibold leading-none tracking-tight",
      className,
    )}
    {...props}
  />
))
CardTitle.displayName = "CardTitle"

const CardDescription = React.forwardRef<
  HTMLParagraphElement,
  React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
  <p
    ref={ref}
    className={cn("text-sm text-muted-foreground", className)}
    {...props}
  />
))
CardDescription.displayName = "CardDescription"

const CardContent = React.forwardRef<
  HTMLDivElement,
  React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
  <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
))
CardContent.displayName = "CardContent"

const CardFooter = React.forwardRef<
  HTMLDivElement,
  React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
  <div
    ref={ref}
    className={cn("flex items-center p-6 pt-0", className)}
    {...props}
  />
))
CardFooter.displayName = "CardFooter"

export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }


================================================
FILE: src/lib/components/Input.tsx
================================================
import * as React from "react"

import { cn } from "~/lib/utils"

export interface InputProps
  extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
  ({ className, type, ...props }, ref) => {
    return (
      <input
        type={type}
        className={cn(
          "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
          className,
        )}
        ref={ref}
        {...props}
      />
    )
  },
)
Input.displayName = "Input"

export { Input }


================================================
FILE: src/lib/components/Label.tsx
================================================
"use client"

import { cva, type VariantProps } from "class-variance-authority"
import * as React from "react"

import * as LabelPrimitive from "@radix-ui/react-label"

import { cn } from "~/lib/utils"

const labelVariants = cva(
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
)

const Label = React.forwardRef<
  React.ElementRef<typeof LabelPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
    VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
  <LabelPrimitive.Root
    ref={ref}
    className={cn(labelVariants(), className)}
    {...props}
  />
))
Label.displayName = LabelPrimitive.Root.displayName

export { Label }


================================================
FILE: src/lib/components/Pagination.tsx
================================================
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
import * as React from "react"

import { Button, type ButtonProps } from "~/lib/components/Button"
import { cn } from "~/lib/utils"

const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
  <nav
    role="navigation"
    aria-label="pagination"
    className={cn("mx-auto flex w-full justify-center", className)}
    {...props}
  />
)
Pagination.displayName = "Pagination"

const PaginationContent = React.forwardRef<
  HTMLUListElement,
  React.ComponentProps<"ul">
>(({ className, ...props }, ref) => (
  <ul
    ref={ref}
    className={cn("flex flex-row items-center gap-1", className)}
    {...props}
  />
))
PaginationContent.displayName = "PaginationContent"

const PaginationItem = React.forwardRef<
  HTMLLIElement,
  React.ComponentProps<"li">
>(({ className, ...props }, ref) => (
  <li ref={ref} className={cn("", className)} {...props} />
))
PaginationItem.displayName = "PaginationItem"

type PaginationLinkProps = {
  isActive?: boolean
} & Omit<ButtonProps, "variant">

const PaginationLink = ({ isActive, ...props }: PaginationLinkProps) => (
  <Button
    aria-current={isActive ? "page" : undefined}
    variant={isActive ? "outline" : "ghost"}
    {...props}
  />
)
PaginationLink.displayName = "PaginationLink"

const PaginationPrevious = ({
  className,
  ...props
}: React.ComponentProps<typeof PaginationLink>) => (
  <PaginationLink
    size="default"
    className={cn("gap-1 pl-2.5", className)}
    {...props}
  >
    <ChevronLeft className="h-4 w-4" />
    <span>{chrome.i18n.getMessage("paginationPrevious")}</span>
  </PaginationLink>
)
PaginationPrevious.displayName = "PaginationPrevious"

const PaginationNext = ({
  className,
  ...props
}: React.ComponentProps<typeof PaginationLink>) => (
  <PaginationLink
    size="default"
    className={cn("gap-1 pr-2.5", className)}
    {...props}
  >
    <span>{chrome.i18n.getMessage("paginationNext")}</span>
    <ChevronRight className="h-4 w-4" />
  </PaginationLink>
)
PaginationNext.displayName = "PaginationNext"

const PaginationEllipsis = ({
  className,
  ...props
}: React.ComponentProps<"span">) => (
  <span
    aria-hidden
    className={cn("flex h-9 w-9 items-center justify-center", className)}
    {...props}
  >
    <MoreHorizontal className="h-4 w-4" />
  </span>
)
PaginationEllipsis.displayName = "PaginationEllipsis"

export {
  Pagination,
  PaginationContent,
  PaginationEllipsis,
  PaginationItem,
  PaginationLink,
  PaginationNext,
  PaginationPrevious,
}


================================================
FILE: src/lib/components/Sheet.tsx
================================================
"use client"

import * as React from "react"
import * as SheetPrimitive from "@radix-ui/react-dialog"
import { cva, type VariantProps } from "class-variance-authority"
import { X } from "lucide-react"

import { cn } from "~/lib/utils"

const Sheet = SheetPrimitive.Root

const SheetTrigger = SheetPrimitive.Trigger

const SheetClose = SheetPrimitive.Close

const SheetPortal = SheetPrimitive.Portal

const SheetOverlay = React.forwardRef<
  React.ElementRef<typeof SheetPrimitive.Overlay>,
  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
>(({ className, ...props }, ref) => (
  <SheetPrimitive.Overlay
    className={cn(
      "fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
      className
    )}
    {...props}
    ref={ref}
  />
))
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName

const sheetVariants = cva(
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
  {
    variants: {
      side: {
        top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
        bottom:
          "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
        left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
        right:
          "inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
      },
    },
    defaultVariants: {
      side: "right",
    },
  }
)

interface SheetContentProps
  extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
    VariantProps<typeof sheetVariants> {}

const SheetContent = React.forwardRef<
  React.ElementRef<typeof SheetPrimitive.Content>,
  SheetContentProps
>(({ side = "right", className, children, ...props }, ref) => (
  <SheetPortal>
    <SheetOverlay />
    <SheetPrimitive.Content
      ref={ref}
      className={cn(sheetVariants({ side }), className)}
      {...props}
    >
      {children}
      <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
        <X className="h-4 w-4" />
        <span className="sr-only">Close</span>
      </SheetPrimitive.Close>
    </SheetPrimitive.Content>
  </SheetPortal>
))
SheetContent.displayName = SheetPrimitive.Content.displayName

const SheetHeader = ({
  className,
  ...props
}: React.HTMLAttributes<HTMLDivElement>) => (
  <div
    className={cn(
      "flex flex-col space-y-2 text-center sm:text-left",
      className
    )}
    {...props}
  />
)
SheetHeader.displayName = "SheetHeader"

const SheetFooter = ({
  className,
  ...props
}: React.HTMLAttributes<HTMLDivElement>) => (
  <div
    className={cn(
      "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
      className
    )}
    {...props}
  />
)
SheetFooter.displayName = "SheetFooter"

const SheetTitle = React.forwardRef<
  React.ElementRef<typeof SheetPrimitive.Title>,
  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
>(({ className, ...props }, ref) => (
  <SheetPrimitive.Title
    ref={ref}
    className={cn("text-lg font-semibold text-foreground", className)}
    {...props}
  />
))
SheetTitle.displayName = SheetPrimitive.Title.displayName

const SheetDescription = React.forwardRef<
  React.ElementRef<typeof SheetPrimitive.Description>,
  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
>(({ className, ...props }, ref) => (
  <SheetPrimitive.Description
    ref={ref}
    className={cn("text-sm text-muted-foreground", className)}
    {...props}
  />
))
SheetDescription.displayName = SheetPrimitive.Description.displayName

export {
  Sheet,
  SheetPortal,
  SheetOverlay,
  SheetTrigger,
  SheetClose,
  SheetContent,
  SheetHeader,
  SheetFooter,
  SheetTitle,
  SheetDescription,
}


================================================
FILE: src/lib/components/Switch.tsx
================================================
"use client"

import * as React from "react"

import * as SwitchPrimitives from "@radix-ui/react-switch"

import { cn } from "~/lib/utils"

const Switch = React.forwardRef<
  React.ElementRef<typeof SwitchPrimitives.Root>,
  React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
>(({ className, ...props }, ref) => (
  <SwitchPrimitives.Root
    className={cn(
      "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
      className,
    )}
    {...props}
    ref={ref}
  >
    <SwitchPrimitives.Thumb
      className={cn(
        "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
      )}
    />
  </SwitchPrimitives.Root>
))
Switch.displayName = SwitchPrimitives.Root.displayName

export { Switch }


================================================
FILE: src/lib/config.ts
================================================
import _ from "lodash"
import toast from "react-hot-toast"

import { getLocalStorage, setLocalStorage } from "~/lib/storage"

export const defaultConfig = {
  rsshubDomain: "https://rsshub.app",
  rsshubAccessControl: {
    accessKey: "",
    accessKeyType: "code",
  },
  notice: {
    badge: true,
  },
  submitto: {
    ttrss: false,
    ttrssDomain: "",
    checkchan: false,
    checkchanBase: "",
    miniflux: false,
    minifluxDomain: "",
    freshrss: false,
    freshrssDomain: "",
    nextcloudnews: false,
    nextcloudnewsDomain: "",
    feedly: false,
    inoreader: true,
    inoreaderDomain: "https://www.inoreader.com",
    feedbin: false,
    feedbinDomain: "https://feedbin.com",
    theoldreader: false,
    qireaderDomain: "https://www.qireader.com",
    feedspub: false,
    bazqux: false,
    local: false,
    follow: true,
    newsblur: false,
    newsblurDomain: "https://www.newsblur.com",
  },
  refreshTimeout: 2 * 60 * 60,
}

export async function getConfig() {
  let storagedConfig = {}
  try {
    storagedConfig = await getLocalStorage("config")
  } catch (error) {}
  return _.merge({}, defaultConfig, storagedConfig) as typeof defaultConfig
}

let toastId: string | undefined
export async function setConfig(config: Partial<typeof defaultConfig>) {
  let storagedConfig = {}
  try {
    storagedConfig = await getLocalStorage("config")
  } catch (error) {}
  config = _.merge({}, storagedConfig, config)
  await setLocalStorage("config", config)
  toastId = toast.success("Saved", {
    id: toastId,
  })
  return config
}


================================================
FILE: src/lib/hooks/use-dark.ts
================================================
import { useLocalStorage } from "foxact/use-local-storage"
import { useEffect, useMemo, useSyncExternalStore } from "react"

const query = "(prefers-color-scheme: dark)"

function getSnapshot() {
  return window.matchMedia(query).matches
}

function getServerSnapshot(): undefined {
  return undefined
}

function subscribe(callback: () => void) {
  const matcher = window.matchMedia(query)
  matcher.addEventListener("change", callback)
  return () => {
    matcher.removeEventListener("change", callback)
  }
}

function useSystemDark() {
  return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)
}

const themeOptions = ["system", "light", "dark"] as const
export type Theme = (typeof themeOptions)[number]

function isDarkMode(setting?: Theme | null, isSystemDark?: boolean) {
  return setting === "dark" || (isSystemDark && setting !== "light")
}

export function useDark(themeKey = "use-dark") {
  const [theme, setTheme] = useLocalStorage<Theme>(themeKey, "system")
  const isSystemDark = useSystemDark()

  const isDark = useMemo(
    () => isDarkMode(theme, isSystemDark),
    [isSystemDark, theme],
  )

  const toggleDark = () => {
    if (theme === "system") {
      setTheme(isSystemDark ? "light" : "dark")
    } else {
      setTheme("system")
    }
  }

  useEffect(() => {
    const isDark = isDarkMode(theme, isSystemDark)
    if (isDark) {
      document.documentElement.classList.toggle("dark", true)
    } else {
      document.documentElement.classList.toggle("dark", false)
    }

    if (
      (theme === "dark" && isSystemDark) ||
      (theme === "light" && !isSystemDark)
    ) {
      setTheme("system")
    }
  }, [theme, isSystemDark, setTheme])

  return { isDark, toggleDark }
}


================================================
FILE: src/lib/messaging.ts
================================================
export type ExtensionMessage = {
  name: string
  body?: any
}

export function sendToBackground<T = any>(message: ExtensionMessage) {
  return new Promise<T>((resolve, reject) => {
    chrome.runtime.sendMessage(message, (response) => {
      if (chrome.runtime.lastError) {
        reject(new Error(chrome.runtime.lastError.message))
        return
      }
      resolve(response as T)
    })
  })
}

export function sendToContentScript<T = any>({
  name,
  tabId,
  body,
}: {
  name: string
  tabId: number
  body?: any
}) {
  return new Promise<T>((resolve, reject) => {
    chrome.tabs.sendMessage(tabId, { name, body }, (response) => {
      if (chrome.runtime.lastError) {
        reject(new Error(chrome.runtime.lastError.message))
        return
      }
      resolve(response as T)
    })
  })
}


================================================
FILE: src/lib/offscreen.ts
================================================
// https://developer.chrome.com/docs/extensions/reference/api/offscreen
let creating

async function setupOffscreenDocument(path: string) {
  const offscreenUrl = chrome.runtime.getURL(path)

  const existingContexts = (await (chrome.runtime as any).getContexts({
    contextTypes: ["OFFSCREEN_DOCUMENT"] as any,
    documentUrls: [offscreenUrl],
  })) as chrome.runtime.ExtensionContext[] | undefined

  if (existingContexts?.length) {
    return
  }

  if (creating) {
    await creating
  } else {
    creating = chrome.offscreen.createDocument({
      url: offscreenUrl,
      reasons: [chrome.offscreen.Reason.IFRAME_SCRIPTING],
      justification: "Get RSS in the sandbox for enhanced security.",
    })
    await creating
    creating = null
  }
}

export { setupOffscreenDocument }


================================================
FILE: src/lib/quick-subscriptions-logos.tsx
================================================
import FeedlyLogo from "~/assets/feedly.png"
import FollowLogo from "~/assets/follow.svg"
import FreshRSSLogo from "~/assets/freshrss.svg"
import InoreaderLogo from "~/assets/inoreader.svg"
import MinifluxLogo from "~/assets/miniflux.ico"
import NewsBlurLogo from "~/assets/newsblur.png"
import TinyTinyRSSLogo from "~/assets/ttrss.png"

export const logoMap = new Map<string, string>([
  ["follow", FollowLogo],
  ["inoreader", InoreaderLogo],
  ["miniflux", MinifluxLogo],
  ["freshrss", FreshRSSLogo],
  ["ttrss", TinyTinyRSSLogo],
  ["feedly", FeedlyLogo],
  ["newsblur", NewsBlurLogo],
])


================================================
FILE: src/lib/quick-subscriptions.ts
================================================
export const quickSubscriptions: ({
  name: string
  projectUrl?: string
  key: string
  themeColor: string
  getSubscribePath: (data: {
    url: string
    encodedUrl: string
    title: string
    image: string
  }) => string
} & (
  | {
      subscribeDomainKey: string
    }
  | {
      subscribeDomain: string
    }
))[] = [
  {
    name: "Follow",
    projectUrl: "https://follow.is",
    key: "follow",
    subscribeDomain: "follow://",
    themeColor: "#ff5c00",
    getSubscribePath: (data) => `add?url=${data.encodedUrl}`,
  },
  {
    name: "Inoreader",
    projectUrl: "https://www.inoreader.com/",
    key: "inoreader",
    subscribeDomainKey: "inoreaderDomain",
    themeColor: "#0099eb",
    getSubscribePath: (data) => `/?add_feed=${data.encodedUrl}`,
  },
  {
    name: "Miniflux",
    projectUrl: "https://miniflux.app",
    key: "miniflux",
    subscribeDomainKey: "minifluxDomain",
    themeColor: "#33995b",
    getSubscribePath: (data) => `/bookmarklet?uri=${data.encodedUrl}`,
  },
  {
    name: "Feedly",
    projectUrl: "https://feedly.com",
    key: "feedly",
    subscribeDomain: "https://feedly.com",
    themeColor: "#2bb24c",
    getSubscribePath: (data) => `/i/subscription/feed/${data.encodedUrl}`,
  },
  {
    name: "FreshRSS",
    projectUrl: "https://freshrss.org",
    key: "freshrss",
    subscribeDomainKey: "freshrssDomain",
    themeColor: "#0062db",
    getSubscribePath: (data) => `/i/?c=feed&a=add&url_rss=${data.encodedUrl}`,
  },
  {
    name: "Tiny Tiny RSS",
    projectUrl: "https://tt-rss.org/",
    key: "ttrss",
    subscribeDomainKey: "ttrssDomain",
    themeColor: "#f28f34",
    getSubscribePath: (data) =>
      `/public.php?op=bookmarklets--subscribe&feed_url=${data.encodedUrl}`,
  },
  {
    name: "Nextcloud News",
    projectUrl: "https://apps.nextcloud.com/apps/news",
    key: "nextcloudnews",
    subscribeDomainKey: "nextcloudnewsDomain",
    themeColor: "#0082c9",
    getSubscribePath: (data) => `/?subscribe_to=${data.encodedUrl}`,
  },
  {
    name: "Feedbin",
    projectUrl: "https://feedbin.com/",
    key: "feedbin",
    subscribeDomainKey: "feedbinDomain",
    themeColor: "#0867e2",
    getSubscribePath: (data) => `/?subscribe=${data.encodedUrl}`,
  },
  {
    name: "The Old Reader",
    projectUrl: "https://theoldreader.com/",
    key: "theoldreader",
    subscribeDomain: "https://theoldreader.com",
    themeColor: "#ff2300",
    getSubscribePath: (data) => `/feeds/subscribe?url=${data.encodedUrl}`,
  },
  {
    name: "Feeds.Pub",
    projectUrl: "https://feeds.pub/",
    key: "feedspub",
    subscribeDomain: "https://feeds.pub",
    themeColor: "#61af4b",
    getSubscribePath: (data) => `/feed/${data.encodedUrl}`,
  },
  {
    name: "BazQux Reader",
    projectUrl: "https://bazqux.com/",
    key: "bazqux",
    subscribeDomain: "https://bazqux.com",
    themeColor: "#00af00",
    getSubscribePath: (data) => `/add?url=${data.encodedUrl}`,
  },
  {
    name: "Qi Reader",
    projectUrl: "https://www.qireader.com/",
    key: "qireader",
    subscribeDomainKey: "qireaderDomain",
    themeColor: "#e79317",
    getSubscribePath: (data) => `/discover?search=${data.encodedUrl}`,
  },
  {
    name: "CheckChan",
    projectUrl: "https://ckc.ftqq.com",
    key: "checkchan",
    subscribeDomainKey: "checkchanBase",
    themeColor: "#f28f34",
    getSubscribePath: (data) =>
      `/index.html#/check/add?title=${encodeURIComponent(data.title)}&url=${data.encodedUrl}&type=rss&icon=${encodeURIComponent(data.image)}`,
  },
  {
    name: "CommaFeed",
    projectUrl: "https://commafeed.com",
    key: "commafeed",
    subscribeDomain: "https://commafeed.com",
    themeColor: "#ffa94d",
    getSubscribePath: (data) =>
      `/rest/feed/subscribe?url=${data.encodedUrl}`,
  },
  {
    name: "localReader",
    key: "local",
    subscribeDomain: "feed://",
    themeColor: "#f28f34",
    getSubscribePath: (data) => data.url.replace(/^https?:\/\//, ""),
  },
  {
    name: "NewsBlur",
    projectUrl: "https://newsblur.com/",
    key: "newsblur",
    subscribeDomainKey: "newsblurDomain" ,
    themeColor: "#eebd10",
    getSubscribePath: (data) => `/?url=${data.encodedUrl}`,
  },
]


================================================
FILE: src/lib/radar-rules.ts
================================================
export const defaultRules = {
  "81.cn": {
    _name: "中国军网",
    "81rc": [
      {
        title: "中国人民解放军专业技术人才网",
        docs: "https://docs.rsshub.app/routes/government",
        source: ["/:category"],
        target:
          '/81params=>{const category=params.category;return`/81/81rc/${category?`/${category}`:""}`}',
      },
    ],
  },
  "121.com.cn": {
    _name: "深圳台风网",
    tf: [
      {
        title: "深圳天气直播",
        docs: "https://docs.rsshub.app/routes/forecast",
        source: ["/", "/web/weatherLive"],
        target: "/121/weatherLive",
      },
    ],
  },
  "163.com": {
    _name: "网易公开课",
    ds: [
      {
        title: "用户发帖",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/user/:id"],
        target: "/163/ds/:id",
      },
    ],
    "3g": [
      {
        title: "栏目",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/touch/exclusive/sub/:id"],
        target: "/163/exclusive/:id?",
      },
    ],
    "vip.open": [
      {
        title: "精品课程",
        docs: "https://docs.rsshub.app/routes/study",
        source: ["/"],
        target: "/163/open/vip",
      },
    ],
    renjian: [
      {
        title: "人间",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category", "/"],
        target: "/163/renjian/:category?",
      },
    ],
    "wp.m": [
      {
        title: "今日关注",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/163/html/newsapp/todayFocus/index.html", "/"],
        target: "/163/today",
      },
    ],
  },
  "12306.cn": {
    _name: "12306",
    www: [
      {
        title: "最新动态",
        docs: "https://docs.rsshub.app/routes/travel",
        source: ["/", "/mormhweb/1/:id/index_fl.html"],
        target: "/12306/zxdt/:id",
      },
    ],
  },
  "12371.cn": {
    _name: "共产党员网",
    www: [
      {
        title: "最新发布",
        docs: "https://docs.rsshub.app/routes/government",
        source: ["/:category"],
        target: "/12371/:category?",
      },
    ],
  },
  "005.tv": {
    _name: "幻之羁绊动漫网",
    ".": [
      {
        title: "资讯",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/:category"],
        target:
          '/005params=>{const category=params.category;return`/005${category?`/${category}`:""}`}',
      },
      {
        title: "二次元资讯",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/zx/"],
        target: "/005/005/zx",
      },
      {
        title: "慢慢说",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/zwh/"],
        target: "/005/005/zwh",
      },
      {
        title: "道听途说",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/dtts/"],
        target: "/005/005/dtts",
      },
      {
        title: "展会资讯",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/zh/"],
        target: "/005/005/zh",
      },
    ],
  },
  "0xxx.ws": {
    _name: "0xxx.ws",
    ".": [
      {
        title: "Source",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/"],
        target:
          '/0xxx(_,url)=>{const urlObj=new URL(url);const params=urlObj.searchParams;params.delete("next");const filter=urlObj.searchParams.toString();return`/0xxx${filter?`/${filter}`:""}`}',
      },
    ],
  },
  "10000link.com": {
    _name: "10000万联网",
    info: [
      {
        title: "新闻",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category"],
        target:
          '/10000link(params,url)=>{const urlObj=new URL(url);const id=urlObj.searchParams.get("chid")??void 0;const category=params.category;return`/10000link/info${category?`/${category}${id?`/${id}`:""}`:""}`}',
      },
    ],
  },
  "10jqka.com.cn": {
    _name: "同花顺财经",
    news: [
      {
        title: "全部",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/全部",
      },
      {
        title: "重要",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/重要",
      },
      {
        title: "A股",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/A股",
      },
      {
        title: "港股",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/港股",
      },
      {
        title: "美股",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/美股",
      },
      {
        title: "机会",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/机会",
      },
      {
        title: "异动",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/异动",
      },
      {
        title: "公告",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/realtimenews.html"],
        target: "/10jqka/realtimenews/公告",
      },
    ],
  },
  "jmcomic.group": {
    _name: "禁漫天堂",
    ".": [
      {
        title: "专辑",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/"],
        target: "/18comic/album/:id",
      },
      {
        title: "文庫",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/"],
        target: "/18comic/blogs/:category?",
      },
      {
        title: "成人 A 漫",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/"],
        target: "/18comic/:category?/:time?/:order?/:keyword?",
      },
      {
        title: "搜索",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/"],
        target: "/18comic/:category?/:time?/:order?/:keyword?",
      },
    ],
  },
  "199it.com": {
    _name: "199it",
    www: [
      {
        title: "资讯",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category"],
        target:
          '/199itparams=>{const category=params.category;return`/199it${category?`/${category}`:""}`}',
      },
      {
        title: "最新",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/newly"],
        target: "/199it/newly",
      },
      {
        title: "报告",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/report"],
        target: "/199it/archives/category/report",
      },
      {
        title: "新兴产业",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/emerging"],
        target: "/199it/archives/category/emerging",
      },
      {
        title: "金融科技",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/fintech"],
        target: "/199it/archives/category/fintech",
      },
      {
        title: "共享经济",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/sharingeconomy"],
        target: "/199it/archives/category/sharingeconomy",
      },
      {
        title: "移动互联网",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/mobile-internet"],
        target: "/199it/archives/category/mobile-internet",
      },
      {
        title: "电子商务",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/electronic-commerce"],
        target: "/199it/archives/category/electronic-commerce",
      },
      {
        title: "社交网络",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/social-network"],
        target: "/199it/archives/category/social-network",
      },
      {
        title: "网络广告",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/advertising"],
        target: "/199it/archives/category/advertising",
      },
      {
        title: "投资&amp;经济,互联网金融",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/economic-data"],
        target: "/199it/archives/category/economic-data",
      },
      {
        title: "服务",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/service"],
        target: "/199it/archives/category/service",
      },
      {
        title: "网络服务行业",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/dataindustry"],
        target: "/199it/archives/category/dataindustry",
      },
      {
        title: "用户研究",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/archives/category/internet-users"],
        target: "/199it/archives/category/internet-users",
      },
    ],
  },
  "1lou.me": {
    _name: "BT 之家 1LOU 站",
    ".": [
      {
        title: "通用",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/:params"],
        target:
          '/1lou(_,url)=>{url=new URL(url);return`/1lou${url.href.replace(rootUrl,"")}`}',
      },
    ],
  },
  "1point3acres.com": {
    _name: "一亩三分地",
    blog: [
      {
        title: "博客",
        docs: "https://docs.rsshub.app/routes/bbs",
        source: ["/:category"],
        target: "/1point3acres/blog/:category?",
      },
    ],
    instant: [
      {
        title: "标签",
        docs: "https://docs.rsshub.app/routes/bbs",
        source: ["/section/:id", "/"],
        target: "/1point3acres/category/:id?/:type?/:order?",
      },
      {
        title: "分区",
        docs: "https://docs.rsshub.app/routes/bbs",
        source: ["/section/:id", "/"],
        target: "/1point3acres/section/:id?/:type?/:order?",
      },
      {
        title: "用户回帖",
        docs: "https://docs.rsshub.app/routes/bbs",
        source: ["/profile/:id", "/"],
        target: "/1point3acres/user/:id/posts",
      },
      {
        title: "用户主题帖",
        docs: "https://docs.rsshub.app/routes/bbs",
        source: ["/profile/:id", "/"],
        target: "/1point3acres/user/:id/threads",
      },
    ],
    offer: [
      {
        title: "录取结果",
        docs: "https://docs.rsshub.app/routes/bbs",
        source: ["/"],
        target: "/1point3acres/offer",
      },
    ],
  },
  "21jingji.com": {
    _name: "21财经",
    m: [
      {
        title: "热点",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/"],
        target: "/21caijing/channel/热点",
      },
      {
        title: "投资通",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通",
      },
      {
        title: "投资通/推荐",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/推荐",
      },
      {
        title: "投资通/盘前情报",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/盘前情报",
      },
      {
        title: "投资通/公司洞察",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/公司洞察",
      },
      {
        title: "投资通/南财研选",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/南财研选",
      },
      {
        title: "投资通/龙虎榜",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/龙虎榜",
      },
      {
        title: "投资通/公告精选",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/公告精选",
      },
      {
        title: "投资通/牛熊透视",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/牛熊透视",
      },
      {
        title: "投资通/一周前瞻",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/一周前瞻",
      },
      {
        title: "投资通/财经日历",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/财经日历",
      },
      {
        title: "投资通/风口掘金",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/风口掘金",
      },
      {
        title: "投资通/实时解盘",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/实时解盘",
      },
      {
        title: "投资通/调研内参",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/调研内参",
      },
      {
        title: "投资通/趋势前瞻",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/趋势前瞻",
      },
      {
        title: "投资通/硬核选基",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/硬核选基",
      },
      {
        title: "投资通/3分钟理财",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/3分钟理财",
      },
      {
        title: "投资通/AI智讯",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/AI智讯",
      },
      {
        title: "投资通/北向资金",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投资通/北向资金",
      },
      {
        title: "金融",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/finance"],
        target: "/21caijing/channel/金融",
      },
      {
        title: "金融/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/动态",
      },
      {
        title: "金融/最保险",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/最保险",
      },
      {
        title: "金融/资管",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/资管",
      },
      {
        title: "金融/数字金融",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/数字金融",
      },
      {
        title: "金融/私人银行",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/私人银行",
      },
      {
        title: "金融/普惠",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/普惠",
      },
      {
        title: "金融/观债",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/观债",
      },
      {
        title: "金融/金融研究",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/金融研究",
      },
      {
        title: "金融/投教基地",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/投教基地",
      },
      {
        title: "金融/银行",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/银行",
      },
      {
        title: "金融/非银金融",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/非银金融",
      },
      {
        title: "金融/金融人事",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/金融/金融人事",
      },
      {
        title: "宏观",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/politics"],
        target: "/21caijing/channel/宏观",
      },
      {
        title: "学习经济",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/jujiao/xxjjIndexV3"],
        target: "/21caijing/channel/学习经济",
      },
      {
        title: "学习经济/经济思想",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/经济思想",
      },
      {
        title: "学习经济/学习经济卡片",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/学习经济卡片",
      },
      {
        title: "学习经济/高质量发展",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/高质量发展",
      },
      {
        title: "学习经济/经济政策",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/经济政策",
      },
      {
        title: "学习经济/广东在行动",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/广东在行动",
      },
      {
        title: "学习经济/数说经济",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/数说经济",
      },
      {
        title: "学习经济/学习视频",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/学习视频",
      },
      {
        title: "学习经济/学习党史",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/学习经济/学习党史",
      },
      {
        title: "大湾区",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/GHM_GreaterBay"],
        target: "/21caijing/channel/大湾区",
      },
      {
        title: "大湾区/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/动态",
      },
      {
        title: "大湾区/湾区金融",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/湾区金融",
      },
      {
        title: "大湾区/大湾区直播室",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/大湾区直播室",
      },
      {
        title: "大湾区/高成长企业",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/高成长企业",
      },
      {
        title: "大湾区/产业地理",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/产业地理",
      },
      {
        title: "大湾区/数智湾区",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/数智湾区",
      },
      {
        title: "大湾区/湾区金融大咖会",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/湾区金融大咖会",
      },
      {
        title: "大湾区/“港”创科25人",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/“港”创科25人",
      },
      {
        title: "大湾区/湾区论坛",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/大湾区/湾区论坛",
      },
      {
        title: "证券",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/capital"],
        target: "/21caijing/channel/证券",
      },
      {
        title: "证券/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/证券/动态",
      },
      {
        title: "证券/赢基金",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/证券/赢基金",
      },
      {
        title: "证券/券业观察",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/证券/券业观察",
      },
      {
        title: "证券/期市一线",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/证券/期市一线",
      },
      {
        title: "证券/ETF",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/证券/ETF",
      },
      {
        title: "汽车",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/auto"],
        target: "/21caijing/channel/汽车",
      },
      {
        title: "汽车/热闻",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/热闻",
      },
      {
        title: "汽车/新汽车",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/新汽车",
      },
      {
        title: "汽车/车访间",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/车访间",
      },
      {
        title: "汽车/财说车",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/财说车",
      },
      {
        title: "汽车/汽车人",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/汽车人",
      },
      {
        title: "汽车/汽车商业地理",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/汽车商业地理",
      },
      {
        title: "汽车/汽车金融",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/汽车金融",
      },
      {
        title: "汽车/行业报告",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/行业报告",
      },
      {
        title: "汽车/聚焦",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/汽车/聚焦",
      },
      {
        title: "观点",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/opinion"],
        target: "/21caijing/channel/观点",
      },
      {
        title: "新健康",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/healthnews"],
        target: "/21caijing/channel/新健康",
      },
      {
        title: "新健康/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/动态",
      },
      {
        title: "新健康/21健讯Daily",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/21健讯Daily",
      },
      {
        title: "新健康/21CC",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/21CC",
      },
      {
        title: "新健康/21健谈",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/21健谈",
      },
      {
        title: "新健康/名医说",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/名医说",
      },
      {
        title: "新健康/数字医疗",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/数字医疗",
      },
      {
        title: "新健康/21H院长对话",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/21H院长对话",
      },
      {
        title: "新健康/医健IPO解码",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/医健IPO解码",
      },
      {
        title: "新健康/研究报告",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/研究报告",
      },
      {
        title: "新健康/21科普",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/新健康/21科普",
      },
      {
        title: "ESG",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/esg"],
        target: "/21caijing/channel/ESG",
      },
      {
        title: "ESG/ESG发布厅",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/ESG发布厅",
      },
      {
        title: "ESG/绿色公司",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/绿色公司",
      },
      {
        title: "ESG/绿色金融",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/绿色金融",
      },
      {
        title: "ESG/净零碳城市",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/净零碳城市",
      },
      {
        title: "ESG/碳市场",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/碳市场",
      },
      {
        title: "ESG/生物多样性",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/生物多样性",
      },
      {
        title: "ESG/行业周报",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/行业周报",
      },
      {
        title: "ESG/研究报告",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/ESG/研究报告",
      },
      {
        title: "全球市场",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/global"],
        target: "/21caijing/channel/全球市场",
      },
      {
        title: "全球市场/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/动态",
      },
      {
        title: "全球市场/全球财经连线",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/全球财经连线",
      },
      {
        title: "全球市场/直击华尔街",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/直击华尔街",
      },
      {
        title: "全球市场/百家跨国公司看中国",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/百家跨国公司看中国",
      },
      {
        title: "全球市场/全球央行观察",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/全球央行观察",
      },
      {
        title: "全球市场/全球能源观察",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/全球能源观察",
      },
      {
        title: "全球市场/美股一线",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/美股一线",
      },
      {
        title: "全球市场/港股一线",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/港股一线",
      },
      {
        title: "全球市场/全球金融观察",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/全球金融观察",
      },
      {
        title: "全球市场/联合国现场",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/联合国现场",
      },
      {
        title: "全球市场/全球央行月报",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/全球央行月报",
      },
      {
        title: "全球市场/全球商品观察",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/全球市场/全球商品观察",
      },
      {
        title: "一带一路",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/BandR"],
        target: "/21caijing/channel/一带一路",
      },
      {
        title: "数读",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/readnumber"],
        target: "/21caijing/channel/数读",
      },
      {
        title: "理财通",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/financing"],
        target: "/21caijing/channel/理财通",
      },
      {
        title: "理财通/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/动态",
      },
      {
        title: "理财通/数据库",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/数据库",
      },
      {
        title: "理财通/研报",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/研报",
      },
      {
        title: "理财通/投教",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/投教",
      },
      {
        title: "理财通/政策",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/政策",
      },
      {
        title: "理财通/固收+",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/固收+",
      },
      {
        title: "理财通/纯固收",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/纯固收",
      },
      {
        title: "理财通/现金",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/现金",
      },
      {
        title: "理财通/混合",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/混合",
      },
      {
        title: "理财通/权益",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/理财通/权益",
      },
      {
        title: "直播",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/live"],
        target: "/21caijing/channel/直播",
      },
      {
        title: "长三角",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/yangtzeriverdelta"],
        target: "/21caijing/channel/长三角",
      },
      {
        title: "论坛活动",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/market"],
        target: "/21caijing/channel/论坛活动",
      },
      {
        title: "创投",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/entrepreneur"],
        target: "/21caijing/channel/创投",
      },
      {
        title: "投教",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/tjzjy"],
        target: "/21caijing/channel/投教",
      },
      {
        title: "投教/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投教/动态",
      },
      {
        title: "投教/投教知识",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投教/投教知识",
      },
      {
        title: "投教/公益活动",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/投教/公益活动",
      },
      {
        title: "海洋经济",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/oceaneconomy"],
        target: "/21caijing/channel/海洋经济",
      },
      {
        title: "数字合规",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/compliance"],
        target: "/21caijing/channel/数字合规",
      },
      {
        title: "公司",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/company"],
        target: "/21caijing/channel/公司",
      },
      {
        title: "公司/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/动态",
      },
      {
        title: "公司/电子通信",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/电子通信",
      },
      {
        title: "公司/互联网",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/互联网",
      },
      {
        title: "公司/高端制造",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/高端制造",
      },
      {
        title: "公司/新能源",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/新能源",
      },
      {
        title: "公司/消费",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/消费",
      },
      {
        title: "公司/地产基建",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/地产基建",
      },
      {
        title: "公司/IPO",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/IPO",
      },
      {
        title: "公司/文旅",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/公司/文旅",
      },
      {
        title: "人文",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/life"],
        target: "/21caijing/channel/人文",
      },
      {
        title: "SFC Global",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/SFCGlobal"],
        target: "/21caijing/channel/SFC Global",
      },
      {
        title: "SFC Global/News",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/SFC Global/News",
      },
      {
        title: "SFC Global/SFC Markets and Finance",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/SFC Global/SFC Markets and Finance",
      },
      {
        title: "SFC Global/SFC Market Talk",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/SFC Global/SFC Market Talk",
      },
      {
        title: "SFC Global/CBN",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/SFC Global/CBN",
      },
      {
        title: "SFC Global/Multinationals on China",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/SFC Global/Multinationals on China",
      },
      {
        title: "SFC Global/Companies in the GBA",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/SFC Global/Companies in the GBA",
      },
      {
        title: "南方财经报道",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/nfcjbd"],
        target: "/21caijing/channel/南方财经报道",
      },
      {
        title: "专题",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/jujiao"],
        target: "/21caijing/channel/专题",
      },
      {
        title: "链上预制菜",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/precookedfood"],
        target: "/21caijing/channel/链上预制菜",
      },
      {
        title: "链上预制菜/动态",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/链上预制菜/动态",
      },
      {
        title: "链上预制菜/活动",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/链上预制菜/活动",
      },
      {
        title: "链上预制菜/报道",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/链上预制菜/报道",
      },
      {
        title: "链上预制菜/智库/课题",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/链上预制菜/智库/课题",
      },
      {
        title: "链上预制菜/数据/创新案例",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/链上预制菜/数据/创新案例",
      },
      {
        title: "链上预制菜/链接平台",
        docs: "https://docs.rsshub.app/routes/finance",
        source: ["/#/channel/investment"],
        target: "/21caijing/channel/链上预制菜/链接平台",
      },
    ],
  },
  "30secondsofcode.org": {
    _name: "30 Seconds of code",
    ".": [
      {
        title: "Category and Subcategory",
        docs: "https://docs.rsshub.app/routes/programming",
        source: ["/:category/:subCategory/", "/:category/"],
        target: "/30secondsofcode/category/:category/:subCategory",
      },
      {
        title: "New & Popular Snippets",
        docs: "https://docs.rsshub.app/routes/programming",
        source: ["/"],
        target: "/30secondsofcode/latest",
      },
    ],
  },
  "36kr.com": {
    _name: "36kr",
    ".": [
      {
        title: "资讯热榜",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/hot-list/:category", "/"],
        target: "/36kr/hot-list/:category",
      },
    ],
  },
  "3dmgame.com": {
    _name: "3DMGame",
    ".": [
      {
        title: "游戏资讯",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/games/:name/:type"],
        target: "/3dmgame/games/:name/:type?",
      },
      {
        title: "新闻中心",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/news/:category", "/news"],
        target: "/3dmgame/news/:category?",
      },
    ],
  },
  "423down.com": {
    _name: "423Down",
    ".": [
      {
        title: "423Down",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/:category", "/"],
        target:
          '/423downparams=>{const category=params.category;return`/423down${category?`/${category}`:""}`}',
      },
    ],
    www: [
      {
        title: "首页",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/"],
        target: "/423down/",
      },
      {
        title: "安卓软件",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/apk"],
        target: "/423down/apk",
      },
      {
        title: "电脑软件 - 原创软件",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/zd423"],
        target: "/423down/zd423",
      },
      {
        title: "电脑软件 - 媒体播放",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/multimedia"],
        target: "/423down/multimedia",
      },
      {
        title: "电脑软件 - 网页浏览",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/browser"],
        target: "/423down/browser",
      },
      {
        title: "电脑软件 - 图形图像",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/image"],
        target: "/423down/image",
      },
      {
        title: "电脑软件 - 聊天软件",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/im"],
        target: "/423down/im",
      },
      {
        title: "电脑软件 - 办公软件",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/work"],
        target: "/423down/work",
      },
      {
        title: "电脑软件 - 上传下载",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/down"],
        target: "/423down/down",
      },
      {
        title: "电脑软件 - 实用软件",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/softtool"],
        target: "/423down/softtool",
      },
      {
        title: "电脑软件 - 系统辅助",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/systemsoft"],
        target: "/423down/systemsoft",
      },
      {
        title: "电脑软件 - 系统必备",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/systemplus"],
        target: "/423down/systemplus",
      },
      {
        title: "电脑软件 - 安全软件",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/security"],
        target: "/423down/security",
      },
      {
        title: "电脑软件 - 补丁相关",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/patch"],
        target: "/423down/patch",
      },
      {
        title: "电脑软件 - 硬件相关",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/hardware"],
        target: "/423down/hardware",
      },
      {
        title: "操作系统 - Windows 11",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/win11"],
        target: "/423down/win11",
      },
      {
        title: "操作系统 - Windows 10",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/win10"],
        target: "/423down/win10",
      },
      {
        title: "操作系统 - Windows 7",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/win7"],
        target: "/423down/win7",
      },
      {
        title: "操作系统 - Windows XP",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/win7/winxp"],
        target: "/423down/win7/winxp",
      },
      {
        title: "操作系统 - WinPE",
        docs: "https://docs.rsshub.app/routes/program-update",
        source: ["/pe-system"],
        target: "/423down/pe-system",
      },
    ],
  },
  "4gamers.com.tw": {
    _name: "4Gamers",
    www: [
      {
        title: "Unknown",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/news", "/"],
        target: "/4gamers/",
      },
      {
        title: "Unknown",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/news", "/"],
        target: "/4gamers/category/:category",
      },
      {
        title: "标签",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/news/tag/:tag"],
        target: "/4gamers/tag/:tag",
      },
      {
        title: "主題",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/news/option-cfg/:topic"],
        target: "/4gamers/topic/:topic",
      },
    ],
  },
  "4khd.com": {
    _name: "4KHD",
    www: [
      {
        title: "Category",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/pages/:category"],
        target: "/4khd/category/:category",
      },
      {
        title: "Latest",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/4khd/",
      },
    ],
  },
  "4kup.net": {
    _name: "4KUP",
    ".": [
      {
        title: "Category",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/category/:category"],
        target: "/4kup/category/:category",
      },
      {
        title: "Latest",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/4kup/",
      },
      {
        title: "Popular",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/:period"],
        target: "/4kup/popular/:period",
      },
      {
        title: "Tag",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/tag/:tag"],
        target: "/4kup/tag/:tag",
      },
    ],
  },
  "50forum.org.cn": {
    _name: "经济 50 人论坛",
    www: [
      {
        title: "Unknown",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/portal/list/index.html?id=6", "/"],
        target: "/50forum/",
      },
    ],
  },
  "51cto.com": {
    _name: "51CTO",
    ".": [
      {
        title: "推荐",
        docs: "https://docs.rsshub.app/routes/programming",
        source: ["/"],
        target: "/51cto/index/recommend",
      },
    ],
  },
  "51read.org": {
    _name: "51Read",
    m: [
      {
        title: "章节",
        docs: "https://docs.rsshub.app/routes/reading",
        source: ["/xiaoshuo/:id"],
        target: "/51read/article/:id",
      },
    ],
    ".": [
      {
        title: "章节",
        docs: "https://docs.rsshub.app/routes/reading",
        source: ["/xiaoshuo/:id"],
        target: "/51read/article/:id",
      },
    ],
  },
  "52hrtt.com": {
    _name: "52hrtt 华人头条",
    ".": [
      {
        title: "专题",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/global/n/w/symposium/:id"],
        target: "/52hrtt/symposium/:id",
      },
    ],
  },
  "5eplay.com": {
    _name: "5EPLAY",
    csgo: [
      {
        title: "新闻列表",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/", "/article"],
        target: "/5eplay/article",
      },
    ],
  },
  "5music.com.tw": {
    _name: "五大唱片",
    www: [
      {
        title: "新貨上架",
        docs: "https://docs.rsshub.app/routes/shopping",
        source: ["/New_releases.asp", "/"],
        target: "/5music/new-releases",
      },
    ],
  },
  "69shuba.cx": {
    _name: "69书吧",
    www: [
      {
        title: "章节",
        docs: "https://docs.rsshub.app/routes/reading",
        source: ["/book/:id.htm"],
        target: "/69shu/article/:id",
      },
    ],
  },
  "6parkbbs.com": {
    _name: "留园网",
    club: [
      {
        title: "首页",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/:id/index.php", "/"],
        target: "/6park/:id?",
      },
      {
        title: "新闻栏目",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/:id/index.php", "/"],
        target: "/6park/:id?",
      },
    ],
  },
  "hao6v.me": {
    _name: "6v 电影",
    www: [
      {
        title: "分类",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/:category"],
        target: "/6v123/:category",
      },
      {
        title: "最新电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/dy/"],
        target: "/6v123/dy",
      },
      {
        title: "国语配音电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/gydy/"],
        target: "/6v123/gydy",
      },
      {
        title: "动漫新番",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/zydy/"],
        target: "/6v123/zydy",
      },
      {
        title: "经典高清",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/gq/"],
        target: "/6v123/gq",
      },
      {
        title: "动画电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/jddy/"],
        target: "/6v123/jddy",
      },
      {
        title: "3D电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/3D/"],
        target: "/6v123/3D",
      },
      {
        title: "真人秀",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/shoujidianyingmp4/"],
        target: "/6v123/shoujidianyingmp4",
      },
      {
        title: "国剧",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/dlz/"],
        target: "/6v123/dlz",
      },
      {
        title: "日韩剧",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/rj/"],
        target: "/6v123/rj",
      },
      {
        title: "欧美剧",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/mj/"],
        target: "/6v123/mj",
      },
      {
        title: "综艺节目",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/zy/"],
        target: "/6v123/zy",
      },
      {
        title: "港台电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/gangtaidianying/"],
        target: "/6v123/s/gangtaidianying",
      },
      {
        title: "日韩电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/jingdiandianying/"],
        target: "/6v123/s/jingdiandianying",
      },
      {
        title: "喜剧",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/xiju/"],
        target: "/6v123/s/xiju",
      },
      {
        title: "动作",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/dongzuo/"],
        target: "/6v123/s/dongzuo",
      },
      {
        title: "爱情",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/aiqing/"],
        target: "/6v123/s/aiqing",
      },
      {
        title: "科幻",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/kehuan/"],
        target: "/6v123/s/kehuan",
      },
      {
        title: "奇幻",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/qihuan/"],
        target: "/6v123/s/qihuan",
      },
      {
        title: "神秘",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/shenmi/"],
        target: "/6v123/s/shenmi",
      },
      {
        title: "幻想",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/huanxiang/"],
        target: "/6v123/s/huanxiang",
      },
      {
        title: "恐怖",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/kongbu/"],
        target: "/6v123/s/kongbu",
      },
      {
        title: "战争",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/zhanzheng/"],
        target: "/6v123/s/zhanzheng",
      },
      {
        title: "冒险",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/maoxian/"],
        target: "/6v123/s/maoxian",
      },
      {
        title: "惊悚",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/jingsong/"],
        target: "/6v123/s/jingsong",
      },
      {
        title: "剧情",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/juqingpian/"],
        target: "/6v123/s/juqingpian",
      },
      {
        title: "传记",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/zhuanji/"],
        target: "/6v123/s/zhuanji",
      },
      {
        title: "历史",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/lishi/"],
        target: "/6v123/s/lishi",
      },
      {
        title: "纪录",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/jilu/"],
        target: "/6v123/s/jilu",
      },
      {
        title: "印度电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/yindudianying/"],
        target: "/6v123/s/yindudianying",
      },
      {
        title: "国产电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/guochandianying/"],
        target: "/6v123/s/guochandianying",
      },
      {
        title: "欧洲电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/s/xijudianying/"],
        target: "/6v123/s/xijudianying",
      },
    ],
  },
  "hao6v.com": {
    _name: "6v 电影",
    ".": [
      {
        title: "最新电影",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/", "/gvod/zx.html"],
        target: "/6v123/latestMovies",
      },
      {
        title: "最新电视剧",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/", "/gvod/dsj.html"],
        target: "/6v123/latestTVSeries",
      },
    ],
  },
  "78dm.net": {
    _name: "78 动漫",
    www: [
      {
        title: "分类",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category"],
        target:
          '/78dmparams=>{const category=params.category?.replace(/\\.html$/,"");return`/78dm${category?`/${category}`:""}`}',
      },
      {
        title: "新品速递 - 全部",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/0/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/0/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 变形金刚",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/3/0/0/0/0/0/0/1.html"],
        target: "/78dm/news/3/0/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 高达",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/4/0/0/0/0/0/0/1.html"],
        target: "/78dm/news/4/0/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 圣斗士",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/2/0/0/0/0/0/0/1.html"],
        target: "/78dm/news/2/0/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 海贼王",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/8/0/0/0/0/0/0/1.html"],
        target: "/78dm/news/8/0/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - PVC手办",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/5/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/5/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 拼装模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/1/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/1/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 机甲成品",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/2/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/2/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 特摄",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/3/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/3/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 美系",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/4/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/4/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - GK",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/6/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/6/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 扭蛋盒蛋食玩",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/7/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/7/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 其他",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/8/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/8/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 综合",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/9/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/9/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 军模",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/10/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/10/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 民用",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/11/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/11/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 配件",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/12/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/12/0/0/0/0/0/1",
      },
      {
        title: "新品速递 - 工具",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/news/0/13/0/0/0/0/0/1.html"],
        target: "/78dm/news/0/13/0/0/0/0/0/1",
      },
      {
        title: "精彩评测 - 全部",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/0/0/0/1.html"],
        target: "/78dm/eval_list/0/0/0/1",
      },
      {
        title: "精彩评测 - 变形金刚",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/109/0/0/1.html"],
        target: "/78dm/eval_list/109/0/0/1",
      },
      {
        title: "精彩评测 - 高达",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/110/0/0/1.html"],
        target: "/78dm/eval_list/110/0/0/1",
      },
      {
        title: "精彩评测 - 圣斗士",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/111/0/0/1.html"],
        target: "/78dm/eval_list/111/0/0/1",
      },
      {
        title: "精彩评测 - 海贼王",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/112/0/0/1.html"],
        target: "/78dm/eval_list/112/0/0/1",
      },
      {
        title: "精彩评测 - PVC手办",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/115/0/0/1.html"],
        target: "/78dm/eval_list/115/0/0/1",
      },
      {
        title: "精彩评测 - 拼装模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/113/0/0/1.html"],
        target: "/78dm/eval_list/113/0/0/1",
      },
      {
        title: "精彩评测 - 机甲成品",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/114/0/0/1.html"],
        target: "/78dm/eval_list/114/0/0/1",
      },
      {
        title: "精彩评测 - 特摄",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/116/0/0/1.html"],
        target: "/78dm/eval_list/116/0/0/1",
      },
      {
        title: "精彩评测 - 美系",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/117/0/0/1.html"],
        target: "/78dm/eval_list/117/0/0/1",
      },
      {
        title: "精彩评测 - GK",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/118/0/0/1.html"],
        target: "/78dm/eval_list/118/0/0/1",
      },
      {
        title: "精彩评测 - 综合",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/eval_list/120/0/0/1.html"],
        target: "/78dm/eval_list/120/0/0/1",
      },
      {
        title: "好贴推荐 - 全部",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/0/0/0/1.html"],
        target: "/78dm/ht_list/0/0/0/1",
      },
      {
        title: "好贴推荐 - 变形金刚",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/95/0/0/1.html"],
        target: "/78dm/ht_list/95/0/0/1",
      },
      {
        title: "好贴推荐 - 高达",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/96/0/0/1.html"],
        target: "/78dm/ht_list/96/0/0/1",
      },
      {
        title: "好贴推荐 - 圣斗士",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/98/0/0/1.html"],
        target: "/78dm/ht_list/98/0/0/1",
      },
      {
        title: "好贴推荐 - 海贼王",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/99/0/0/1.html"],
        target: "/78dm/ht_list/99/0/0/1",
      },
      {
        title: "好贴推荐 - PVC手办",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/100/0/0/1.html"],
        target: "/78dm/ht_list/100/0/0/1",
      },
      {
        title: "好贴推荐 - 拼装模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/101/0/0/1.html"],
        target: "/78dm/ht_list/101/0/0/1",
      },
      {
        title: "好贴推荐 - 机甲成品",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/102/0/0/1.html"],
        target: "/78dm/ht_list/102/0/0/1",
      },
      {
        title: "好贴推荐 - 特摄",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/103/0/0/1.html"],
        target: "/78dm/ht_list/103/0/0/1",
      },
      {
        title: "好贴推荐 - 美系",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/104/0/0/1.html"],
        target: "/78dm/ht_list/104/0/0/1",
      },
      {
        title: "好贴推荐 - GK",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/105/0/0/1.html"],
        target: "/78dm/ht_list/105/0/0/1",
      },
      {
        title: "好贴推荐 - 综合",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/107/0/0/1.html"],
        target: "/78dm/ht_list/107/0/0/1",
      },
      {
        title: "好贴推荐 - 装甲战车",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/131/0/0/1.html"],
        target: "/78dm/ht_list/131/0/0/1",
      },
      {
        title: "好贴推荐 - 舰船模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/132/0/0/1.html"],
        target: "/78dm/ht_list/132/0/0/1",
      },
      {
        title: "好贴推荐 - 飞机模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/133/0/0/1.html"],
        target: "/78dm/ht_list/133/0/0/1",
      },
      {
        title: "好贴推荐 - 民用模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/134/0/0/1.html"],
        target: "/78dm/ht_list/134/0/0/1",
      },
      {
        title: "好贴推荐 - 兵人模型",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/ht_list/135/0/0/1.html"],
        target: "/78dm/ht_list/135/0/0/1",
      },
    ],
  },
  "8kcosplay.com": {
    _name: "8KCosplay",
    ".": [
      {
        title: "Unknown",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/8kcos/cat/:cat{.+}?",
      },
      {
        title: "最新",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/8kcos/",
      },
      {
        title: "标签",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/tag/:tag"],
        target: "/8kcos/tag/:tag",
      },
    ],
  },
  "91porn.com": {
    _name: "91porn",
    ".": [
      {
        title: "Author",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/index.php"],
        target: "/91porn/author/:uid/:lang?",
      },
      {
        title: "Hot Video Today",
        docs: "https://docs.rsshub.app/routes/multimedia",
        source: ["/index.php"],
        target: "/91porn/:lang?",
      },
    ],
  },
  "95mm.org": {
    _name: "MM 范",
    ".": [
      {
        title: "集合",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/95mm/category/:category",
      },
      {
        title: "分类",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/95mm/tab/:tab?",
      },
      {
        title: "标签",
        docs: "https://docs.rsshub.app/routes/picture",
        source: ["/"],
        target: "/95mm/tag/:tag",
      },
    ],
  },
  "a9vg.com": {
    _name: "A9VG 电玩部落",
    www: [
      {
        title: "新闻",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/:category"],
        target:
          '/a9vgparams=>{const category=params.category;return category?`/${category}`:""}',
      },
      {
        title: "All",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/All"],
        target: "/a9vg/news/All",
      },
      {
        title: "PS4",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/PS4"],
        target: "/a9vg/news/PS4",
      },
      {
        title: "PS5",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/PS5"],
        target: "/a9vg/news/PS5",
      },
      {
        title: "Switch",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/Switch"],
        target: "/a9vg/news/Switch",
      },
      {
        title: "Xbox One",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/XboxOne"],
        target: "/a9vg/news/XboxOne",
      },
      {
        title: "XSX",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/XSX"],
        target: "/a9vg/news/XSX",
      },
      {
        title: "PC",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/PC"],
        target: "/a9vg/news/PC",
      },
      {
        title: "业界",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/Industry"],
        target: "/a9vg/news/Industry",
      },
      {
        title: "厂商",
        docs: "https://docs.rsshub.app/routes/game",
        source: ["/list/news/Factory"],
        target: "/a9vg/news/Factory",
      },
    ],
  },
  "aa1.cn": {
    _name: "夏柔",
    "60s": [
      {
        title: "每日新闻",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/", "/category/:category"],
        target: "/aa1/60s/:category",
      },
      {
        title: "全部",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/"],
        target: "/aa1/60s",
      },
      {
        title: "新闻词文章数据",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/category/freenewsdata"],
        target: "/aa1/60s/freenewsdata",
      },
      {
        title: "最新",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/category/new"],
        target: "/aa1/60s/new",
      },
      {
        title: "本平台同款自动发文章插件",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/category/1"],
        target: "/aa1/60s/1",
      },
      {
        title: "每天60秒读懂世界",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/category/news"],
        target: "/aa1/60s/news",
      },
    ],
  },
  "aamacau.com": {
    _name: "論盡媒體 AllAboutMacau Media",
    ".": [
      {
        title: "话题",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/"],
        target: "/aamacau/:category?/:id?",
      },
    ],
  },
  "abc.net.au": {
    _name: "ABC News (Australian Broadcasting Corporation)",
    ".": [
      {
        title: "Channel & Topic",
        docs: "https://docs.rsshub.app/routes/traditional-media",
        source: ["/:category*"],
        target: "/abc/:category",
      },
    ],
  },
  "abmedia.io": {
    _name: "链新闻 ABMedia",
    www: [
      {
        title: "类别",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/category/:catehory"],
        target: "/abmedia/:category",
      },
      {
        title: "首页最新新闻",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/"],
        target: "/abmedia/index",
      },
    ],
  },
  "ahhhhfs.com": {
    _name: "A 姐分享",
    ".": [
      {
        title: "存档列表",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/"],
        target: "/abskoop/",
      },
      {
        title: "存档列表 - NSFW",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/"],
        target: "/abskoop/nsfw",
      },
    ],
  },
  "academia.edu": {
    _name: "Academia",
    ".": [
      {
        title: "interest",
        docs: "https://docs.rsshub.app/routes/journal",
        source: ["/Documents/in/:interest"],
        target: "/academia/topic/:interest",
      },
    ],
  },
  "accessbriefing.com": {
    _name: "Access Briefing",
    ".": [
      {
        title: "Articles",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category*"],
        target: "/accessbriefing/:category",
      },
      {
        title: "Latest - News",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/news"],
        target: "/accessbriefing/latest/news",
      },
      {
        title: "Latest - Products & Technology",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/products-and-technology"],
        target: "/accessbriefing/latest/products-and-technology",
      },
      {
        title: "Latest - Rental News",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/rental-news"],
        target: "/accessbriefing/latest/rental-news",
      },
      {
        title: "Latest - People",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/people"],
        target: "/accessbriefing/latest/people",
      },
      {
        title: "Latest - Regualtions & Safety",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/regualtions-safety"],
        target: "/accessbriefing/latest/regualtions-safety",
      },
      {
        title: "Latest - Finance",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/finance"],
        target: "/accessbriefing/latest/finance",
      },
      {
        title: "Latest - Sustainability",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/latest/sustainability"],
        target: "/accessbriefing/latest/sustainability",
      },
      {
        title: "Insight - Interviews",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/insight/interviews"],
        target: "/accessbriefing/insight/interviews",
      },
      {
        title: "Insight - Longer reads",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/insight/longer-reads"],
        target: "/accessbriefing/insight/longer-reads",
      },
      {
        title: "Insight - Videos and podcasts",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/insight/videos-and-podcasts"],
        target: "/accessbriefing/insight/videos-and-podcasts",
      },
    ],
  },
  "acfun.cn": {
    _name: "AcFun",
    www: [
      {
        title: "用户投稿",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/u/:id"],
        target: "/acfun/user/video/:id",
      },
    ],
  },
  "acg17.com": {
    _name: "ACG17",
    ".": [
      {
        title: "全部文章",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/post"],
        target: "/acg17/post/all",
      },
    ],
  },
  "acgvinyl.com": {
    _name: "ACG Vinyl - 黑胶",
    www: [
      {
        title: "News",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/"],
        target: "/acgvinyl/news",
      },
    ],
  },
  "acs.org": {
    _name: "ACS Publications",
    pubs: [
      {
        title: "Unknown",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/journal/:id", "/"],
        target: "/acs/journal/:id",
      },
    ],
  },
  "adquan.com": {
    _name: "广告门",
    www: [
      {
        title: "案例库",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/case_library/index"],
        target: "/adquan/case_library",
      },
      {
        title: "最新文章",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/"],
        target: "/adquan/",
      },
    ],
  },
  "aeaweb.org": {
    _name: "American Economic Association",
    ".": [
      {
        title: "Journal",
        docs: "https://docs.rsshub.app/routes/journal",
        source: ["/journals/:id", "/"],
        target: "/aeaweb/:id",
      },
    ],
  },
  "aeon.co": {
    _name: "AEON",
    ".": [
      {
        title: "Categories",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category"],
        target: "/aeon/category/:category",
      },
      {
        title: "Types",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:type"],
        target: "/aeon/:type",
      },
    ],
  },
  "aflcio.org": {
    _name: "AFL-CIO",
    ".": [
      {
        title: "Blog",
        docs: "https://docs.rsshub.app/routes/other",
        source: ["/blog"],
        target: "/aflcio/blog",
      },
    ],
  },
  "afr.com": {
    _name: "The Australian Financial Review",
    www: [
      {
        title: "Latest",
        docs: "https://docs.rsshub.app/routes/traditional-media",
        source: ["/latest", "/"],
        target: "/afr/latest",
      },
      {
        title: "Navigation",
        docs: "https://docs.rsshub.app/routes/traditional-media",
        source: ["/path*"],
        target: "/afr/navigation/:path{.+}",
      },
    ],
  },
  "agemys.org": {
    _name: "AGE 动漫",
    ".": [
      {
        title: "番剧详情",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/detail/:id"],
        target: "/agefans/detail/:id",
      },
      {
        title: "最近更新",
        docs: "https://docs.rsshub.app/routes/anime",
        source: ["/update", "/"],
        target: "/agefans/update",
      },
    ],
  },
  "aotter.net": {
    _name: "电獭少女",
    agirls: [
      {
        title: "当前精选主题列表",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/", "/topic"],
        target: "/agirls/topic_list",
      },
      {
        title: "精选主题",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/:topic"],
        target: "/agirls/topic/:topic",
      },
      {
        title: "分类",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/posts/:category"],
        target: "/agirls/:category",
      },
    ],
  },
  "gitlab.io": {
    _name: "AG⓪RA",
    agora0: [
      {
        title: "零博客",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/blog/:category", "/"],
        target: "/agora0/:category",
      },
    ],
  },
  "github.io": {
    _name: "AG⓪RA",
    agorahub: [
      {
        title: "共和報",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/pen0"],
        target: "/agora0/pen0",
      },
    ],
    mrinalxdev: [
      {
        title: "Blog",
        docs: "https://docs.rsshub.app/routes/blog",
        source: ["/mrinalxblogs/blogs/blog.html", "/mrinalxblogs/"],
        target: "/mrinalxdev/blog",
      },
    ],
    njuferret: [
      {
        title: "Blogs",
        docs: "https://docs.rsshub.app/routes/blog",
        source: ["/"],
        target: "/njuferret/blog",
      },
    ],
    qwenlm: [
      {
        title: "Blog",
        docs: "https://docs.rsshub.app/routes/blog",
        source: ["/blog/", "/:lang/blog/"],
        target: "/qwenlm/qwenlm/blog/:lang",
      },
    ],
  },
  "agri.cn": {
    _name: "中国农业农村信息网",
    www: [
      {
        title: "分类",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/:category"],
        target:
          '/agriparams=>{const category=params.category;return category?`/${category}`:""}',
      },
      {
        title: "机构 - 成果展示",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/jg/cgzs/"],
        target: "/agri/jg/cgzs",
      },
      {
        title: "资讯 - 最新发布",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zx/zxfb/"],
        target: "/agri/zx/zxfb",
      },
      {
        title: "资讯 - 农业要闻",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zx/nyyw/"],
        target: "/agri/zx/nyyw",
      },
      {
        title: "资讯 - 中心动态",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zx/zxdt/"],
        target: "/agri/zx/zxdt",
      },
      {
        title: "资讯 - 通知公告",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zx/hxgg/"],
        target: "/agri/zx/hxgg",
      },
      {
        title: "资讯 - 全国信息联播",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zx/xxlb/"],
        target: "/agri/zx/xxlb",
      },
      {
        title: "生产 - 生产动态",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sc/scdt/"],
        target: "/agri/sc/scdt",
      },
      {
        title: "生产 - 农业品种",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sc/nypz/"],
        target: "/agri/sc/nypz",
      },
      {
        title: "生产 - 农事指导",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sc/nszd/"],
        target: "/agri/sc/nszd",
      },
      {
        title: "生产 - 农业气象",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sc/nyqx/"],
        target: "/agri/sc/nyqx",
      },
      {
        title: "生产 - 专项监测",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sc/zxjc/"],
        target: "/agri/sc/zxjc",
      },
      {
        title: "数据 - 市场动态",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sj/scdt/"],
        target: "/agri/sj/scdt",
      },
      {
        title: "数据 - 供需形势",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sj/gxxs/"],
        target: "/agri/sj/gxxs",
      },
      {
        title: "数据 - 监测预警",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/sj/jcyj/"],
        target: "/agri/sj/jcyj",
      },
      {
        title: "信息化 - 智慧农业",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/xxh/zhny/"],
        target: "/agri/xxh/zhny",
      },
      {
        title: "信息化 - 信息化标准",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/xxh/xxhbz/"],
        target: "/agri/xxh/xxhbz",
      },
      {
        title: "信息化 - 中国乡村资讯",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/xxh/zgxczx/"],
        target: "/agri/xxh/zgxczx",
      },
      {
        title: "视频 - 新闻资讯",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/video/xwzx/nyxw/"],
        target: "/agri/video/xwzx/nyxw",
      },
      {
        title: "视频 - 致富天地",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/video/zftd/"],
        target: "/agri/video/zftd",
      },
      {
        title: "视频 - 地方农业",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/video/dfny/beijing/"],
        target: "/agri/video/dfny/beijing",
      },
      {
        title: "视频 - 气象农业",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/video/qxny/"],
        target: "/agri/video/qxny",
      },
      {
        title: "视频 - 讲座培训",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/video/jzpx/"],
        target: "/agri/video/jzpx",
      },
      {
        title: "视频 - 文化生活",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/video/whsh/"],
        target: "/agri/video/whsh",
      },
    ],
  },
  "ahjzu.edu.cn": {
    _name: "安徽建筑大学",
    news: [
      {
        title: "通知公告",
        docs: "https://docs.rsshub.app/routes/university",
        source: ["/20/list.htm"],
        target: "/ahjzu/news",
      },
    ],
  },
  "ai-bot.cn": {
    _name: "AI工具集",
    ".": [
      {
        title: "每日AI资讯",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/daily-ai-news", "/daily-ai-news/"],
        target: "/ai-bot/daily-ai-news",
      },
    ],
  },
  "aibase.com": {
    _name: "AIbase",
    www: [
      {
        title: "AI日报",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zh/daily"],
        target: "/aibase/daily",
      },
      {
        title: "资讯",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/zh/news"],
        target: "/aibase/news",
      },
    ],
    top: [
      {
        title: "发现",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/:id"],
        target:
          '/aibaseparams=>{const id=params.id;return`/discover${id?`/${id}`:""}`}',
      },
      {
        title: "图像处理 - 图片背景移除",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-49"],
        target: "/aibase/discover/37-49",
      },
      {
        title: "图像处理 - 图片无损放大",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-50"],
        target: "/aibase/discover/37-50",
      },
      {
        title: "图像处理 - 图片AI修复",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-51"],
        target: "/aibase/discover/37-51",
      },
      {
        title: "图像处理 - 图像生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-52"],
        target: "/aibase/discover/37-52",
      },
      {
        title: "图像处理 - Ai图片拓展",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-53"],
        target: "/aibase/discover/37-53",
      },
      {
        title: "图像处理 - Ai漫画生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-54"],
        target: "/aibase/discover/37-54",
      },
      {
        title: "图像处理 - Ai生成写真",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-55"],
        target: "/aibase/discover/37-55",
      },
      {
        title: "图像处理 - 电商图片制作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-83"],
        target: "/aibase/discover/37-83",
      },
      {
        title: "图像处理 - Ai图像转视频",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/37-86"],
        target: "/aibase/discover/37-86",
      },
      {
        title: "视频创作 - 视频剪辑",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/38-56"],
        target: "/aibase/discover/38-56",
      },
      {
        title: "视频创作 - 生成视频",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/38-57"],
        target: "/aibase/discover/38-57",
      },
      {
        title: "视频创作 - Ai动画制作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/38-58"],
        target: "/aibase/discover/38-58",
      },
      {
        title: "视频创作 - 字幕生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/38-84"],
        target: "/aibase/discover/38-84",
      },
      {
        title: "效率助手 - AI文档工具",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/39-59"],
        target: "/aibase/discover/39-59",
      },
      {
        title: "效率助手 - PPT",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/39-60"],
        target: "/aibase/discover/39-60",
      },
      {
        title: "效率助手 - 思维导图",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/39-61"],
        target: "/aibase/discover/39-61",
      },
      {
        title: "效率助手 - 表格处理",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/39-62"],
        target: "/aibase/discover/39-62",
      },
      {
        title: "效率助手 - Ai办公助手",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/39-63"],
        target: "/aibase/discover/39-63",
      },
      {
        title: "写作灵感 - 文案写作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/40-64"],
        target: "/aibase/discover/40-64",
      },
      {
        title: "写作灵感 - 论文写作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/40-88"],
        target: "/aibase/discover/40-88",
      },
      {
        title: "艺术灵感 - 音乐创作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/41-65"],
        target: "/aibase/discover/41-65",
      },
      {
        title: "艺术灵感 - 设计创作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/41-66"],
        target: "/aibase/discover/41-66",
      },
      {
        title: "艺术灵感 - Ai图标生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/41-67"],
        target: "/aibase/discover/41-67",
      },
      {
        title: "趣味 - Ai名字生成器",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/42-68"],
        target: "/aibase/discover/42-68",
      },
      {
        title: "趣味 - 游戏娱乐",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/42-71"],
        target: "/aibase/discover/42-71",
      },
      {
        title: "趣味 - 其他",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/42-72"],
        target: "/aibase/discover/42-72",
      },
      {
        title: "开发编程 - 开发编程",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/43-73"],
        target: "/aibase/discover/43-73",
      },
      {
        title: "开发编程 - Ai开放平台",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/43-74"],
        target: "/aibase/discover/43-74",
      },
      {
        title: "开发编程 - Ai算力平台",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/43-75"],
        target: "/aibase/discover/43-75",
      },
      {
        title: "聊天机器人 - 智能聊天",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/44-76"],
        target: "/aibase/discover/44-76",
      },
      {
        title: "聊天机器人 - 智能客服",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/44-77"],
        target: "/aibase/discover/44-77",
      },
      {
        title: "翻译 - 翻译",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/46-79"],
        target: "/aibase/discover/46-79",
      },
      {
        title: "教育学习 - 教育学习",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/47-80"],
        target: "/aibase/discover/47-80",
      },
      {
        title: "智能营销 - 智能营销",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/48-81"],
        target: "/aibase/discover/48-81",
      },
      {
        title: "法律 - 法律",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/discover/138-139"],
        target: "/aibase/discover/138-139",
      },
      {
        title: "标签",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/:id"],
        target:
          '/aibaseparams=>{const id=params.id;return`/topic${id?`/${id}`:""}`}',
      },
      {
        title: "AI",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/AI"],
        target: "/aibase/topic/AI",
      },
      {
        title: "人工智能",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD"],
        target: "/aibase/topic/人工智能",
      },
      {
        title: "图像生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%90"],
        target: "/aibase/topic/图像生成",
      },
      {
        title: "自动化",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%87%AA%E5%8A%A8%E5%8C%96"],
        target: "/aibase/topic/自动化",
      },
      {
        title: "AI助手",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/AI%E5%8A%A9%E6%89%8B"],
        target: "/aibase/topic/AI助手",
      },
      {
        title: "聊天机器人",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%81%8A%E5%A4%A9%E6%9C%BA%E5%99%A8%E4%BA%BA"],
        target: "/aibase/topic/聊天机器人",
      },
      {
        title: "个性化",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E4%B8%AA%E6%80%A7%E5%8C%96"],
        target: "/aibase/topic/个性化",
      },
      {
        title: "社交媒体",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E7%A4%BE%E4%BA%A4%E5%AA%92%E4%BD%93"],
        target: "/aibase/topic/社交媒体",
      },
      {
        title: "图像处理",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86"],
        target: "/aibase/topic/图像处理",
      },
      {
        title: "数据分析",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90"],
        target: "/aibase/topic/数据分析",
      },
      {
        title: "自然语言处理",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: [
          "/topic/%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86",
        ],
        target: "/aibase/topic/自然语言处理",
      },
      {
        title: "聊天",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%81%8A%E5%A4%A9"],
        target: "/aibase/topic/聊天",
      },
      {
        title: "机器学习",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0"],
        target: "/aibase/topic/机器学习",
      },
      {
        title: "教育",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%95%99%E8%82%B2"],
        target: "/aibase/topic/教育",
      },
      {
        title: "内容创作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%86%85%E5%AE%B9%E5%88%9B%E4%BD%9C"],
        target: "/aibase/topic/内容创作",
      },
      {
        title: "生产力",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E7%94%9F%E4%BA%A7%E5%8A%9B"],
        target: "/aibase/topic/生产力",
      },
      {
        title: "设计",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%AE%BE%E8%AE%A1"],
        target: "/aibase/topic/设计",
      },
      {
        title: "ChatGPT",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/ChatGPT"],
        target: "/aibase/topic/ChatGPT",
      },
      {
        title: "创意",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%88%9B%E6%84%8F"],
        target: "/aibase/topic/创意",
      },
      {
        title: "开源",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%BC%80%E6%BA%90"],
        target: "/aibase/topic/开源",
      },
      {
        title: "写作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%86%99%E4%BD%9C"],
        target: "/aibase/topic/写作",
      },
      {
        title: "效率助手",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%95%88%E7%8E%87%E5%8A%A9%E6%89%8B"],
        target: "/aibase/topic/效率助手",
      },
      {
        title: "学习",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%AD%A6%E4%B9%A0"],
        target: "/aibase/topic/学习",
      },
      {
        title: "插件",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%8F%92%E4%BB%B6"],
        target: "/aibase/topic/插件",
      },
      {
        title: "翻译",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E7%BF%BB%E8%AF%91"],
        target: "/aibase/topic/翻译",
      },
      {
        title: "团队协作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%9B%A2%E9%98%9F%E5%8D%8F%E4%BD%9C"],
        target: "/aibase/topic/团队协作",
      },
      {
        title: "SEO",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/SEO"],
        target: "/aibase/topic/SEO",
      },
      {
        title: "营销",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%90%A5%E9%94%80"],
        target: "/aibase/topic/营销",
      },
      {
        title: "内容生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%86%85%E5%AE%B9%E7%94%9F%E6%88%90"],
        target: "/aibase/topic/内容生成",
      },
      {
        title: "AI技术",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/AI%E6%8A%80%E6%9C%AF"],
        target: "/aibase/topic/AI技术",
      },
      {
        title: "AI工具",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/AI%E5%B7%A5%E5%85%B7"],
        target: "/aibase/topic/AI工具",
      },
      {
        title: "智能助手",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%99%BA%E8%83%BD%E5%8A%A9%E6%89%8B"],
        target: "/aibase/topic/智能助手",
      },
      {
        title: "深度学习",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0"],
        target: "/aibase/topic/深度学习",
      },
      {
        title: "多语言支持",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%A4%9A%E8%AF%AD%E8%A8%80%E6%94%AF%E6%8C%81"],
        target: "/aibase/topic/多语言支持",
      },
      {
        title: "视频",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%A7%86%E9%A2%91"],
        target: "/aibase/topic/视频",
      },
      {
        title: "艺术",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E8%89%BA%E6%9C%AF"],
        target: "/aibase/topic/艺术",
      },
      {
        title: "文本生成",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E6%96%87%E6%9C%AC%E7%94%9F%E6%88%90"],
        target: "/aibase/topic/文本生成",
      },
      {
        title: "开发编程",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%BC%80%E5%8F%91%E7%BC%96%E7%A8%8B"],
        target: "/aibase/topic/开发编程",
      },
      {
        title: "协作",
        docs: "https://docs.rsshub.app/routes/new-media",
        source: ["/topic/%E5%8D%8
Download .txt
gitextract_39z2lr6o/

├── .github/
│   ├── dependabot.yml
│   └── workflows/
│       ├── release.yml
│       ├── submit.yml
│       └── test.yml
├── .gitignore
├── .prettierignore
├── .prettierrc.js
├── .prettierrc.mjs
├── LICENSE
├── README.md
├── components.json
├── package.json
├── postcss.config.js
├── public/
│   └── _locales/
│       ├── en/
│       │   └── messages.json
│       └── zh_CN/
│           └── messages.json
├── src/
│   ├── background/
│   │   ├── badge.ts
│   │   ├── index.ts
│   │   ├── messages/
│   │   │   ├── contentReady.ts
│   │   │   ├── popupReady.ts
│   │   │   ├── refreshRules.ts
│   │   │   ├── requestDisplayedRules.ts
│   │   │   ├── responseDisplayedRules.ts
│   │   │   └── responseRSS.ts
│   │   ├── rss.ts
│   │   ├── rules.ts
│   │   └── update-notifications.ts
│   ├── contents/
│   │   └── index.ts
│   ├── entrypoints/
│   │   ├── background.ts
│   │   ├── content.ts
│   │   ├── offscreen/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   ├── options/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   ├── popup/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   ├── preview/
│   │   │   ├── index.html
│   │   │   └── main.tsx
│   │   └── sandbox/
│   │       ├── index.html
│   │       └── main.ts
│   ├── lib/
│   │   ├── components/
│   │   │   ├── Accordion.tsx
│   │   │   ├── AppearanceSwitch.tsx
│   │   │   ├── Button.tsx
│   │   │   ├── Card.tsx
│   │   │   ├── Input.tsx
│   │   │   ├── Label.tsx
│   │   │   ├── Pagination.tsx
│   │   │   ├── Sheet.tsx
│   │   │   └── Switch.tsx
│   │   ├── config.ts
│   │   ├── hooks/
│   │   │   └── use-dark.ts
│   │   ├── messaging.ts
│   │   ├── offscreen.ts
│   │   ├── quick-subscriptions-logos.tsx
│   │   ├── quick-subscriptions.ts
│   │   ├── radar-rules.ts
│   │   ├── report.ts
│   │   ├── rss.ts
│   │   ├── rsshub.ts
│   │   ├── rules.ts
│   │   ├── storage.ts
│   │   ├── style.css
│   │   ├── types.ts
│   │   └── utils.ts
│   ├── options/
│   │   ├── Siderbar.tsx
│   │   ├── index.tsx
│   │   └── routes/
│   │       ├── About.tsx
│   │       ├── General.tsx
│   │       ├── Rules.tsx
│   │       └── index.tsx
│   ├── popup/
│   │   ├── RSSItem.tsx
│   │   ├── RSSList.tsx
│   │   └── index.tsx
│   ├── sandboxes/
│   │   └── index.ts
│   └── tabs/
│       ├── offscreen.tsx
│       ├── preview.tsx
│       └── sandboxes.ts
├── tailwind.config.js
├── tsconfig.json
└── wxt.config.ts
Download .txt
SYMBOL INDEX (54 symbols across 28 files)

FILE: src/background/rules.ts
  function initSchedule (line 45) | async function initSchedule() {

FILE: src/entrypoints/content.ts
  method main (line 3) | main() {

FILE: src/lib/components/AppearanceSwitch.tsx
  function AppearanceSwitch (line 3) | function AppearanceSwitch({ className = "" }: { className?: string }) {

FILE: src/lib/components/Button.tsx
  type ButtonProps (line 38) | interface ButtonProps

FILE: src/lib/components/Input.tsx
  type InputProps (line 5) | interface InputProps

FILE: src/lib/components/Pagination.tsx
  type PaginationLinkProps (line 37) | type PaginationLinkProps = {

FILE: src/lib/components/Sheet.tsx
  type SheetContentProps (line 52) | interface SheetContentProps

FILE: src/lib/config.ts
  function getConfig (line 43) | async function getConfig() {
  function setConfig (line 52) | async function setConfig(config: Partial<typeof defaultConfig>) {

FILE: src/lib/hooks/use-dark.ts
  function getSnapshot (line 6) | function getSnapshot() {
  function getServerSnapshot (line 10) | function getServerSnapshot(): undefined {
  function subscribe (line 14) | function subscribe(callback: () => void) {
  function useSystemDark (line 22) | function useSystemDark() {
  type Theme (line 27) | type Theme = (typeof themeOptions)[number]
  function isDarkMode (line 29) | function isDarkMode(setting?: Theme | null, isSystemDark?: boolean) {
  function useDark (line 33) | function useDark(themeKey = "use-dark") {

FILE: src/lib/messaging.ts
  type ExtensionMessage (line 1) | type ExtensionMessage = {
  function sendToBackground (line 6) | function sendToBackground<T = any>(message: ExtensionMessage) {
  function sendToContentScript (line 18) | function sendToContentScript<T = any>({

FILE: src/lib/offscreen.ts
  function setupOffscreenDocument (line 4) | async function setupOffscreenDocument(path: string) {

FILE: src/lib/report.ts
  function isSampled (line 1) | function isSampled(rate) {
  function report (line 6) | function report({

FILE: src/lib/rss.ts
  function getPageRSS (line 4) | async function getPageRSS() {

FILE: src/lib/rsshub.ts
  function ruleHandler (line 7) | function ruleHandler(rule: Rule, params, url, html, success, fail) {
  function formatBlank (line 74) | function formatBlank(str1, str2) {
  function getPageRSSHub (line 89) | function getPageRSSHub(data: {
  function getWebsiteRSSHub (line 214) | function getWebsiteRSSHub(data: { url: string; rules: string }) {

FILE: src/lib/rules.ts
  function parseRules (line 9) | function parseRules(rules: string, forceJSON?: boolean) {
  function getRulesCount (line 33) | function getRulesCount(rules: Rules) {
  function getRemoteRules (line 46) | async function getRemoteRules() {

FILE: src/lib/storage.ts
  function getLocalStorage (line 1) | function getLocalStorage<T = any>(key: string) {
  function setLocalStorage (line 14) | function setLocalStorage<T = any>(key: string, value: T) {

FILE: src/lib/types.ts
  type Rule (line 1) | type Rule = {
  type Rules (line 8) | type Rules = {
  type RSSData (line 15) | type RSSData = {

FILE: src/lib/utils.ts
  function cn (line 5) | function cn(...inputs: ClassValue[]) {
  function removeFunctionFields (line 9) | function removeFunctionFields(obj) {
  function parseRSS (line 18) | function parseRSS(content: string) {
  function fetchRSSContent (line 36) | async function fetchRSSContent(url: string) {
  function getRadarRulesUrl (line 46) | function getRadarRulesUrl(rsshubDomain: string) {

FILE: src/options/Siderbar.tsx
  function SiderbarContent (line 16) | function SiderbarContent({ withClose }: { withClose?: boolean }) {
  function Siderbar (line 80) | function Siderbar() {

FILE: src/options/index.tsx
  function Options (line 11) | function Options() {

FILE: src/options/routes/About.tsx
  function About (line 6) | function About() {

FILE: src/options/routes/General.tsx
  function General (line 20) | function General() {

FILE: src/options/routes/Rules.tsx
  function RulesPagination (line 25) | function RulesPagination({
  function RulesList (line 82) | function RulesList({
  function Rules (line 137) | function Rules() {

FILE: src/popup/RSSItem.tsx
  function RSSItem (line 13) | function RSSItem({

FILE: src/popup/RSSList.tsx
  function RSSList (line 5) | function RSSList({ type, list }: { type: string; list: RSSData[] }) {

FILE: src/popup/index.tsx
  function IndexPopup (line 11) | function IndexPopup() {

FILE: src/tabs/offscreen.tsx
  type OffscreenMessage (line 5) | type OffscreenMessage = {
  function OffscreenPage (line 10) | function OffscreenPage() {

FILE: src/tabs/preview.tsx
  function PreviewPage (line 23) | function PreviewPage() {
Condensed preview — 79 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,341K chars).
[
  {
    "path": ".github/dependabot.yml",
    "chars": 270,
    "preview": "version: 2\nupdates:\n  - package-ecosystem: \"npm\"\n    directory: \"/\"\n    schedule:\n      interval: \"daily\"\n    open-pull-"
  },
  {
    "path": ".github/workflows/release.yml",
    "chars": 1418,
    "preview": "name: release\n\non:\n  push:\n    tags:\n      - \"*\"\n\nenv:\n  WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI"
  },
  {
    "path": ".github/workflows/submit.yml",
    "chars": 2508,
    "preview": "name: \"Submit to Web Store\"\non:\n  workflow_dispatch:\n    inputs:\n      dry_run:\n        description: \"Run submission in "
  },
  {
    "path": ".github/workflows/test.yml",
    "chars": 1347,
    "preview": "name: test\n\non:\n  push:\n\nenv:\n  WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI_ID }}\n  WXT_UMAMI_URL: $"
  },
  {
    "path": ".gitignore",
    "chars": 439,
    "preview": "\n# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.p"
  },
  {
    "path": ".prettierignore",
    "chars": 14,
    "preview": "pnpm-lock.yaml"
  },
  {
    "path": ".prettierrc.js",
    "chars": 439,
    "preview": "module.exports = {\n  singleQuote: false,\n  semi: false,\n  trailingComma: \"all\",\n  endOfLine: \"lf\",\n  plugins: [\"prettier"
  },
  {
    "path": ".prettierrc.mjs",
    "chars": 530,
    "preview": "/**\n * @type {import('prettier').Options}\n */\nexport default {\n  printWidth: 80,\n  tabWidth: 2,\n  useTabs: false,\n  semi"
  },
  {
    "path": "LICENSE",
    "chars": 33959,
    "preview": "GNU AFFERO GENERAL PUBLIC LICENSE\nVersion 3, 19 November 2007\n\nCopyright (C) 2007 Free Software Foundation, Inc. <https:"
  },
  {
    "path": "README.md",
    "chars": 7179,
    "preview": "<p align=\"center\">\n<img src=\"https://i.loli.net/2019/04/23/5cbeb7e41414c.png\" alt=\"RSSHub\" width=\"100\">\n</p>\n<h1 align=\""
  },
  {
    "path": "components.json",
    "chars": 332,
    "preview": "{\n  \"$schema\": \"https://ui.shadcn.com/schema.json\",\n  \"style\": \"default\",\n  \"rsc\": false,\n  \"tsx\": true,\n  \"tailwind\": {"
  },
  {
    "path": "package.json",
    "chars": 2594,
    "preview": "{\n  \"name\": \"rsshub-radar\",\n  \"displayName\": \"RSSHub Radar\",\n  \"version\": \"2.2.0\",\n  \"description\": \"__MSG_extensionDesc"
  },
  {
    "path": "postcss.config.js",
    "chars": 134,
    "preview": "/**\n * @type {import('postcss').ProcessOptions}\n */\nmodule.exports = {\n  plugins: {\n    tailwindcss: {},\n    autoprefixe"
  },
  {
    "path": "public/_locales/en/messages.json",
    "chars": 4301,
    "preview": "{\n  \"extensionDescription\": {\n    \"message\": \"Easily find and subscribe to RSS and RSSHub.\"\n  },\n  \"about\": {\n    \"messa"
  },
  {
    "path": "public/_locales/zh_CN/messages.json",
    "chars": 3539,
    "preview": "{\n  \"extensionDescription\": {\n    \"message\": \"轻松查找和订阅 RSS 和 RSSHub。\"\n  },\n  \"about\": {\n    \"message\": \"关于\"\n  },\n  \"acces"
  },
  {
    "path": "src/background/badge.ts",
    "chars": 368,
    "preview": "import { getConfig } from \"~/lib/config\"\n\nchrome.action?.setBadgeBackgroundColor?.({\n  color: \"#F62800\",\n})\n\nchrome.acti"
  },
  {
    "path": "src/background/index.ts",
    "chars": 1905,
    "preview": "import contentReady from \"./messages/contentReady\"\nimport popupReady from \"./messages/popupReady\"\nimport refreshRules fr"
  },
  {
    "path": "src/background/messages/contentReady.ts",
    "chars": 249,
    "preview": "import { getRSS } from \"~/background/rss\"\n\nconst handler = (_message: unknown, sender: chrome.runtime.MessageSender) => "
  },
  {
    "path": "src/background/messages/popupReady.ts",
    "chars": 372,
    "preview": "import { getCachedRSS } from \"~/background/rss\"\n\nconst handler = (\n  _message?: unknown,\n  _sender?: chrome.runtime.Mess"
  },
  {
    "path": "src/background/messages/refreshRules.ts",
    "chars": 457,
    "preview": "import { refreshRules } from \"~/background/rules\"\n\nconst handler = async (\n  _message?: unknown,\n  _sender?: chrome.runt"
  },
  {
    "path": "src/background/messages/requestDisplayedRules.ts",
    "chars": 193,
    "preview": "import { getDisplayedRules } from \"~/background/rules\"\n\nconst handler = async (\n  _message?: unknown,\n  _sender?: chrome"
  },
  {
    "path": "src/background/messages/responseDisplayedRules.ts",
    "chars": 260,
    "preview": "import { setDisplayedRules } from \"~/background/rules\"\n\nconst handler = (\n  message: { body?: { displayedRules?: any } }"
  },
  {
    "path": "src/background/messages/responseRSS.ts",
    "chars": 319,
    "preview": "import { setRSS } from \"~/background/rss\"\n\nconst handler = async (\n  message: { body?: { tabId?: number; rss?: any } },\n"
  },
  {
    "path": "src/background/rss.ts",
    "chars": 2697,
    "preview": "import AsyncLock from \"async-lock\"\n\nimport { sendToContentScript } from \"~/lib/messaging\"\nimport { setupOffscreenDocumen"
  },
  {
    "path": "src/background/rules.ts",
    "chars": 1637,
    "preview": "import { getConfig } from \"~/lib/config\"\nimport { setupOffscreenDocument } from \"~/lib/offscreen\"\nimport { getRemoteRule"
  },
  {
    "path": "src/background/update-notifications.ts",
    "chars": 917,
    "preview": "import RSSHubIcon from \"~/assets/icon.png\"\nimport { getLocalStorage, setLocalStorage } from \"~/lib/storage\"\n\nimport info"
  },
  {
    "path": "src/contents/index.ts",
    "chars": 443,
    "preview": "import { sendToBackground } from \"~/lib/messaging\"\nimport { getPageRSS } from \"~/lib/rss\"\n\nsendToBackground({\n  name: \"c"
  },
  {
    "path": "src/entrypoints/background.ts",
    "chars": 74,
    "preview": "export default defineBackground(() => {\n  import(\"~/background/index\")\n})\n"
  },
  {
    "path": "src/entrypoints/content.ts",
    "chars": 114,
    "preview": "export default defineContentScript({\n  matches: [\"<all_urls>\"],\n  main() {\n    import(\"~/contents/index\")\n  },\n})\n"
  },
  {
    "path": "src/entrypoints/offscreen/index.html",
    "chars": 296,
    "preview": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-w"
  },
  {
    "path": "src/entrypoints/offscreen/main.tsx",
    "chars": 167,
    "preview": "import ReactDOM from \"react-dom/client\"\n\nimport OffscreenPage from \"~/tabs/offscreen\"\n\nReactDOM.createRoot(document.getE"
  },
  {
    "path": "src/entrypoints/options/index.html",
    "chars": 352,
    "preview": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-w"
  },
  {
    "path": "src/entrypoints/options/main.tsx",
    "chars": 154,
    "preview": "import ReactDOM from \"react-dom/client\"\n\nimport Options from \"~/options/index\"\n\nReactDOM.createRoot(document.getElementB"
  },
  {
    "path": "src/entrypoints/popup/index.html",
    "chars": 296,
    "preview": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-w"
  },
  {
    "path": "src/entrypoints/popup/main.tsx",
    "chars": 158,
    "preview": "import ReactDOM from \"react-dom/client\"\n\nimport IndexPopup from \"~/popup/index\"\n\nReactDOM.createRoot(document.getElement"
  },
  {
    "path": "src/entrypoints/preview/index.html",
    "chars": 296,
    "preview": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-w"
  },
  {
    "path": "src/entrypoints/preview/main.tsx",
    "chars": 161,
    "preview": "import ReactDOM from \"react-dom/client\"\n\nimport PreviewPage from \"~/tabs/preview\"\n\nReactDOM.createRoot(document.getEleme"
  },
  {
    "path": "src/entrypoints/sandbox/index.html",
    "chars": 269,
    "preview": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-w"
  },
  {
    "path": "src/entrypoints/sandbox/main.ts",
    "chars": 26,
    "preview": "import \"~/tabs/sandboxes\"\n"
  },
  {
    "path": "src/lib/components/Accordion.tsx",
    "chars": 1977,
    "preview": "\"use client\"\n\nimport { ChevronDown } from \"lucide-react\"\nimport * as React from \"react\"\n\nimport * as AccordionPrimitive "
  },
  {
    "path": "src/lib/components/AppearanceSwitch.tsx",
    "chars": 593,
    "preview": "import { useDark } from \"~/lib/hooks/use-dark\"\n\nexport function AppearanceSwitch({ className = \"\" }: { className?: strin"
  },
  {
    "path": "src/lib/components/Button.tsx",
    "chars": 1876,
    "preview": "import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { Slot } from \""
  },
  {
    "path": "src/lib/components/Card.tsx",
    "chars": 1878,
    "preview": "import * as React from \"react\"\n\nimport { cn } from \"~/lib/utils\"\n\nconst Card = React.forwardRef<\n  HTMLDivElement,\n  Rea"
  },
  {
    "path": "src/lib/components/Input.tsx",
    "chars": 826,
    "preview": "import * as React from \"react\"\n\nimport { cn } from \"~/lib/utils\"\n\nexport interface InputProps\n  extends React.InputHTMLA"
  },
  {
    "path": "src/lib/components/Label.tsx",
    "chars": 726,
    "preview": "\"use client\"\n\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport *"
  },
  {
    "path": "src/lib/components/Pagination.tsx",
    "chars": 2558,
    "preview": "import { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\"\nimport * as React from \"react\"\n\nimport { Button"
  },
  {
    "path": "src/lib/components/Sheet.tsx",
    "chars": 4281,
    "preview": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { cva, type"
  },
  {
    "path": "src/lib/components/Switch.tsx",
    "chars": 1156,
    "preview": "\"use client\"\n\nimport * as React from \"react\"\n\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport { cn } "
  },
  {
    "path": "src/lib/config.ts",
    "chars": 1559,
    "preview": "import _ from \"lodash\"\nimport toast from \"react-hot-toast\"\n\nimport { getLocalStorage, setLocalStorage } from \"~/lib/stor"
  },
  {
    "path": "src/lib/hooks/use-dark.ts",
    "chars": 1727,
    "preview": "import { useLocalStorage } from \"foxact/use-local-storage\"\nimport { useEffect, useMemo, useSyncExternalStore } from \"rea"
  },
  {
    "path": "src/lib/messaging.ts",
    "chars": 807,
    "preview": "export type ExtensionMessage = {\n  name: string\n  body?: any\n}\n\nexport function sendToBackground<T = any>(message: Exten"
  },
  {
    "path": "src/lib/offscreen.ts",
    "chars": 791,
    "preview": "// https://developer.chrome.com/docs/extensions/reference/api/offscreen\nlet creating\n\nasync function setupOffscreenDocum"
  },
  {
    "path": "src/lib/quick-subscriptions-logos.tsx",
    "chars": 594,
    "preview": "import FeedlyLogo from \"~/assets/feedly.png\"\nimport FollowLogo from \"~/assets/follow.svg\"\nimport FreshRSSLogo from \"~/as"
  },
  {
    "path": "src/lib/quick-subscriptions.ts",
    "chars": 4167,
    "preview": "export const quickSubscriptions: ({\n  name: string\n  projectUrl?: string\n  key: string\n  themeColor: string\n  getSubscri"
  },
  {
    "path": "src/lib/radar-rules.ts",
    "chars": 1080914,
    "preview": "export const defaultRules = {\n  \"81.cn\": {\n    _name: \"中国军网\",\n    \"81rc\": [\n      {\n        title: \"中国人民解放军专业技术人才网\",\n   "
  },
  {
    "path": "src/lib/report.ts",
    "chars": 1032,
    "preview": "function isSampled(rate) {\n  const randomNumber = Math.floor(Math.random() * 100)\n  return randomNumber < rate * 100\n}\n\n"
  },
  {
    "path": "src/lib/rss.ts",
    "chars": 4454,
    "preview": "import type { RSSData } from \"./types\"\nimport { fetchRSSContent, parseRSS } from \"./utils\"\n\nexport async function getPag"
  },
  {
    "path": "src/lib/rsshub.ts",
    "chars": 7415,
    "preview": "import RouteRecognizer from \"route-recognizer\"\nimport { parse } from \"tldts\"\n\nimport { parseRules } from \"./rules\"\nimpor"
  },
  {
    "path": "src/lib/rules.ts",
    "chars": 1778,
    "preview": "import _ from \"lodash\"\nimport MD5 from \"md5.js\"\n\nimport { getConfig } from \"./config\"\nimport { defaultRules } from \"./ra"
  },
  {
    "path": "src/lib/storage.ts",
    "chars": 689,
    "preview": "export function getLocalStorage<T = any>(key: string) {\n  return new Promise<T>((resolve, reject) => {\n    chrome.storag"
  },
  {
    "path": "src/lib/style.css",
    "chars": 1469,
    "preview": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n:root {\n  --background: 0 0% 100%;\n  --foreground: 20 14.3% "
  },
  {
    "path": "src/lib/types.ts",
    "chars": 350,
    "preview": "export type Rule = {\n  title: string\n  docs: string\n  source: string[]\n  target: string | ((params: any, url: string) =>"
  },
  {
    "path": "src/lib/utils.ts",
    "chars": 1171,
    "preview": "import { clsx, type ClassValue } from \"clsx\"\nimport he from \"he\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport functi"
  },
  {
    "path": "src/options/Siderbar.tsx",
    "chars": 3001,
    "preview": "import { Link, useLocation } from \"react-router\"\nimport { useMediaQuery } from \"usehooks-ts\"\n\nimport RSSHubIcon from \"~/"
  },
  {
    "path": "src/options/index.tsx",
    "chars": 741,
    "preview": "import \"~/lib/style.css\"\n\nimport { Toaster } from \"react-hot-toast\"\nimport { MemoryRouter } from \"react-router\"\n\nimport "
  },
  {
    "path": "src/options/routes/About.tsx",
    "chars": 2188,
    "preview": "import { useEffect } from \"react\"\n\nimport { Card, CardContent } from \"~/lib/components/Card\"\nimport report from \"~/lib/r"
  },
  {
    "path": "src/options/routes/General.tsx",
    "chars": 13612,
    "preview": "import _ from \"lodash\"\nimport { Loader2 } from \"lucide-react\"\nimport { useEffect, useState } from \"react\"\nimport toast f"
  },
  {
    "path": "src/options/routes/Rules.tsx",
    "chars": 5293,
    "preview": "import _ from \"lodash\"\nimport { useEffect, useMemo, useState } from \"react\"\n\nimport {\n  Accordion,\n  AccordionContent,\n "
  },
  {
    "path": "src/options/routes/index.tsx",
    "chars": 344,
    "preview": "import { Route, Routes } from \"react-router\"\n\nimport { About } from \"./About\"\nimport { General } from \"./General\"\nimport"
  },
  {
    "path": "src/popup/RSSItem.tsx",
    "chars": 5312,
    "preview": "import MD5 from \"md5.js\"\nimport { useEffect, useState } from \"react\"\nimport { useCopyToClipboard } from \"usehooks-ts\"\n\ni"
  },
  {
    "path": "src/popup/RSSList.tsx",
    "chars": 554,
    "preview": "import type { RSSData } from \"~/lib/types\"\n\nimport RSSItem from \"./RSSItem\"\n\nfunction RSSList({ type, list }: { type: st"
  },
  {
    "path": "src/popup/index.tsx",
    "chars": 1898,
    "preview": "import \"~/lib/style.css\"\n\nimport { useEffect, useState } from \"react\"\n\nimport { useDark } from \"~/lib/hooks/use-dark\"\nim"
  },
  {
    "path": "src/sandboxes/index.ts",
    "chars": 2103,
    "preview": "import { getPageRSSHub, getWebsiteRSSHub } from \"~/lib/rsshub\"\nimport { parseRules } from \"~/lib/rules\"\nimport { removeF"
  },
  {
    "path": "src/tabs/offscreen.tsx",
    "chars": 1151,
    "preview": "import { useEffect, useRef } from \"react\"\n\nimport { sendToBackground } from \"~/lib/messaging\"\n\ntype OffscreenMessage = {"
  },
  {
    "path": "src/tabs/preview.tsx",
    "chars": 3214,
    "preview": "import { useEffect, useState } from \"react\"\nimport Parser from \"rss-parser\"\n\nimport \"~/lib/style.css\"\n\nimport xss from \""
  },
  {
    "path": "src/tabs/sandboxes.ts",
    "chars": 28,
    "preview": "export * from \"~/sandboxes\"\n"
  },
  {
    "path": "tailwind.config.js",
    "chars": 2907,
    "preview": "import { iconsPlugin } from \"@egoist/tailwindcss-icons\"\n\nimport { quickSubscriptions } from \"./src/lib/quick-subscriptio"
  },
  {
    "path": "tsconfig.json",
    "chars": 211,
    "preview": "{\n  \"extends\": \"./.wxt/tsconfig.json\",\n  \"compilerOptions\": {\n    \"allowImportingTsExtensions\": true,\n    \"jsx\": \"react-"
  },
  {
    "path": "wxt.config.ts",
    "chars": 768,
    "preview": "import { defineConfig } from \"wxt\"\n\nconst iconMap = {\n  16: \"/icon.png\",\n  32: \"/icon.png\",\n  48: \"/icon.png\",\n  64: \"/i"
  }
]

About this extraction

This page contains the full source code of the DIYgod/RSSHub-Radar GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 79 files (1.2 MB), approximately 357.9k tokens, and a symbol index with 54 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!