Greasy Fork 支持简体中文。

Pluto TV .m3u8 Grabber

Captures m3u8 URLs via XHR and retrieves the last intercepted URL

作者
Ghosty-Tongue
今日安裝
0
安裝總數
68
評價
0 0 1
版本
1.8
建立日期
2024-08-31
更新日期
2025-01-29
尺寸
5.3 KB
授權條款
MIT
腳本執行於

Overview

This userscript captures .m3u8 streaming playlist URLs from Pluto TV by intercepting network requests. It adds a floating button to the page, allowing users to copy the detected URL for use in external players (e.g., VLC, IPTV apps). Ideal for users who want direct access to Pluto TV streams.


Key Features

  • Automatic URL Capture:
    • Detects .m3u8 URLs via XHR requests when a channel starts playing.
    • Supports URLs containing master.m3u8 or playlist.m3u8.
  • Visual Feedback:
    • Red Button: No URL detected.
    • Green Button: URL successfully captured.
  • Clipboard Integration: One-click copy of the intercepted URL.
  • Dynamic Page Handling: Resets detection on page navigation (e.g., switching channels).
  • User-Friendly Alerts:
    • Displays success/error messages with a fade effect.
    • Includes a "Close" button to dismiss alerts.
  • Logging: Debugging messages in the browser console (e.g., logMessage).

Usage

  1. Navigate to Pluto TV:
    Visit Pluto TV and start playing a channel.
  2. Wait for Interception:
    • After playback begins, the script automatically detects the .m3u8 URL within ~2 seconds.
    • The floating button turns green when successful.
  3. Copy the URL:
    Click the Get Playlist URL button to copy the URL to your clipboard.

Troubleshooting

  • No URL Detected:
    • Refresh the page and restart playback.
    • Wait 2-3 seconds after playback starts.
    • Check for console errors (F12 → Console tab).
  • Script Conflicts:
    Disable other userscripts/extensions that modify Pluto TV.
  • Outdated Script:
    Ensure you’re using the latest version (current: v1.8).

Notes

  • Delay Mechanism: A 2-second delay ensures the script doesn’t intercept stale URLs during page transitions.
  • Compatibility: Works on all Pluto TV subdomains (e.g., live.pluto.tv, tv.pluto.tv).
  • Alert Design: Responsive alerts auto-close after 5 seconds or via the "Close" button.

Disclaimer

  • Use the copied URLs responsibly and in compliance with Pluto TV’s terms of service.
  • This script is for educational purposes only.

For updates or issues, contact the author or visit the script’s repository (if available).
Author: GhostyTongue | License: MIT