你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/558270-universal-force-to-high-fidelity-video,源站連結 點此以跳轉

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



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/558270/Universal%20Force%20to%20High-Fidelity%20Video.user.js

安装此脚本?
作者
Kzsafasdfsfa
日安装量
1
总安装量
78
评分
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