Skip to content

Instantly share code, notes, and snippets.

@Hans5958
Last active July 13, 2022 13:54
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 Hans5958/968396f3d77a7532e5acc546b73c4d9a to your computer and use it in GitHub Desktop.
Save Hans5958/968396f3d77a7532e5acc546b73c4d9a to your computer and use it in GitHub Desktop.
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