ByteByteGo Reference Linker

Converts [n] reference markers into clickable links on ByteByteGo courses. Click the reference to open the URL, or click the arrow to scroll to the References section.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
abd3lraouf
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.2.0
建立日期
2025-12-06
更新日期
2025-12-06
尺寸
19.1 KB
授權條款
MIT
腳本執行於

ByteByteGo Reference Linker

A Tampermonkey userscript that enhances ByteByteGo course pages by converting [n] reference markers into clickable links.

Features

  • Clickable References: [1], [2], etc. in the text become clickable links that open the referenced URL in a new tab
  • Quick Navigation: A arrow next to each reference scrolls you to the References/Resources section with a highlight effect
  • Hover Tooltips: Hover over a reference to see the description
  • Multiple Formats Supported: Works with various reference formats:
    • [n] Description: URL
    • n. Description URL
    • Ordered lists (<ol><li>...</li></ol>)

Demo

Before:

...which significantly reduced load times [22].

After:

...which significantly reduced load times [22]↓
                                          ^^^^
                                          |  |
                           Opens URL ─────┘  └───── Scrolls to reference

Installation

Prerequisites

Install from GitHub (Recommended)

  1. Make sure you have Tampermonkey installed
  2. Click the link below:

Install ByteByteGo Reference Linker

  1. Tampermonkey will open and show the installation prompt
  2. Click Install

Install from Greasy Fork

Coming soon...

Manual Installation

  1. Open Tampermonkey dashboard
  2. Click the + tab to create a new script
  3. Copy and paste the contents of bytebytego-references.user.js
  4. Save (Ctrl+S / Cmd+S)

Usage

  1. Navigate to any ByteByteGo course page
  2. References like [1], [22], etc. will automatically become interactive:
    • Click the number to open the referenced URL in a new tab
    • Click the arrow to scroll down to the reference in the Resources/References section
    • Hover to see the reference description

Supported Sites

How It Works

  1. The script scans the page for a References or Resources section (supports <h2>, <h3> headers)
  2. Parses references in various formats and extracts URLs and descriptions
  3. Finds all [n] markers in the main content
  4. Replaces them with clickable links + navigation arrows
  5. Uses a MutationObserver to handle dynamically loaded content

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE for details.

Author

abd3lraouf - GitHub

Acknowledgments

  • ByteByteGo for the amazing system design content
  • The Tampermonkey team for making browser scripting accessible