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.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址