Greasy Fork is available in English.

YT2Invidio

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

< Spätná väzba na YT2Invidio

Otázka/komentár

§
Pridaný: 16.08.2020
Upravený: 16.08.2020

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

IzzySoftAutor
§
Pridaný: 17.08.2020

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.

§
Pridaný: 17.08.2020
Upravený: 17.08.2020

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

§
Pridaný: 19.08.2020

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)) {

IzzySoftAutor
§
Pridaný: 19.08.2020

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.

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.