MCPcopy Index your code
hub / github.com/RAELIE1/MegaCloudFix

github.com/RAELIE1/MegaCloudFix @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2 symbols 4 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MegaCloudFix

A browser extension that redirects all requests from megacloud.blog to megacloud.tv.

Purpose

Some anime streaming sites reference megacloud.blog as their video host, which may be unavailable or blocked. This extension transparently rewrites those requests to megacloud.tv, both at the network level and inside the page itself.

Files

  • manifest.json - Extension manifest (Manifest V2, Firefox-compatible)
  • background.js - Intercepts requests at the network level via webRequest API
  • content.js - Patches fetch and XMLHttpRequest inside the page at document_start
  • rules.json - Declarative redirect rules (used by Chrome)

Browser compatibility

Chrome / Chromium-based browsers

  1. Go to chrome://extensions/
  2. Enable Developer mode (top right toggle)
  3. Click "Load unpacked"
  4. Select the megacloudfix directory

Firefox

  1. Go to about:debugging#/runtime/this-firefox
  2. Click "Load Temporary Add-on"
  3. Select any file inside the megacloudfix directory

Note: Firefox temporary add-ons are removed on browser restart. For permanent installation, the extension would need to be signed via Mozilla.

How it works

Two layers of interception run simultaneously:

  • background.js uses the webRequest API to intercept and redirect any network request to megacloud.blog before the browser connects
  • content.js patches window.fetch and XMLHttpRequest.prototype.open directly inside the page at document_start, catching requests that originate from iframes or player scripts before the network layer sees them

No data is collected or transmitted.

Demo

https://vimeo.com/1180787841?share=copy&fl=sv&fe=ci#t=0

Mobile Demo

https://vimeo.com/1180947941?share=copy&fl=sv&fe=ci

Firefox version

A Firefox-specific version of this extension is available at RAELIE1/MegaCloudFixFireFox.

Core symbols most depended-on inside this repo

fixUrl
called by 3
content.js
fixIframe
called by 2
content.js

Shape

Function 2

Languages

TypeScript100%

Modules by API surface

content.js2 symbols

For agents

$ claude mcp add MegaCloudFix \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact