# ekaznyra/bypass-rophim architecture

> Architecture diagram of the GitHub repository ekaznyra/bypass-rophim, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ekaznyra/bypass-rophim
- Repository: https://github.com/ekaznyra/bypass-rophim

## Overview

This repository is a collection of browser userscripts for film and anime sites, with an all-in-one edition and site-specific variants. The user installs a script through Tampermonkey; it runs on a supported site and provides player, stream, and page enhancements. The sampled sources show stream detection and response interception, while the README documents broader features such as VIP/API patching, hotkeys, and the floating control hub. Many variants are duplicated; unsampled implementations and their internal wiring are not inferred here.

Main entry points: [`rophim.user.js`](https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js) (Rophim script), [`cinema-pro-all.user.js`](https://github.com/ekaznyra/bypass-rophim/blob/main/cinema-pro-all.user.js) (All-in-one script), [`core.js`](https://github.com/ekaznyra/bypass-rophim/blob/main/core.js) (Shared runtime script), [`animehay.user.js`](https://github.com/ekaznyra/bypass-rophim/blob/main/animehay.user.js) (Anime site scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Userscript editions"]
  node_all["All-in-one script"]
  node_rophim["Rophim script<br/>[rophim.user.js]"]
  node_core["Shared runtime script<br/>[core.js]"]
  node_anime["Anime site scripts<br/>[animehay.user.js]"]
  node_other["Other site scripts<br/>[motchill.user.js]"]
end

subgraph group_runtime["Playback enhancements"]
  node_guard["Ad and guard handling<br/>[rophim.user.js]"]
  node_ads["Pre-roll skipping"]
  node_sniffer["M3U8 detection<br/>[core.js]"]
  node_playback["Playback commands<br/>[motchill.user.js]"]
end

subgraph group_network["Network and account"]
  node_api["VIP response patching<br/>[rophim.user.js]"]
end

subgraph group_interface["User controls"]
  node_controls["Hotkeys and hub<br/>[rophim.user.js]"]
end

node_user(("Viewer"))
node_tm["Tampermonkey"]
node_domains["Supported film sites"]
node_browser["Browser page and player"]
node_media["Video player"]
node_backend["Site API"]
node_external["PotPlayer / VLC"]

node_user -->|"installs via"| node_tm
node_tm -->|"runs script"| node_all
node_tm -->|"runs script"| node_rophim
node_tm -.->|"runs script"| node_core
node_tm -->|"runs script"| node_anime
node_tm -->|"runs script"| node_other
node_all -->|"targets sites"| node_domains
node_rophim -->|"targets site"| node_domains
node_anime -->|"targets sites"| node_domains
node_other -->|"targets site"| node_domains
node_all -->|"enhances page"| node_browser
node_rophim -->|"handles guards"| node_guard
node_all -->|"skips pre-roll"| node_ads
node_core -->|"detects streams"| node_sniffer
node_sniffer -->|"posts stream URL"| node_browser
node_core -->|"patches responses"| node_api
node_rophim -->|"patches VIP data"| node_api
node_rophim -->|"provides controls"| node_controls
node_controls -->|"sends commands"| node_playback
node_playback -->|"controls video"| node_media
node_api -->|"intercepts API"| node_backend
node_sniffer -->|"supports playback"| node_external

click node_all "https://github.com/ekaznyra/bypass-rophim/blob/main/cinema-pro-all.user.js"
click node_rophim "https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js"
click node_core "https://github.com/ekaznyra/bypass-rophim/blob/main/core.js"
click node_anime "https://github.com/ekaznyra/bypass-rophim/blob/main/animehay.user.js"
click node_other "https://github.com/ekaznyra/bypass-rophim/blob/main/motchill.user.js"
click node_guard "https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js"
click node_ads "https://github.com/ekaznyra/bypass-rophim/blob/main/cinema-pro-all.user.js"
click node_sniffer "https://github.com/ekaznyra/bypass-rophim/blob/main/core.js"
click node_playback "https://github.com/ekaznyra/bypass-rophim/blob/main/motchill.user.js"
click node_api "https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js"
click node_controls "https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_all,node_rophim,node_core,node_anime,node_other,node_user,node_browser toneBlue
class node_guard,node_ads,node_sniffer,node_playback toneAmber
class node_api,node_backend toneMint
class node_controls toneRose
class node_tm,node_domains,node_media,node_external toneIndigo
```

## Components

### Userscript editions

- [All-in-one script](https://github.com/ekaznyra/bypass-rophim/blob/main/cinema-pro-all.user.js): `cinema-pro-all.user.js`
- [Rophim script](https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js): `rophim.user.js`
- [Shared runtime script](https://github.com/ekaznyra/bypass-rophim/blob/main/core.js): `core.js`
- [Anime site scripts](https://github.com/ekaznyra/bypass-rophim/blob/main/animehay.user.js): `animehay.user.js`
- [Other site scripts](https://github.com/ekaznyra/bypass-rophim/blob/main/motchill.user.js): `motchill.user.js`

### Playback enhancements

- [Ad and guard handling](https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js): `rophim.user.js`
- [Pre-roll skipping](https://github.com/ekaznyra/bypass-rophim/blob/main/cinema-pro-all.user.js): `cinema-pro-all.user.js`
- [M3U8 detection](https://github.com/ekaznyra/bypass-rophim/blob/main/core.js): `core.js`
- [Playback commands](https://github.com/ekaznyra/bypass-rophim/blob/main/motchill.user.js): `motchill.user.js`

### Network and account

- [VIP response patching](https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js): `rophim.user.js`

### User controls

- [Hotkeys and hub](https://github.com/ekaznyra/bypass-rophim/blob/main/rophim.user.js): `rophim.user.js`

### Other components

- **Viewer**
- **Tampermonkey**
- **Supported film sites**
- **Browser page and player**
- **Video player**
- **Site API**
- **PotPlayer / VLC**

## Connections

- Viewer → Tampermonkey: installs via (evidence: `README.md`)
- Tampermonkey → All-in-one script: runs script (evidence: `README.md`)
- Tampermonkey → Rophim script: runs script (evidence: `README.md`)
- Tampermonkey → Shared runtime script: runs script
- Tampermonkey → Anime site scripts: runs script (evidence: `README.md`)
- Tampermonkey → Other site scripts: runs script (evidence: `README.md`)
- All-in-one script → Supported film sites: targets sites (evidence: `README.md`)
- Rophim script → Supported film sites: targets site (evidence: `rophim.user.js`)
- Anime site scripts → Supported film sites: targets sites (evidence: `animehay.user.js`)
- Other site scripts → Supported film sites: targets site (evidence: `motchill.user.js`)
- All-in-one script → Browser page and player: enhances page (evidence: `cinema-pro-all.user.js`)
- Rophim script → Ad and guard handling: handles guards (evidence: `rophim.user.js`)
- All-in-one script → Pre-roll skipping: skips pre-roll (evidence: `cinema-pro-all.user.js`)
- Shared runtime script → M3U8 detection: detects streams (evidence: `core.js`)
- M3U8 detection → Browser page and player: posts stream URL (evidence: `core.js`)
- Shared runtime script → VIP response patching: patches responses (evidence: `core.js`)
- Rophim script → VIP response patching: patches VIP data (evidence: `rophim.user.js`)
- Rophim script → Hotkeys and hub: provides controls (evidence: `rophim.user.js`)
- Hotkeys and hub → Playback commands: sends commands (evidence: `motchill.user.js`)
- Playback commands → Video player: controls video (evidence: `motchill.user.js`)
- VIP response patching → Site API: intercepts API (evidence: `README.md`)
- M3U8 detection → PotPlayer / VLC: supports playback (evidence: `README.md`)
