Skip to content

YouTube - Remove Annoyances by ariackonrel

Details

Authorariackonrel

LicenseNo License

Categorywww.youtube.com

Created

Updated

Size4.3 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, and more actions
Removes ad center popup (workaround to ad skip script)

Changelog
2.6: Properly hide create button
2.5: Fix layout issue on subscription and home pages
2.4: Hide YouTube TV ad shelf, improved layout on subscription page and home page when removing ad spots. Improves layout on slim mode window.
2.3: Hid a promoted shelf on the home page
2.2: Removes ad/sponsored results from home page and search (including the blank spots left behind). Removes merchandise/store shelf under videos.
2.1: Improved detection of My Ad Center, no longer hides the popup when you click on the channel about me section
2.0: Redid a lot of the CSS, should be more future-proof now, and reduced it by about 1,000 characters.
1.9 Fixed shorts player.
1.8: Fixed missing headers; only removes the top header now
1.7: 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.6: Removed the ad center popup (a workaround to ad skip script).

Source code

/* ==UserStyle==
@name         YouTube - Remove Annoyances
@version      2.6
@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;
}
/* Hide voice search button */
#voice-search-button {
  display: none;
}
/* Hide category header */
ytd-feed-filter-chip-bar-renderer {
  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; */
#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;
}
#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;
}
}

Reviews

No reviews yet.