Skip to content

zaryo/fangen

Repository files navigation

Fangen

Browser extension to find backend streaming services addresses.

Compatibility

Currently, Fangen has official tested support for the following browsers, although it might work for others, that is not guaranteed.

  • Chromium
  • Firefox

Install

From the store

Fangen is available to install from the following stores:

Manual installation

packed

Fangen is also available to install as a packed extension for the following browsers:

  • Chromium: Download the CRX artifact from the latest release. Do not use Chromium UI to download it, as it will automatically try to install it, that is not possible, since it lacks the official signing from Chrome, hence the error message CRX_REQUIRED_PROOF_MISSING. Instead, download it manually:

      wget https://github.com/zaryo/fangen/releases/download/<version>/fangen.crx

After that, navigate to chrome://extensions. Enable developer mode and simply drag the CRX file into this page and drop it.

Unpacked

First, clone the repository:

git clone https://github.com/zaryo/fangen

After that, go to your browser and load the unpacked extension:

  • Chromium: Navigate to chrome://extensions. Enable developer mode and press "Load unpacked". Select the repository you just cloned in the previous step.

  • Firefox: Navigate to about:debugging. Click "This Firefox" > "Load Temporary Add-on..." and select the manifest.json file from the repository you just cloned.

Usage

Go to a streaming website which you want to discover streaming server addresses.

After you play the video, in extension pop-up, click on the "Get streaming servers addresses" button.

fangen-ui

After that, the streaming server addresses will show up in the middle, it will show all the available servers, so you can scroll them down.

fangen-ui-with-links

Themes

Dark

dark-fangen-ui dark-fangen-ui-with-links

Testing

Fangen has unit and integration tests. Those tests have the following dependencies:

  • NodeJS
  • NPM
  • Make

You can run the tests locally by entering the repository and running the following commands:

  • Unit tests:
make test.unit
  • Chromium tests:

Important

The use of CHROMIUM_BINARY is required.

CHROMIUM_BINARY=</path/to/your/chromium/binary> make test.chromium
  • Firefox tests:

Important

The use of FIREFOX_BINARY is required.

FIREFOX_BINARY=</path/to/your/firefox/binary> make test.firefox
  • Run all the tests:

Important

The use of both CHROMIUM_BINARY and FIREFOX_BINARY are required.

CHROMIUM_BINARY=</path/to/your/chromium/binary> FIREFOX_BINARY=</path/to/your/firefox/binary> make test

Development

Fangen provides utilities you can use during development, you can use a watcher which reloads the extension on your browser automatically whenever you make a change:

  • Chromium:

Important

The use of CHROMIUM_BINARY is required.

CHROMIUM_BINARY=</path/to/your/chromium/binary> make watch.chromium
  • Firefox:

Important

The use of FIREFOX_BINARY is required.

FIREFOX_BINARY=</path/to/your/firefox/binary> make watch.firefox

How it works

Fangen starts a service worker in the background, which listens for browser requests whose headers are checked against a set of MIME types to verify what establishes persistent connections and storing their origins. Those origins are shown on the button click event.

About

Browser extension to find backend streaming services addresses.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors