Universal Force to High-Fidelity Video

Force highest quality on YouTube, Netflix, Vimeo, Twitch, Bilibili, Prime Video, Disney+, HBO Max, Twitter/X, Facebook, Dailymotion & more

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Kzsafasdfsfa
日安装量
1
总安装量
66
评分
2 0 0
版本
0.1.1
创建于
2025-12-08
更新于
2025-12-13
大小
51.1 KB
兼容性
与 Chrome 兼容
许可证
MIT
适用于
所有网站

Universal Force to High-Fidelity Video

Forces the highest available video quality (8K/4K with best fps/HDR), skips ads when possible, redirects YouTube Shorts to full player, and provides a lightweight UI for status toasts. Designed to run as a userscript across most video sites.

Features

  • Auto-discover video elements across DOM and Shadow DOM.
  • Enforce best available quality (prefers AV1, then VP9, then AVC).
  • Optional 60fps preference and ad-skipper for YouTube.
  • Redirect YouTube Shorts to standard watch pages.
  • Toast notifications for actions (with Shadow DOM fallback).
  • Menu toggles for enable/disable, AV1, Shorts redirect, and per-domain exclusion.

Installation (Chrome + Tampermonkey)

1) Install Tampermonkey from the Chrome Web Store.
2) Open Tampermonkey dashboard → Utilities → Install from URL and paste:
https://raw.githubusercontent.com/aezizhu/Universal-High-Fidelity-Video-Automation/main/universal-video-hifi.user.js
3) Confirm install. The script runs at document-start.
4) Auto-updates are enabled via the @updateURL header; Tampermonkey will pull new versions on its schedule.

Configuration (via userscript menu)

  • Toggle Script: Enable/disable globally.
  • Force AV1: Prefer AV1 where available.
  • Redirect Shorts: Redirect /shorts/<id> to /watch?v=<id>.
  • Exclude Domain: Add current host to the exclusion list.
  • Debug menu appears when debugMode is true in config storage.

How It Works

  • Discovery layer scans DOM + Shadow DOMs and watches mutations to find video elements.
  • Interaction layer simulates trusted mouse events to wake controls.
  • Platform modules contain site-specific hooks (currently YouTube; extensible for others).
  • Quality engine parses labels and applies best available quality when APIs permit.
  • Config sync uses GM storage; shims prevent failures if some GM APIs are missing.

Compatibility Notes

  • Aims to work on ~95% of sites; extremely restrictive CSPs or fully sandboxed iframes may block injections or messaging.
  • Toasts fall back to inline styles if Shadow DOM attach fails.
  • Menu commands require a userscript manager that supports GM_registerMenuCommand.

Development

git clone https://github.com/aezizhu/Universal-High-Fidelity-Video-Automation.git
cd Universal-High-Fidelity-Video-Automation
# edit universal-video-hifi.user.js

Test by loading the local file as a userscript in your manager. Keep changes small and focused; prefer adding platform modules under the Platform registry.

License

MIT