Greasy Fork is available in English.

YT2Invidio

Point YouTube links to Invidious, Twitter to Nitter, Instagram to Bibliogram, Reddit to Teddit, Medium to Scribe

< Rückmeldungen aufYT2Invidio

Frage/Kommentar

§
Veröffentlicht: 31.01.2020

Support replacing Youtube and Twitter Embeds with Invidious and Nitter

It would be nice if it could do that.

IzzySoftVerfasser
§
Veröffentlicht: 31.01.2020

Maybe. What link should be converted into which? If you can give me both, I can take a look.

§
Veröffentlicht: 31.01.2020

Actually, there's no embed support for Nitter (as of now). For Youtube, it should be youtube.com/embed/ to invidio.us/embed/

IzzySoftVerfasser
§
Veröffentlicht: 31.01.2020

Thanks for the URL elements. I've just found an example page with an embedded video. As you might have guessed, those are not "links" but "iframes". And now comes the deal-breaker: as those iFrames are XS (Cross-Site), I was not able to grab the link from within Greasemonkey. I might have missed a trick unknown to me – so if you happen to know, please tell me; but it seems I'm unable to grant your wish, as much as I'd like to.

§
Veröffentlicht: 31.01.2020

Youtube to Invidious used to work (its a script that is on this site).

IzzySoftVerfasser
§
Veröffentlicht: 31.01.2020

That would probably be this script then. I'd rather avoid using MutationObserver (AFAIK it's quite resource hungry). I'll let that sit as a note here, though; when I come upon a page with an embedded video again and have some time, I'll check. At the moment, both conditions are not met (have no such page, and not the time to play with it), sorry. But it's not forgotten.

IzzySoftVerfasser
§
Veröffentlicht: 03.02.2020

I don't see any YT frame there.

IzzySoftVerfasser
§
Veröffentlicht: 04.02.2020

Thanks!

Note to self: document.getElementsByTagName('iframe')[4].attributes[3].value seems to get the embed URL on that page (https://www.youtube.com/embed/A0rEk6AK1I0). Need to try if we can do that without MutationObserver, by just walking the frames.

§
Veröffentlicht: 16.04.2020

@IzzySoft said: Thanks!

Note to self: document.getElementsByTagName('iframe')[4].attributes[3].value seems to get the embed URL on that page (https://www.youtube.com/embed/A0rEk6AK1I0). Need to try if we can do that without MutationObserver, by just walking the frames.

You can check this Out: https://greasyfork.org/en/scripts/394841-youtube-to-invidio-us-embed. This does work.

If you have time you can also possibly integrate auto-dash (https://greasyfork.org/en/users/322108-cylgom) but make it so that it works well with embed video if you add support to it and 1080p support to.(https://greasyfork.org/en/scripts/394627-1080p-for-invidio-us)

IzzySoftVerfasser
§
Veröffentlicht: 16.04.2020

Thanks, @Beastmaster – done! Except for auto-dash (I don't want to setup mutation observers).

Antwort schreiben

Anmelden um eine Antwort zu senden.