yt css

a

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        yt css
// @description a
// @match       https://*.youtube.com/*
// @run-at      document-end
// @version 0.0.1.20260409072915
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
    const css = `
    ytd-mini-guide-renderer, grid-shelf-view-model, ytd-shelf-renderer, ytm-paid-content-overlay-renderer, .ytSearchboxComponentSuggestionsContainer, div#related, div#chip-bar, .ytp-info-panel-preview, .ytp-pause-overlay-container, .ytp-fullscreen-grid, yt-mealbar-promo-renderer {
    display: none !important;
    }

ytd-video-renderer:has(> div > ytd-thumbnail > a[href^="/shorts/"]), ytd-rich-section-renderer:has(> div#content > ytd-rich-shelf-renderer[is-shorts]), ytd-rich-section-renderer:has(> div#content > ytd-chips-shelf-with-video-shelf-renderer), div#header:has(> ytd-feed-filter-chip-bar-renderer > div#chips-wrapper) {
display: none !important;
}

div#frosted-glass {
    height: revert !important;
}

div#masthead-container {
    background-color: black !important;
}
  `;
    const style = document.createElement('style');
    style.textContent = css;
    document.head.appendChild(style);
})();