Hide metrics (view counts, like counts, etc.) from YouTube pages.
youtube.com - Hide metrics by ajhall
Details
Authorajhall
LicenseUnlicense
Categoryyoutube
Created
Updated
Size4.8 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.com - Hide metrics
@namespace github.com/ajhall
@version 2.2.3
@description Hide metrics (view counts, like counts, etc.) from YouTube pages.
@author ajhall
==/UserStyle== */
@-moz-document domain("youtube.com") {
/* explicit IDs */
#owner-sub-count
, #subscriber-count
, #view-count
, #video-count
, #metadata #subscribers
, #metadata #subscribers + #dot
/* Home page: view counts */
/* Unfortunately this also hides scheduled stream times */
, ytd-two-column-browse-results-renderer[page-subtype="home"] ytd-video-meta-block #metadata-line span.inline-metadata-item:before
, ytd-two-column-browse-results-renderer[page-subtype="home"] ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:nth-child(3)
/* Subscriptions page: view counts */
/* Unfortunately this also hides scheduled stream times */
, ytd-two-column-browse-results-renderer[page-subtype="subscriptions"] ytd-video-meta-block #metadata-line span.inline-metadata-item:before
, ytd-two-column-browse-results-renderer[page-subtype="subscriptions"] ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:nth-child(3)
/* Search page: view counts */
, ytd-two-column-search-results-renderer ytd-video-meta-block #metadata-line span.inline-metadata-item:before
, ytd-two-column-search-results-renderer ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:nth-child(3)
/* History page: view counts */
, ytd-two-column-browse-results-renderer[page-subtype="history"] ytd-video-meta-block #metadata-line span.inline-metadata-item:before
, ytd-two-column-browse-results-renderer[page-subtype="history"] ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:nth-child(3)
, ytd-two-column-browse-results-renderer[page-subtype="history"] ytd-video-meta-block #separator
/* Channel page: view counts */
, ytd-two-column-browse-results-renderer[page-subtype="channels"] ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:before
, ytd-two-column-browse-results-renderer[page-subtype="channels"] #metadata #metadata-line span.inline-metadata-item:nth-child(3)
/* Playlist page: view counts */
, ytd-two-column-browse-results-renderer[page-subtype="playlist"] #video-info .yt-formatted-string:first-child
, ytd-two-column-browse-results-renderer[page-subtype="playlist"] #video-info .yt-formatted-string:nth-child(2)
/* Watch page: recommendation view counts */
, ytd-watch-next-secondary-results-renderer ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:before
, ytd-watch-next-secondary-results-renderer ytd-video-meta-block #metadata #metadata-line span.inline-metadata-item:nth-child(3)
/* Watch page: vote counts on comments */
, #vote-count-middle
/* Watch page: number of comments */
, #count.ytd-comments-header-renderer yt-formatted-string.count-text span.yt-formatted-string:first-child
/* Watch page: sub count on channel info card in expanded video description */
, ytd-video-description-infocards-section-renderer #subtitle
/* Watch page: tooltip when you hover over video description */
, ytd-watch-info-text tp-yt-paper-tooltip
/* Watch page: view count on livestreams */
, #description ytd-watch-info-text yt-formatted-string#info > span:first-child:not(:only-child)
, #description ytd-watch-info-text yt-formatted-string#info > span:first-child:not(:only-child) + span
/* Channel page: view counts */
, ytd-browse #metadata-container #metadata-line span:first-child
, ytd-browse #metadata-container #metadata-line span:first-child + span:before
/* Channel page: view counts on associated channels */
, ytd-item-section-renderer[page-subtype="channels"] #channel #thumbnail-attribution
/* Channel page: subscriber/video count */
, #page-header .yt-content-metadata-view-model-wiz__delimiter
, #page-header yt-content-metadata-view-model div.yt-content-metadata-view-model-wiz__metadata-row:nth-of-type(2) span:first-child
/* Shorts */
, ytm-shorts-lockup-view-model-v2 div.ShortsLockupViewModelHostMetadataSubhead
, ytm-shorts-lockup-view-model-v2 div.shortsLockupViewModelHostMetadataSubhead
/* Channel details*/
, ytd-about-channel-renderer table tr:nth-child(4)
, ytd-about-channel-renderer table tr:nth-child(5)
, ytd-about-channel-renderer table tr:nth-child(6)
{
display: none !important;
}
/* Watch page: like button */
segmented-like-dislike-button-view-model div[class$="text-content"] {
display: none !important
}
segmented-like-dislike-button-view-model .yt-spec-button-shape-next__icon {
margin: 0 !important
}
}