Greasy Fork is available in English.

Video Overlay Vanisher

A tool to eliminate web video player overlays with Shift+D.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
𝖢𝖸 𝖥𝗎𝗇𝗀
1日のインストール数
0
累計インストール数
155
評価
6 0 0
バージョン
1.4.0
作成日
2021/07/05
更新日
2024/01/21
ライセンス
MIT
対象サイト
すべてのサイト

Note: This might affect performance!

Shift-D to toggle all the "floating elements" overlaying the video player (controls, danmaku, etc.)

Shift-Dを押すと、ビデオプレーヤーに重なるすべての「フローティング要素」がトグル切り替わります(コントロール弾幕など)。

Works for all websites, including videos inside iframe.

Script Description (generated by ChatGPT)

The "Video Overlay Vanisher" is a user script designed to improve your web video watching experience by providing a tool to hide video player overlays. This script is compatible with most websites, but excludes some specific sites or file types like live chats on YouTube and image or text file URLs.

How it works:

  1. Shortcut Activation: By pressing the Shift+D keys together, you can activate the script to scan for any video player overlays that may be covering your video content. It's designed not to interfere when you're typing in text fields.

  2. Overlay Detection: The script intelligently observes the webpage and detects any new elements that may be overlays on your video player. It particularly identifies elements that are absolutely or fixed positioned, which are typically overlay components.

  3. Video Element Detection: The script identifies the video element on the webpage that you're interacting with, considering elements within iframes as well. This way, it ensures that it targets overlays on the correct video player.

  4. Overlay Removal: Once activated, the script works to hide the detected overlays, providing you a cleaner video watching experience. The removal is temporary and does not modify the webpage permanently.

  5. Unhide Overlays: You can reveal the hidden overlays anytime by pressing Shift+D again.

The script runs automatically on the start of each webpage (document-start), but its overlay hiding function only activates when you use the Shift+D shortcut. It's a handy tool for users who frequently watch web videos and prefer a distraction-free viewing experience.

スクリプトの説明 (ChatGPT によって生成)

「ビデオオーバーレイバニシャー(Video Overlay Vanisher)」は、ウェブのビデオ視聴体験を向上させるために設計されたユーザースクリプトであり、ビデオプレーヤーのオーバーレイを非表示にするためのツールを提供します。このスクリプトはほとんどのウェブサイトと互換性がありますが、YouTubeのライブチャットや画像やテキストファイルのURLなど、一部の特定のサイトやファイルタイプは除外されます。

動作方法:

  1. ショートカットの有効化:Shift+Dキーを同時に押すことで、スクリプトをアクティブ化して、ビデオコンテンツを覆っている可能性のあるビデオプレーヤーオーバーレイをスキャンすることができます。テキストフィールドに入力しているときは干渉しないように設計されています。

  2. オーバーレイの検出:スクリプトはウェブページを賢く観察し、ビデオプレーヤーにオーバーレイとなる要素がないかを検出します。特に、絶対位置または固定位置にある要素を特定します。これらは通常、オーバーレイのコンポーネントです。

  3. ビデオ要素の検出:スクリプトは、ウェブページ上で対話しているビデオ要素を識別し、iframe内の要素も考慮に入れます。これにより、正しいビデオプレーヤー上のオーバーレイを対象にすることができます。

  4. オーバーレイの非表示化:アクティブ化されると、スクリプトは検出したオーバーレイを非表示にし、よりクリーンなビデオ視聴体験を提供します。非表示化は一時的であり、ウェブページを永久に変更しません。

  5. オーバーレイの表示:Shift+Dを再度押すことで、非表示にしたオーバーレイをいつでも表示することができます。

このスクリプトは、各ウェブページの開始時(ドキュメントの開始時)に自動的に実行されますが、オーバーレイを非表示にする機能はShift+Dのショートカットを使用したときのみアクティブになります。ウェブビデオを頻繁に視聴し、邪魔されない視聴体験を好むユーザーにとって便利なツールです。

YouTube as an example: