Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Protip: How to deal in the web browser with YouTube overlays showing at the end of videos and hiding content

Przemoc's protip (2017-08): Improve YouTube experience

Aren't you tired of overlays showing at the end of vids that hide content?

Me too! I figured out two easy solutions:

  1. Go to Developer Tools (F12 or Ctrl+Shift+I) and run following code in Console:

     $$(".ytp-ce-element").forEach(function(el){el.style.display="none"})
    
  2. Create bookmarklet with following URL:

     javascript:(function(){[].forEach.call(
         document.getElementsByClassName("ytp-ce-element"),
         function(el){el.style.display="none"}
     )})()
    

    Now just use this newly created bookmark.

First solution works in Chrome, second one should be cross-browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment