Less Addicting YouTube

Removes some distractions from YouTube with just CSS

  1. // ==UserScript==
  2. // @name Less Addicting YouTube
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  5. // @description Removes some distractions from YouTube with just CSS
  6. // @author Andrew Rosiclair <git@arosiclair>
  7. // @match https://www.youtube.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
  9. // @grant GM_addStyle
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. "use strict";
  15.  
  16. console.log("[Less Addicting Youtube] cleaning");
  17.  
  18. const styles = [
  19. // Hide categories at the top of the homepage
  20. "ytd-feed-filter-chip-bar-renderer[component-style=\"FEED_FILTER_CHIP_BAR_STYLE_TYPE_DEFAULT\"] { display: none; }",
  21.  
  22. // Hide special recommendations like Shorts on the homepage
  23. "ytd-rich-section-renderer { display: none; }",
  24.  
  25. // Hide commenter avatars
  26. "#author-thumbnail { display: none; }",
  27.  
  28. // Hide recommendations at the end of videos
  29. ".html5-endscreen { display: none; }",
  30.  
  31. // Hide recommendations on the side of the video page
  32. "#secondary { visibility: hidden; }",
  33.  
  34. // Adjust the indent on comment replies
  35. "ytd-comment-replies-renderer { margin-left: 0px; } .expander-header { margin-bottom: 8px; } #expander-contents { margin-left: 24px; } ytd-comment-view-model { margin-bottom: 12px; }",
  36. ];
  37.  
  38. GM_addStyle(styles.join(" "));
  39.  
  40. console.log("[Less Addicting Youtube] cleaned");
  41. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址