Greasy Fork is available in English.
Adds icons to the video toolbar which adds to specific playlists with 1 click.
< Rückmeldungen aufYoutube: Add to Playlist Icons
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.
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.