Skip to content

YouTube プレーヤーの諸々アイコン非表示 by hori68

Details

Authorhori68

LicenseCC-BY-4.0

CategoryYouTube

Created

Updated

Size1.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

ミニプレーヤー、ピクチャーインピクチャー、次へ、前へのアイコンを好みに応じて非表示化

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           YouTube プレーヤーの諸々アイコン非表示
@namespace      userstyles.world/user/hori68
@version        1.0
@description    ミニプレーヤーやピクチャーインピクチャーのアイコンの非表示化
@author         hori68
@license        CC-BY-4.0
@preprocessor   stylus
@var checkbox   disp_mini   "ミニプレーヤー" 0
@var checkbox   disp_pip    "ピクチャーインピクチャー" 0
@var checkbox   disp_n_next "通常動画再生時の「次へ」" 1
@var checkbox   disp_l_next "再生リスト再生時の「次へ」" 1
@var checkbox   disp_l_prev "再生リスト再生時の「前へ」" 1
==/UserStyle== */

@-moz-document domain("youtube.com") {
    i = !important //
    ytd-watch-flexy ytd-player div.ytp-chrome-bottom{
        if !disp_n_next{
            a[aria-disabled="true"].ytp-prev-button~a.ytp-next-button{
                display: none i;
            }
        }
        if !disp_l_next{
            a[aria-disabled="false"].ytp-prev-button~a.ytp-next-button{
                display: none i;
            }
        }
        if !disp_l_prev{
            a[aria-disabled="false"].ytp-prev-button{
                display: none i;
            }
        }
        if !disp_mini{
            button.ytp-miniplayer-button{
                display: none i;
            }
        }
        if !disp_pip{
            button.ytp-pip-button{
                /* display: none i; 何故かうまく行かない */
                width: 0px i; /* かなり強引 */
                padding: 0 i;
            }
        }
    }
}

Reviews

No reviews yet.