Created
August 26, 2018 08:17
-
-
Save kigiri/c3d0dc35a90c7d03d15f9ff7023248ca to your computer and use it in GitHub Desktop.
clear your playlist on netflix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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