actualy get video and image links without pr0mium
README.md

pr0 Direct Media #

A Chrome Manifest V3 extension that shows the direct video or full-size image URL of the open post on pr0.app. Click Copy link to copy the URL, or Open media to view the file in a new tab.

Install #

  1. Download and extract dist/pr0-direct-media.zip, or use this project folder directly.
  2. Open chrome://extensions in Chrome and enable Developer mode.
  3. Click Load unpacked and select the folder containing manifest.json.
  4. Pin pr0 Direct Media from Chrome's extensions menu for easy access.
  5. Open a post on pr0.app, then click the extension icon.

The popup updates once per second while open, so switching posts or video quality picks up the latest URL. You can also click Refresh. For posts requiring login, sign in on the website first.

How it works #

The extension reads the current post's media element, preferring the player's currentSrc, then its src or <source> URL. Images use the full-size image's URL. It excludes grid thumbnails, avatars, and hidden videos preloaded for nearby posts. It returns the actual URL the site supplies without guessing filenames or changing CDN hosts. A video may therefore be WebM rather than MP4, depending on the site's selected format and quality. It does not reconstruct media if the site only exposes a blob: URL.

Inspected examples:

  • Video: https://pr0.app/top/7164232 → https://vid-hot.pr0.app/2026/10/06/da14544686f0c7de-vp9-hd.webm
  • Image: https://pr0.app/top/7165021 → https://img.pr0.app/2026/10/07/186521645e58568a.jpg

Permissions and privacy #

activeTab and scripting allow the extension to read the tab when you click its icon. clipboardWrite enables the Copy button. There are no persistent host permissions, background monitoring, analytics, external requests, or saved browsing data.

Development #

Node.js 20+ and Python 3 are sufficient:

npm ci
npm test
npm run package

The extension itself requires no build step or runtime dependencies. Tests cover current-post selection, image/video extraction, hidden preloads, source selection, invalid URLs, and navigation.