Skip to content

YouTube - Remove Annoyances by ariackonrel

Details

Authorariackonrel

LicenseNo License

Categorywww.youtube.com

Created

Updated

Size4.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes personal annoyances on YouTube

Notes

Changes from this style:

Home screen: Removes the voice search and create buttons, top category header, sponsored posts/ad posts (video spots and removes the blank spots)
Left sidebar: Removes downloads, Your movies & TV, History, Settings, Report history, Liked videos, Help, Send Feedback, More from YouTube, Explore, and the entire bottom footer on the left sidebar
Within the video player: Removes the paid content warning/overlay and the channel watermark icon (bottom right)
Under video player: Removes the thanks, clip, join, download, store/merchandise shelf, emergency box (crisis hotline, etc.) and more actions
Removes ad center popup (workaround to ad skip script)

Changelog
1.22: Hide Emergency Box (988 & Crisis Hotline, etc.) and hide the category quick buttons (Home and Video Player pages)
1.21: Fix create button hiding
1.20: Fix hiding category bar
1.19: Hide Watch on YT TV ad on feed
1.18: Fix missing save to playlist button under player
1.17: Hide Watch on YouTube Offer
1.16: Properly hide create button
1.15: Fix layout issue on subscription and home pages
1.14: Hide YouTube TV ad shelf, improved layout on subscription page and home page when removing ad spots. Improves layout on slim mode window.
1.13: Hid a promoted shelf on the home page
1.12: Removes ad/sponsored results from home page and search (including the blank spots left behind). Removes merchandise/store shelf under videos.
1.11: Improved detection of My Ad Center, no longer hides the popup when you click on the channel about me section
1.10: Redid a lot of the CSS, should be more future-proof now, and reduced it by about 1,000 characters.
1.03 Fixed shorts player.
1.02: Fixed missing headers; only removes the top header now
1.01: Removed watermark and paid content overlay from within the video player. Removed voice search button, create button, and the top header to pick a category for search). Improved removing clip and thanks buttons.
1.00: Initial release, added Ad Center popup workaround (ad block script)

Source code

/* ==UserStyle==
@name         YouTube - Remove Annoyances
@version      1.22
@description  Removes personal annoyances on YouTube
@author       Jon
@namespace    userstyles.world/user/ariackonrel
==/UserStyle== */

@-moz-document domain("youtube.com") {
/* Hide sections on the left sidebar */
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Downloads"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Shorts"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Your movies & TV"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="History"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Settings"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Report history"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Liked videos"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Help"] {
  display: none;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Send feedback"] {
  display: none;
}
#endpoint.yt-simple-endpoint.style-scope.ytd-guide-section-renderer[title="More from YouTube"] {
  display: none;
}
#endpoint.yt-simple-endpoint.style-scope.ytd-mini-guide-entry-renderer[title="Shorts"] {
  display: none;
}
/* Hide explore section on left sidebar, "more from YouTube" header, YouTube Premium/Kids/TV buttons */
#sections > ytd-guide-section-renderer:nth-child(4) > h3 {
  display: none;
}
#sections > ytd-guide-section-renderer:nth-child(3) {
  display: none;
}
#endpoint.yt-simple-endpoint.style-scope.ytd-guide-entry-renderer[title="YouTube Premium"] {
  display: none;
}
#endpoint.yt-simple-endpoint.style-scope.ytd-guide-entry-renderer[title="YouTube Kids"] {
  display: none;
}
#endpoint.yt-simple-endpoint.style-scope.ytd-guide-entry-renderer[title="YouTube TV"] {
  display: none;
}
/* Remove entire sidebar footer */
#footer.style-scope.ytd-guide-renderer {
  display: none;
}
/* Hide create button */
#buttons > ytd-topbar-menu-button-renderer.style-scope.ytd-masthead.style-default {
  display: none;
}
#buttons [aria-label="Create"] {
  display: none;
}
/* Hide voice search button */
#voice-search-button {
  display: none;
}
/* Hide category header 
ytd-feed-filter-chip-bar-renderer {
  display: none;
}
*/
#items [alternative-label="More videos"] {
  display: none;
}
/* Hide "My Ad Center" popup (workaround to ad skip script) */
body > ytd-app > ytd-popup-container > tp-yt-paper-dialog:has(.yt-about-this-ad-renderer) {
  display: none;
}
/* Hide ads or sponsored videos from home screen and search */
#contents > ytd-rich-item-renderer:has(.ytd-ad-slot-renderer) {
  display: none;
}
/* Fix number of post layout from removing ad spaces */
#contents:has(.ytd-rich-grid-renderer) {
  --ytd-rich-grid-items-per-row: 3;  
/*   --ytd-rich-grid-slim-items-per-row: 5; */
}
/* Hide some ads/engagements (suggestions) */
#contents > ytd-rich-item-renderer:has(.ytd-ad-slot-renderer) {
  display: none;
}
#sparkles-container:has(.ytd-promoted-sparkles-web-renderer){
  display: none;
}
#contents > ytd-rich-section-renderer:has(.ytd-brand-video-shelf-renderer) {
  display: none;
}
#dismissible:has(.ytd-primetime-promo-renderer) {
  display: none;
}
#dismissible:has(.ytd-statement-banner-renderer) {
  display: none;
}
#mealbar-promo-renderer {
  display: none;
}
#panels > ytd-engagement-panel-section-list-renderer {
  display: none;
}
/* Hide elements within video player */  
#movie_player > div.ytp-paid-content-overlay {
  display: none;
}
#movie_player [aria-label="Channel watermark"] {
  display: none;
}
#movie_player [aria-label="View products"] {
  display: none;
}
/* Hide Merchandise/store under videos */
#main:has(.ytd-merch-shelf-renderer) {
  display: none;
}
/* Hide buttons under YouTube videos */
#flexible-item-buttons [aria-label="Download"] {
  display: none;
}
#flexible-item-buttons [aria-label="Thanks"] {
  display: none;
}
#flexible-item-buttons [title="Show support with Super Thanks"] {
  display: none;
}
#flexible-item-buttons [aria-label="Clip"] {
  display: none;
}
#sponsor-button [aria-label="Join this channel"] {
  display: none;
}
#button-shape [aria-label="More actions"] {
  display: none;
}
/* Hide Watch on YouTube Offer */
#offer-module {
  display: none;
}
/* Hide Emergency Box (988 & Crisis Hotline, etc...) */
.ytd-emergency-onebox-renderer {
  display: none;
}
/* Hide Category Quick Search on Home Page */
.ytd-feed-filter-chip-bar-renderer {
  display: none;
}
/* Hide Category Quick Search on Video Player Page */
.yt-chip-cloud-renderer {
  display: none;
}
}

Reviews

No reviews yet.