A small Tampermonkey userscript that turns Baidu Pan links on wckbot*.com
pages into direct, clickable links with the access code already attached.
- Extracts a Baidu Pan URL and four-character access code from the content card or page metadata, preferring the card's canonical link target when available.
- Decodes HTML entities before matching the link and code.
- Accepts four-character alphanumeric access codes and normalizes HTML-encoded en dashes in Baidu share IDs.
- Opens Baidu Pan in the current tab with the access code in the
?pwd=parameter. - Displays the page title and copies
<title>.mp4when the title (or Enter/Space while it's focused) is activated. - Marks the page after the generated link is opened.
- Replaces the panel if the page swaps in a different link/code without a full reload, and lets you dismiss it with a close button.
- On locked posts, pins a copy of the "购买本内容" (purchase) button in the same fixed panel so it's reachable without scrolling past the purchase instructions.
- Clicking the pinned purchase button automatically clicks the visible "余额支付" option when the site's payment popup appears, using your site balance. It waits up to ten seconds and clicks the option only once.
- Stops observing the page after ten seconds if no link/code is ever found and no purchase button is pinned.
- Install a userscript manager such as Tampermonkey.
- Open the raw userscript.
- Review the script and confirm the installation in your userscript manager.
The script runs only on URLs matching wckbot<number>.com (e.g.
wckbot14.com, wckbot15.com, wckbot16.com), which follows the site's
migration naming convention while excluding unrelated or spoofed domains.
Visit a supported Wckbot content page. When a Baidu Pan link and access code are found, a panel appears in the upper-left corner:
- Click the title to copy the filename as
<page title>.mp4. - Click the Baidu Pan link to open it in the same tab with the access code filled in.
On a locked post, the same corner instead pins the purchase button until you buy the content, at which point the pan link panel takes over. Clicking that pinned button also selects "余额支付" automatically in the site's popup; only click it when you intend to pay using your site balance. Closing the floating panel cancels a pending automatic selection.
The script does not send data to third parties. It requests only
GM_setClipboard, which is used when you click the displayed title.
Release artifacts are stored in dist/:
wckbot-baidu-pan-quicklink-v1.0.10.zipwckbot-baidu-pan-quicklink.user.jsSHA256SUMS