Disable Video Autoplay

Prevents videos from autoplaying on websites and adds a play button overlay

作者
Happyesss
今日安裝
0
安裝總數
2
評價
0 0 0
版本
1.0
建立日期
2025-06-20
更新日期
2025-06-20
尺寸
9.1 KB
授權條款
未知
腳本執行於
所有網站

Disable Video Autoplay

Description:
Prevents videos from autoplaying on websites and adds a play button overlay. Works for most HTML5 videos and common video iframes (YouTube, Vimeo, etc).

Features:

  • Stops videos from autoplaying, even if triggered by JavaScript.
  • Disables autoplay in embedded YouTube/Vimeo iframes.
  • Adds a stylish play button overlay (can be turned off in the script).
  • Configurable allowlist/denylist for domains.
  • Lightweight and runs as soon as possible for best results.

Instructions:

  1. Install the script via your userscript manager (e.g., Tampermonkey, Violentmonkey, Greasemonkey).
  2. By default, the script blocks autoplay on all sites.
    • To allow autoplay on specific sites, add their domain to the allowlist in the script.
    • To only block autoplay on certain sites, add their domain to the denylist and leave the allowlist empty.
  3. To disable the play button overlay, set showPlayButton to false in the script’s config section.
  4. Enable debug logging by setting debug to true in the config.

How it works:

  • The script runs at document-start for maximum effectiveness.
  • It processes all existing and dynamically added videos/iframes.
  • For videos, it blocks autoplay and adds an overlay if enabled.
  • For iframes, it modifies the src to ensure autoplay=0 is set.

Compatibility:
Works on most modern websites and video platforms. Some sites with custom video players may not be fully supported.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址