Skip to content

About

Tampermonkey userscript that extracts Baidu Pan links and access codes from Wckbot pages for one-click access.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

Wckbot Baidu Pan QuickLink

A small Tampermonkey userscript that turns Baidu Pan links on wckbot*.com pages into direct, clickable links with the access code already attached.

Features

  • 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>.mp4 when 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

  1. Install a userscript manager such as Tampermonkey.
  2. Open the raw userscript.
  3. 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.

Usage

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.

Privacy and permissions

The script does not send data to third parties. It requests only GM_setClipboard, which is used when you click the displayed title.

Release package

Release artifacts are stored in dist/:

  • wckbot-baidu-pan-quicklink-v1.0.10.zip
  • wckbot-baidu-pan-quicklink.user.js
  • SHA256SUMS

License

MIT

About

Tampermonkey userscript that extracts Baidu Pan links and access codes from Wckbot pages for one-click access.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages