YelloNox / YouTube-UnBlock

Remove the "block" element on Y-Tub
MIT License
16 stars 1 forks source link

Playlists #4

Open derrickrossignol opened 10 months ago

derrickrossignol commented 10 months ago

When trying to play a video from a playlist (with a url like youtube.com/watch?v=[video ID]&list=[playlist ID]&index=1 ), it doesn't work. The frame created by UnBlock shows the error message, "An error occurred. Please try again later. (Playback ID: [ID])." The page just automatically moves from one playlist video to the next, unable to play any of them.

YelloNox commented 10 months ago

I am having trouble getting the block to show (believe it or not). For now, I'll try forcing a fix and will release an update in the following day-3days; as I have little time at the moment.

YelloNox commented 10 months ago

Ok, I think I fixed the issue and hopefully didn't break anything else... Maybe : |

derrickrossignol commented 10 months ago

Just tested it and it works properly now! Also, there was a similar issue with URLs that have a timestamp in them (like youtube.com/watch?v=[video ID]&t=100s, for example), but this fix took care of that, too. I'm also not seeing anything else broken as a result of the update. Thanks!

derrickrossignol commented 10 months ago

I'm actually still experiencing the same issues as before. For whatever reason, YouTube stopped presenting my account with the anti-adblocker screen for a couple days, so when I tried your updated script, I thought your fix had worked, but it was just YouTube going temporarily back to normal for me. So, I turned off your script and was using YouTube normally without issues again. But, YouTube put up the block on my account again today and, like before, the script is not working for playlists and timestamped videos.

Not a dealbreaker for me (other scripts that work similarly to yours have the same issues), but just figured you should know, thanks!

YelloNox commented 10 months ago

It seems YouTube updated some things as currently, the video is just black for me. I'll need to rework the code soon.

YelloNox commented 10 months ago

Ohno! I accidentally forgot to re-add the correct class after I finished testing. I just fixed it. Let me know if the issue persists.

WaGi-Coding commented 10 months ago

tried the most recent version now, but still just endless skips through playlists ^^

YelloNox commented 10 months ago

I found out why the playlists are skipping. YouTube believes the videos failed to load, thus, they skip after some time. I will see what I can workaround.

HydroXBR commented 8 months ago

Hey there, @YelloNolo!

First of all, thank you very much for trying to develop something that is very useful for people like me who can't stand ads like those on YouTube. It helps me a lot to study. Watching class playlists, I noticed the bug and saw that, as described on GreasyFork, solutions to this problem are being analyzed. So, I made an observation and I'm commenting here so that maybe I can help with something.

I noticed that, in a playlist, the video URLs receive the index parameter, like this: https://www.youtube.com/watch?v=VIDEO&list=PLAYLISTID&index=INDEX

By removing the parameter from the URL, we can see that the problem does not occur and the video plays normally as if it were any "loose" video, like this: https://www.youtube.com/watch?v=VIDEO&list=PLAYLISTID

Attached, I left a video showing that the problem stops after removing the parameter.

I hope I contributed something and, once again, thank you very much!

PS: Sorry for the strange English, I'm Brazilian and I still need help from the translator to write lol.

https://github.com/YelloNolo/YouTube-UnBlock/assets/72590492/f588ab76-ee8c-4370-b87b-096b98ec074f

YelloNox commented 8 months ago

@HydroXBR I just tried this, but it seems that if you wait a bit, it ends up switching back to the "index" link. I created a new branch for testing if you want to upload the script and see if it works for you: https://github.com/YelloNolo/YouTube-UnBlock/tree/Playlist-Fix-Testing

Note: I also tried replacing all URL's inside the HTML that would match the broken URL, but to no success.

HydroXBR commented 7 months ago

When you sent it, I applied the branch and it worked until today, it's helping me a lot, actually! I was able to follow classes through playlists normally!

Of course, it may be that works for me only, I believe it also depends on the browser, but helped me a lot.