Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple script to switch to the uploads playlists (Uploads by...) on YouTube
var params = new URLSearchParams(location.search)
var listId = params.get('list')
if (listId && listId.startsWith('UU')) {
params.delete('list')
params.delete('index')
} else {
params.set('list', 'UU' + ytInitialPlayerResponse.videoDetails.channelId.substr(2))
}
location.search = params.toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment