Scan page for Youtube embeds and urls and replace with Invidious.
< Feedback on Youtube to Invidious
Actually, it works on all the pages I've tried except for https://www.resetera.com/threads/toonami-julaug19-i-don%E2%80%99t-care-how-many-naked-breasts-there-are-that-chicken-is-much-more-exciting.126432/page-136.
Thanks, I see what the problem is. I'll look into making it compatible with the script.
You're welcome.
Just pushed an update that should fix it. Let me know if it works. Also let me know if you find more webpages where it doesn't work.
It does. It no longer works on https://www.siliconera.com/2019/07/16/akatsuki-no-kiseki-mobile-headed-to-switch-in-japan-in-summer-2019/ now.
Can you please make it compatible with that site?
good call, fixed.
Now the embedded video on https://www.resetera.com/threads/new-pok%C3%A9mon-sword-shield-trailer-gigantamaxing-new-pok%C3%A9mon-version-exclusive-gym-leaders-and-pok%C3%A9mon.127862/page-36 is redirecting to a null page on resetera.
It works for me, can you inspect the embed (right click -> inspect element) and tell me what the 'src' attribute of that iframe is?
It happens randomly on https://www.resetera.com/threads/pokemon-sword-and-shield-potential-leaks-beware-spoilers.121008/. Also, youtube embeds in Twitter are playing automatically with no video being shown (instead, its just the thumbnail that is shown before clicking on it).
EDIT: The null page issue is also occurring on any youtube embed that is on https://twitter.com/yugiohmemories (along with the automatic playing of them even though I didn't click on them).
Okay I see what's wrong, I have an idea to fix all of these things at once. Gimme some time to code it.
Done, works on every site you mentioned now for me. Thanks for these reports, I'm learning a lot here!
Its broken again in Pale Moon 28.9.0.2. I am getting the following errors in the Browser Console when visiting https://www.resetera.com/threads/toonami-marapr20-oh-im-in-hell.172839/page-232.
XrayWrapper denied access to property Symbol.iterator (reason: value is callable). See https://developer.mozilla.org/en-US/docs/Xray_vision for more information. Note that only the first denied property access from a given global object will be reported. Youtube_to_Invidious.user.js:84:31 url.searchParams.keys(...) is not iterable Youtube_to_Invidious.user.js:84:32
It doesn't work in Pale Moon v28.5.2
I am using Greasemonkey for Pale Moon 3.31.4 in that version of Pale Moon.