gentry
kiwifarms.net
- Joined
- Jun 21, 2021
Youtube embeds often end up displaying Google's "fuck off, proxy user" page for tor users, could we add invidio.us links below them? invidio.us itself no longer mirrors Youtube videos but at the moment acts as a front-end for other invidious instances, and opening invidio.us/{video-id} provides you with links directly to the video.
If js is preferred this works with what I assume is the forum's generic method of adding Youtube embeds:
It just adds an invidio.us link using the text "invidio.us", doesn't look too out of place.
Edit: If this isn't implemented and other people have the same problem, you can add this as a bookmarklet:
If js is preferred this works with what I assume is the forum's generic method of adding Youtube embeds:
JavaScript:
$( ".bbMediaWrapper" )
.has( ".bbMediaWrapper-inner iframe[src^='https://www.youtube.com/embed/']" )
.each(function(i,e) {
var video_id = /.*\/(.*)\?/.exec($(e).find("iframe").attr("src"))[1];
$(e).append($("<a href='https://invidio.us/" + video_id + "' target='_blank' />invidio.us</a>"));
});
Edit: If this isn't implemented and other people have the same problem, you can add this as a bookmarklet:
Code:
javascript:void%20function(){$(%22.bbMediaWrapper%22).has(%22.bbMediaWrapper-inner%20iframe[src^='https://www.youtube.com/embed/']%22).each(function(e,a){var%20i=/.*\/(.*)\%3F/.exec($(a).find(%22iframe%22).attr(%22src%22))[1];$(a).append($(%22%3Ca%20href='https://invidio.us/%22+i+%22'%20target='_blank'%20/%3Einvidio.us%3C/a%3E%22))})}();
Last edited: