YT2Invidio

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

< Feedback on YT2Invidio

Question/comment

§
Posted: 2020.08.16.
Edited: 2020.08.16.

Due to a problem with YouTube preventing Invidious from showing channel video listings, could this script please not apply to at least legacy channel pages (those with "?disable_polymer=1" in the URL) while still applying to actual videos itself?

For example, on the following YouTube channel: https://www.youtube.com/channel/UCL3qzii9efb3Tbch2lG4Ocg?disable_polymer=1

Clicking "videos" takes you to the following where you run head-first into the aforementioned problem: https://invidious.snopyta.org/channel/UCL3qzii9efb3Tbch2lG4Ocg


For reference, the following is the aforementioned YouTube/Invidious issue in question: https://github.com/iv-org/invidious/issues/1333

IzzySoftAuthor
§
Posted: 2020.08.17.

You can add them to "user ignore" (aka "excluded pages") for this script (Greasemonkey lets the user override what the script author defined) until the issue is solved. A URL like https://*/channel/* should do the trick.

§
Posted: 2020.08.17.
Edited: 2020.08.17.

Unfortunately with an exception of "https://*/channel/*", the actual video links on the "videos" page will point to youtube.com rather than invidious.

§
Posted: 2020.08.19.

Speaking of personal modifications, I figured out that changing line 61 to the below results in the type of behavior I desire on youtube.com channel pages (that is, clicking channel page links keeps you on youtube.com but clicking an actual video link on the "videos" tab of a channel on youtube.com takes you to invidious):

} else if (elem.href.match(/((www|m)\.)?youtube.com(\/channel_BAK\/[a-z0-9_-]+)/i)) {

IzzySoftAuthor
§
Posted: 2020.08.19.

Well, but that would disable it for all users (it was specifically requested to include channels). Apart from that, simply commenting that line and the next would do the same ;) The correct way would be making it an option. But I hesitate adding just another toggle, the menu is already quite long with currently 8 entries.

Post reply

Sign in to post a reply.