Skip to content

清爽YouTube by VisJoker

Details

AuthorVisJoker

LicenseMIT

Categorywww.youtube.com

Created

Updated

Size948 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

让YouTube干扰更少

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         清爽YouTube
@version      0.1
@namespace    github.com/openstyles/stylus
@description  让YouTube更少干扰
@author       Birdie0
@supportURL   https://github.com/Birdie0/userstyles/issues
@license      MIT
@preprocessor stylus

@var checkbox hide_related        '隐藏相关栏目'   1
@var checkbox hide_comments       '隐藏评论区' 1
@var checkbox hide_playback_line  '隐藏播放线'    1
@var checkbox hide_shorts_section '隐藏短片区'   1
==/UserStyle== */

@-moz-document domain("youtube.com") {
	if hide_related {
		#related {
			transition: opacity .5s;

			&:not(:hover) {
				opacity: 0;
			}
		}
	}

	if hide_comments {
		#comments {
			display: none !important;
		}
	}

	if hide_playback_line {
		ytd-thumbnail-overlay-resume-playback-renderer {
			display: none !important;
		}
	}

	if hide_shorts_section {
		[is-shorts],
		ytd-reel-shelf-renderer {
			display: none !important;
		}
	}
}

Reviews

No reviews yet.