A JavaScript bookmarklet to view YouTube videos/playlists as their embedded equivalent.
YouTubeClean is a program written to take the current YouTube video, playlist, or video as part of a playlist that you are visiting, and navigate your web browser to its embedded equivalent. Embedded YouTube videos don't have comments, or sidebar video suggestions allowing you to watch your content without any other distractions or viewing any unwanted content.
This program is intended for use as a bookmarklet in a web browser, but can be executed from Google Chrome's address bar and developer console or in other web browsers.
From a YouTube video, playlist, or video playing as part of a playlist, you can run the script by one of these methods:
To run the script as a bookmarklet:
- Copy the contents of youtubeClean.js on line 15 and save it as a bookmark. (Google Chrome instructions on saving a bookmarklet detailed below.)
- Click your newly created YouTubeClean bookmarklet!
To run the script from Google Chrome's address bar:
- Copy the contents of youtubeClean.js on line 15 and paste them into the address bar.
- Press the Enter/Return key on your keyboard.
To run the script from Google Chrome's developer console:
- Open the developer console by pressing Alt + Ctrl + I on a PC or Option + Command + I on a Mac.
- Copy the contents of youtubeClean.js on line 15 and paste them into the developer console.
- Press the Enter/Return key on your keyboard.
To save this script as a bookmarklet in Google Chrome:
- Navigate to chrome://bookmarks
- Choose a destination for your bookmarklet (Ex. Bookmarks Bar Folder).
- Right-click the destination folder or the white area to the right of the navigation pane.
- Select Add Page... from the context menu.
- Type a name for the bookmarklet (Ex. YouTubeClean) in the Name field.
- Copy the contents of youtubeClean.js on line 15 and paste them into the URL field.
Because YouTubeClean converts YouTube videos and playlists to their embedded equivalent, videos and playlists that contain ads will not play as embedded links without the use of an ad blocker.
A video on YouTube:
| Video | Using YouTubeClean |
|---|---|
![]() |
![]() |
| https://www.youtube.com/watch?v=mnzlJtKy-2s | https://www.youtube.com/embed/mnzlJtKy-2s |
A playlist on YouTube:
| Playlist | Using YouTubeClean |
|---|---|
![]() |
![]() |
| https://www.youtube.com/playlist?list=PLgNjCSGFfYetqrZxlYiU8yWaBs-XMmdqg | https://www.youtube.com/embed/playlist?list=PLgNjCSGFfYetqrZxlYiU8yWaBs-XMmdqg |
A video on YouTube as part of a playlist:





