Skip to content

Watch individual videos that you saved for later without autoplaying all of them.

Notifications You must be signed in to change notification settings

jacamera/disable-youtube-watch-later-autoplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disable YouTube Watch Later Autoplay

Description

This browser extension disables the Watch Later autoplay behavior when selecting a video from the Watch Later list.

Background

The YouTube Watch Later feature lets users save a video to watch at a later time. When selecting a video from the Watch Later list YouTube will then always autoplay every subsequent video from the list. This happens because YouTube treats the Watch Later list just like any other playlist and there is no way to disable autoplay when viewing videos in a playlist.

How to Use the Extension

Just install the extension from the Chrome or Firefox stores. Once installed, the extension works automatically. When you click on a video on the Watch Later list the extension will remove the playlist parameters from the video URL, allowing you to watch the video or copy the URL without the default autoplaying playlist behavior.

How it Works

The extension injects a content script into the YouTube web page which then listens for mouse events. If a click is detected on a video from the Watch Later playlist then the extension modifies the video URL to remove the playlist query string parameters.

If a click is detected that would cause a navigation to the video then the default in-page navigation behavior is prevented and a full page load is triggered. This is necessary due to the fact that changing the href attributes on the anchor elements does not affect the behavior of YouTube's in-page navigation system. Even if the all the href attributes are changed before any click events are triggered the in-page navigation will always load the video with the rest of the playlist.

About

Watch individual videos that you saved for later without autoplaying all of them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published