通用视频嗅探器

专为安卓大文件设计:使用 StreamSaver 代理流式下载,几乎不占内存,支持 M3U8 转 MP4。

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Jw-23
日安装量
8
总安装量
23
评分
0 0 0
版本
23.5
创建于
2025-12-03
更新于
2025-12-04
大小
19.5 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.