Youtube: Add to Playlist Icons

Adds icons to the video toolbar which adds to specific playlists with 1 click.

< 脚本 Youtube: Add to Playlist Icons 的反馈

提问 / 留言

Deleted user 223647
§
发布于:2018-12-02

ahahahahaha!

Si tu script se basa en click's pues creo, yo que no se espera muchas lineas de codigo para algo simple e imcompleto, ya que se resumirian en algunas lineas de codigo y no las muchas que has hecho mejoralo.

Zren作者
§
发布于:2018-12-02

https://translate.google.com : If your script is based on click's because I think, I do not expect many lines of code for something simple and incomplete, as they would be summarized in some lines of code and not the many that you have improved.

If all I needed to do was "create a list of buttons" that call a function, the code would be much smaller. However YouTube uses AJAX to load the next page, so my code also needs to "detect" when the URL changes, which is what the HistoryEvent code does.

YouTube also doesn't have a simple "yt.user.playlists.addVideoToPlaylist(playlistId, videoId)" function, so I need to emulate clicking the "Add to Playlist button", then waiting for the dialog to download the current user's playlists + show the popup, then click the specific button.

发布留言

登录以发布留言。