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
§
Δημοσιεύτηκε: 02/12/2018

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Δημιουργός
§
Δημοσιεύτηκε: 02/12/2018

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.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.