this post was submitted on 29 Sep 2023
1 points (100.0% liked)
Firefox
20317 readers
279 users here now
/c/firefox
A place to discuss the news and latest developments on the open-source browser Firefox.
Rules
1. Adhere to the instance rules
2. Be kind to one another
3. Communicate in a civil manner
Reporting
If you would like to bring an issue to the moderators attention, please use the "Create Report" feature on the offending comment or post and it will be reviewed as time allows.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
No matter how you extract the code, this will be hacky. The problem with this approach is that you are entirely dependent on the YouTube backend. They will not notify you when they change their code/API. They will not comment their code.
In the past, this has led to a considerable development investment of projects like NewPipe where they have to fix somethong every few months as there is a backend change.
I am still thinking about your problem, but I am unsure whether the approach of extracting from JS works (mid term).
Why not do the steps you outlined above as a macro on your keyboard? This eliminates the need for JS. To extract the video URL, you could use some RegEx automatically or
Ctrl+F
. Just some thoughts. I am still invested into this weird request :)Thanks for the recommendation. I've done pretty much exactly what you describe using AutoHotKey.
Haha, not sure why you would be, but thanks!
This is another option I am considering. Again, I'm not too familiar with the tools, but I'm vaguely aware of tools like AutoHotkey. Are there any tools you would recommend for this sort of thing?