Skip to content

Instantly share code, notes, and snippets.

@przemoc
Last active August 24, 2017 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przemoc/288234c290eb6dd03f09c3c2b1dc2db6 to your computer and use it in GitHub Desktop.
Save przemoc/288234c290eb6dd03f09c3c2b1dc2db6 to your computer and use it in GitHub Desktop.
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