Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do reduce the distraction of YouTube, I stripped off all the suggestions and comments from it. This makes it so YouTube just shows a single video, and doesn't send me down a rabbit hole.

I used stylebot chrome extension with this css:

  #masthead-container, .videowall-endscreen, #secondary, .ytd-comments, #upload-info, ytd-video-owner-renderer, .super-title,.ytp-ce-element, #items {
    display:none
  }
and I used CJS to add this javascript to the page (I did this first, so possibly the css made some of this not needed). Be sure to turn jQuery on.

  const $ = jQuery;
  function hideThem(){
    if(jQuery('.ytd-compact-autoplay-renderer#toggle')[0].checked){
      jQuery('.ytd-compact-autoplay-renderer').click();
    }
  }
    hideThem();

  $(document).ready(()=>{
    hideThem();
  });


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: