Created
February 20, 2024 07:39
-
-
Save s3rb31/c69b4a6b1fbbfdfc7ec53e9806a0c96a to your computer and use it in GitHub Desktop.
trigger_youtube.com_addToPlaylistCommand
This file contains 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
$("ytd-app").actionRouter_.triggerOptionalAction("yt-add-to-playlist-command", | |
{ | |
"clickTrackingParams": "CIwDEMfsBBgDIhMI5an4zq20hAMVJ8JCBR2nQQSL", | |
"addToPlaylistCommand": { | |
"openMiniplayer": false, | |
"openListPanel": true, | |
"videoId": "r-GN1ibonvE", | |
"listType": "PLAYLIST_EDIT_LIST_TYPE_QUEUE", | |
"onCreateListCommand": { | |
"clickTrackingParams": "CIwDEMfsBBgDIhMI5an4zq20hAMVJ8JCBR2nQQSL", | |
"commandMetadata": { | |
"webCommandMetadata": { | |
"sendPost": true, | |
"apiUrl": "/youtubei/v1/playlist/create" | |
} | |
}, | |
"createPlaylistServiceEndpoint": { | |
"videoIds": [ | |
"r-GN1ibonvE" | |
], | |
"params": "CAQ%3D" | |
} | |
}, | |
"videoIds": [ | |
"r-GN1ibonvE" | |
] | |
} | |
}, | |
document.querySelector("#hover-overlays"), | |
{} | |
); | |
/* | |
can be further simplified via onYtAction__ since Zz == actionRouter_: | |
at a.invokeGetter (<anonymous>:3:28) | |
at HTMLElement.handleServiceRequest_ (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:6456:47) | |
at https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:1406:63 | |
at https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5706:62 | |
at Map.forEach (<anonymous>) | |
at j7a (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5706:25) | |
at Zz.handleAction (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5705:88) | |
at HTMLElement.onYtAction_ (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:30088:44) | |
at cA (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5710:135) | |
at dA (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5711:56) | |
at gA (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5714:51) | |
at mA.q7a [as handleServiceRequest] (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:9509:110) | |
at mA.resolveCommand (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:5735:219) | |
at jE (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:6943:488) | |
at e.resolveCommand (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:6949:57) | |
at f.onShow (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:16782:203) | |
at e.onVisible (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:6982:491) | |
at e.visibilityCallback (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:6977:243) | |
at https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:3858:106 | |
at f.handleObserveEvent (https://www.youtube.com/s/desktop/87423d78/jsbin/desktop_polymer.vflset/desktop_polymer.js:6217:304) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment