cleverdevil
cleverdevil

Hey, iOS automation geeks, I have a project for us. I want a Shortcut that will find all YouTube videos embedded in the current open Safari tab, show the URLs in a list, and then open the tapped URL in VLC or other non-YouTube video player app.

|
Embed
craigmcclellan
craigmcclellan

@cleverdevil If the website’s JavaScript isn’t too insane, this shortcut should get you the first half of what you want. I don’t have any non-YouTube apps to test the rest of it out in.

|
Embed
In reply to
craigmcclellan
craigmcclellan

@craigmcclellan @cleverdevil That being said, some of the website’s I’ve tried it on are crazy and embed YouTube videos in a weird way. This shortcut definitely doesn’t work on those.

|
Embed
cleverdevil
cleverdevil

@craigmcclellan yeah, I have used that one as a starting point, and I am pretty close, but like you said, some websites do bonkers embeds that just can’t be detected by inspecting the source. Thanks for nothing, JavaScript!

|
Embed