StreamSaver Video Sniffer

Sniff video (m3u8/mp4) and download using StreamSaver (Low Memory).

目前為 2025-12-03 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Jw-23
評價
0 0 0
版本
23.1
建立日期
2025-12-03
更新日期
2025-12-03
尺寸
25.2 KB
授權條款
MIT
腳本執行於
所有網站

StreamSaver Video Sniffer - User Manual

📖 Introduction

This Userscript is a high-performance video downloader designed for Android (Kiwi Browser) and PC (Chrome/Edge). Unlike traditional downloaders that store the entire video in RAM (causing crashes with large files), this script uses StreamSaver.js. It creates a virtual download stream, writing data directly to your device's storage in real-time.


🛠️ Prerequisites

  1. Browser:
    • PC: Google Chrome, Microsoft Edge.
    • Android: Kiwi Browser (Recommended) or Firefox Nightly.
    • ❌ iOS (iPhone/iPad) is NOT supported due to Apple's system restrictions.
  2. Extension: Tampermonkey or Violentmonkey.
  3. Network: A stable internet connection is required (pausing is not supported).

🚀 How to Use

  1. Install: Create a new script in Tampermonkey and paste the provided code.
  2. Browse: Open a video website (must be HTTPS) and play a video.
  3. Sniff: A floating button (⚡) or a panel will appear on the right side of the screen when a video link (M3U8 or MP4) is detected.
  4. Download:
    • Click the "Stream Download" button.
    • Important: You will see a download starting from jimmywarting.github.io or streamsaver.mitm. This is normal. It is the bridge allowing the browser to save files directly to your disk.
  5. Finish:
    • The button will show the percentage (e.g., "15%").
    • Wait until the text changes to "Done". The file will appear in your default "Downloads" folder.

⚠️ Important Limitations

  • DO NOT use Incognito/Private Mode: The script requires access to a Service Worker to handle the stream. Incognito mode blocks this, causing the download to fail.
  • HTTPS Only: The script only works on secure (HTTPS) websites.
  • Do Not Close the Tab: You must keep the video page open while downloading. Closing it will kill the process.
  • Android Storage: On Android, the file is written to the system's "Downloads" folder. Due to the streaming nature, the "Total Size" might appear unknown until finished.

❓ FAQ

Q: Why does the download show it's coming from github.io? A: This is the "Man-in-the-Middle" (MITM) technique. Since the script cannot register a Service Worker on the video site directly (due to security rules), it uses a proxy page to handle the file saving. Your data is safe; it just passes through locally.

Q: Why doesn't it work on iPhone? A: Apple's Safari (WebKit) blocks the Service Worker technologies required for this specific method.