/* ==UserStyle==
 @name           快適Youtube
 @namespace      https://darallium.com/publish/user-styles/comfortable_youtube.user.css
 @version        1.0.6
 @description    Youtubコメント削除も包含しています。
 @author         darallium 
 @updateURL      https://darallium.com/publish/user-styles/comfortable_youtube.user.css
 @downloadURL    https://darallium.com/publish/user-styles/comfortable_youtube.user.css
 ==/UserStyle== 
*/

@-moz-document domain("www.youtube.com") {
  /*コメント削除*/
  #comments > .ytd-comments.style-scope {
    display: none;
  }
  /*  チャットのリプレイ削除 */
  .yt-spec-button-shape-next--size-m,
  #show-hide-button,
  #right-arrow-button > .yt-chip-cloud-renderer.style-scope {
    display: none;
  }
  /*  チャンネルトップ動画削除 */
  .ytd-channel-video-player-renderer {
    display: none;
  }
  /*  左側のいろいろ削除 */
  .ytd-guide-renderer.style-scope:nth-of-type(3),
  .ytd-guide-renderer.style-scope:nth-of-type(4) {
    display: none;
  }
  #guide-links-primary,
  #guide-links-secondary,
  #copyright {
    display: none;
  }
  /*  通知ボタン削除 */
  #buttons.ytd-masthead > *.ytd-masthead:not(:last-child) {
    display: none;
  }
  /* 再生回数投稿日時削除*/
  .ytd-video-meta-block:not([inline-badges])
    #metadata-line.ytd-video-meta-block
    span.ytd-video-meta-block {
    display: none;
  }

  /* 動画メタデータの削除 */
  #description-inline-expander > .ytd-watch-metadata.style-scope {
    display: none;
  }

  /* 後で見るの削除*/
  ytd-thumbnail-overlay-toggle-button-renderer[aria-label="後で見る"] {
    display: none;
  }

  /* タイトルの省略を削除 */
  * {
    -webkit-line-clamp: 3 !important;
    max-height: none !important;
  }
}

@-moz-document url("https://www.youtube.com/")
{
  /* homeでの自動作成プレイリストを削除 */
  ytd-rich-item-renderer:has(
      > div#content
        > ytd-rich-grid-media
        > div#dismissible
        > div#details
        > a[id="avatar-link"][title="undefined"]
    ) {
    display: none;
  }
  /* Youtube Shorts 削除*/
  .ytd-rich-grid-renderer.style-scope:nth-of-type(1) {
    display: none;
  }
}
