您好,游客!

您好,新朋友。点击以下按钮加入我们!

Works nicely but encounters an issue here ....

About: Youtube to Invidious
最后编辑于 May 18 脚本讨论 [?]

Works nicely but it won't handle a YouTube embedded video at:

https://www.amsterdam-dam.com/webcam.html

Am I missing something, can anyone confirm my experience on that site?

评论

  • Yea I can confirm this. I can explain why this doesn't work and why it probably never will. This script checks for iframes that have a youtube url as source. If you inspect the page element you can see that for some reason this website uses a url shortener for their iframe source (https://tinyurl.com/y6ozddqd). I don't know why anyone would ever do that but I apparently that's a thing lol...

    The reason that I will probably never get this to work with this script is because I simply cannot afford to follow every link-shortened url to check if there is a youtube video behind it. That would ruin the performance of this script and will have the negative side-effect that your browser will ping every link-shortened url it encounters on the web, that's a privacy issue.

    There is only one type of indirect url that the script can deal with and that's the kind that puts the actual youtube link in its subdirectory. E.g like this: http://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKGEekP1102g (embedly is commonly used for this).

    One last thing: "Het enige goeie wat er uit Amsterdam komt, dat is de trein naar Eindhoven!"

  • "[...]this website uses a url shortener for their iframe source"

    OK, I should have figured that out when noticing the url shortener displayed in uBlock Origin. Indeed, odd way of proceeding. Maybe does the site just use the shortener as a counter? No idea but weird.

    Nice joke about Amsterdam :=) Side-note and for a Sunday morning's smile : I've lived there three years in the eighties and having a view on Amsterdam's Dam recalls lovely memories :=)

    Thanks for the script, well carried-out. And now I know the because of the why!

登录注册后才能评论。