Skip to content

Instantly share code, notes, and snippets.

@kigiri
Created August 26, 2018 08:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kigiri/c3d0dc35a90c7d03d15f9ff7023248ca to your computer and use it in GitHub Desktop.
Save kigiri/c3d0dc35a90c7d03d15f9ff7023248ca to your computer and use it in GitHub Desktop.
clear your playlist on netflix
// pop the inspector and findyour authURL
// past this in the console
[...$$('a')]
.map(h => h.href)
.filter(a => a.startsWith('https://www.netflix.com/watch/'))
.map(a => a.split('/')[4].split('?')[0])
.map(n => fetch("https://www.netflix.com/api/shakti/v5bb18c11/playlistop", {
credentials: "include",
headers: {},
referrer: "https://www.netflix.com/browse/my-list",
referrerPolicy: "no-referrer-when-downgrade",
body: `{
"operation": "remove",
"videoId": ${n},
"trackId": 0,
"isWatchlistEnabled": false,
"authURL": ${authURL}
}`,
method: "POST",
mode: "cors"
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment