Skip to content

ItsAhadun/animepahe-one-click-downloader

Repository files navigation

AnimePahe One-Click Downloader

A Manifest V3 Chrome extension that collapses AnimePahe's multi-step download into a single click.

Normally, downloading an episode means: pick a quality in the Download dropdown → wait out the pahe.win countdown / "confirm you're not a robot" → click Continue → click Download on kwik. This extension does those hops for you in a background tab and shows a live progress toast.

What it looks like

While the redirect chain runs, a small toast in the corner of the episode page narrates each stage:

Progress toast — a blue "Sending to your downloads…" toast with a spinner, then a green "Downloading …mp4" toast with a checkmark

How it works

When you click any entry in an episode's Download dropdown, the extension cancels the normal navigation and instead:

  1. Opens the pahe.win link in a background helper tab.
  2. On pahe.win, reads the kwik URL straight out of the page (skipping the countdown) and goes to it.
  3. On kwik, submits the page's own download form — which yields the real .mp4.
  4. Closes the helper tab once the download has started.

Because the real pages do the work, Cloudflare, cookies, the kwik token/Referer, and the final redirect are all handled by the browser — nothing is reverse-engineered. A corner toast narrates each stage; if something stalls, the helper tab is revealed so you can finish that one by hand.

Why a tab opens (and closes again)

The helper tab is required: pahe.win and kwik sit behind Cloudflare and mint a one-time download token with their own JavaScript, which only a real browser tab can satisfy. It opens in the background (doesn't steal focus) and closes itself once the download begins.

Install (unpacked)

This isn't on the Chrome Web Store — load it as an unpacked extension:

  1. Download this repo: green Code button → Download ZIP, then unzip (or git clone).
  2. Open chrome://extensions.
  3. Turn on Developer mode (top-right).
  4. Click Load unpacked and select the folder containing manifest.json.
  5. Open an AnimePahe episode page and click a Download option.

Supported sites

animepahe on .com / .org / .si / .pw / .ru / .moe / .ac / .im, plus pahe.win and kwik.cx / kwik.si. AnimePahe rotates domains — if a new one appears, see Maintenance.

Maintenance (when a site changes layout)

Every site-specific selector lives in config.js — the only file you edit when markup changes:

  • selectors.play.option — the download links on the episode page
  • selectors.kwik — the form, submit button, and _token field on the kwik page
  • kwikRe — the pattern used to find the kwik URL on the pahe.win page
  • animepaheTlds — if a new AnimePahe domain appears, add it here and to the host_permissions / content_scripts.matches lists in manifest.json, then reload the extension.

Scope

Single episode, one download at a time. Batch/season download, file renaming, and concurrent downloads are intentionally out of scope.

Disclaimer

For personal and educational use. You are responsible for complying with copyright law and the terms of service of the sites you use — only download content you have the right to. Provided as-is, without warranty of any kind.

License

MIT

About

Chrome (MV3) extension: one-click AnimePahe downloads (pahe.win -> kwik -> mp4).

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors