this post was submitted on 14 Nov 2023
20 points (75.0% liked)

Ask Lemmy

26903 readers
2168 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

EDIT: the extension now supports Lemmy comments!

https://lemmy.world/post/9401361

Youtube comments are historically terrible so this Reddit comment for YouTube is a great extension to never have to read YouTube comments. I no longer use Reddit though and would love to have a similar extension using Lemmy comments that also work on piped/invidious and maybe be compatible with any website/link

Do you think this could be crowdsourced as a collaboration by the Lemmy community to make this an AGPL extension? If so how do we get started? (Idk how to code)

(The extension in the picture is an extension that adds Reddit Comments under a youtube video https://addons.mozilla.org/en-US/firefox/addon/reddit-comments-for-youtube/ )

Source code: https://github.com/Xyl-AU/Reddit-Comments-for-YouTube

all 22 comments
sorted by: hot top controversial new old
[–] rah@feddit.uk 39 points 1 year ago* (last edited 1 year ago) (1 children)

If so how do we get started? (Idk how to code)

Learn to code. Otherwise, there's no "we".

Nobody is going to do programming work for you for nothing. Plenty of ideas men thanks, don't need any more.

[–] HamSwagwich@showeq.com 6 points 1 year ago (2 children)

I haven't looked in awhile... But has the API for Lemmy been implemented? If so, it should be pretty easy to port over.

[–] nix@merv.news 2 points 11 months ago

The developer added Lemmy compatibility :)

[–] nix@merv.news 1 points 1 year ago* (last edited 1 year ago) (1 children)

After some searching it looks like Lemmy api info is here https://join-lemmy.org/docs/contributors/04-api.html

Someone also shared an api login script here https://lemmy.world/post/1179663

And a php api with some documentation as well https://github.com/RikudouSage/LemmyApi

Here’s the source code for the reddit for youtube extension https://github.com/Xyl-AU/Reddit-Comments-for-YouTube

[–] HamSwagwich@showeq.com 2 points 1 year ago* (last edited 1 year ago) (1 children)

I just had a peek at the source code of the plug-in. It's basically already setup to add another service like Lemmy, as it supports Nebula and one other service with the same codebase.

I think it would almost trivial to add Lemmy. I may look into doing it if i get bored and have the time, but not sure when that would be. Have you contacted the git maintainer for that plug-in and asked him to add Lemmy support? He could do it much quicker since he's already familiar with the code and from what I saw, it would be about 30-60 minutes worth of work for someone familiar with the codebase already. I may be grossly underestimating that since I did not do an in depth dive, but from what I can tell it would be pretty simple.

What I would do is:

Add a new variable that lets you configure what Lemmy instance you want to point to
Copy the objects from reddit to a new lemmy object.
Adjust the URL and /r/ to /c/

Might have to fiddle with the User view code a bit

But other than that, everything else code wise should be a drop in replacement from what I can tell.

[–] nix@merv.news 1 points 1 year ago

The developer said they don’t have much time so they’re not sure they can do it for now but they’ll try to when they have free time and that if anyone sends a PR they’ll merge it. https://github.com/Xyl-AU/Reddit-Comments-for-YouTube/issues/2#issuecomment-1811783026

[–] Piecemakers3Dprints@lemmy.world 4 points 1 year ago (1 children)

How is this any different from using your favorite Lemmy client and simply watching whatever Piped, etc. vid within it?

Also, I second the "learn to code" sentiment. Otherwise, what exactly are you bringing to the table? Cash?

[–] nix@merv.news 1 points 1 year ago (1 children)

When you’re on YouTube/piped it automatically embeds the comments under the description. I think it’s obvious why that’s better than manually searching all of lemmy for each thread that has the same link

[–] Appoxo@lemmy.dbzer0.com 5 points 1 year ago (1 children)

Kinda ignoring the important statement/question...

Also, I second the "learn to code" sentiment. Otherwise, what exactly are you bringing to the table? Cash?

[–] nix@merv.news -5 points 1 year ago

Because I don’t have time to learn to code. I can donate some money

[–] morphballganon@lemmy.world 1 points 1 year ago (1 children)

You want to look at Lemmy but block all comments? Do I have that right?

If you were trying to block ads, just use one of the apps that does so, like Connect.

[–] nix@merv.news 3 points 1 year ago* (last edited 1 year ago) (1 children)

Updated the OP to include a description of the extension. I want to be able to browse Lemmy threads/comments on any YouTube video (ideally any website). The extension in the picture is called Reddit comments for youtube and it shows you the comments of threads that have the same link of the youtube video you’re on

[–] starbreaker@kbin.social 1 points 1 year ago (1 children)

Just block JS by default using uBlock origin. Install mpv with youtube-dl and feed YouTube URLs into mpv. No need for a separate extension to avoid the morons commenting on YouTube.

[–] nix@merv.news 2 points 1 year ago (1 children)

The extension is to embed reddit/lemmy comments on a youtube video

[–] starbreaker@kbin.social 0 points 1 year ago (1 children)

And what good does that accomplish? The person posting the video won't see them unless they use that extension as well, and why would they bother?

[–] nix@merv.news 2 points 1 year ago (1 children)

Why would I want to see lemmy comments on a video instead of youtube comments? Because the quality of lemmy comments are way better?

[–] starbreaker@kbin.social 0 points 1 year ago (1 children)

I used to read Playboy for the articles, but I don't go to YouTube for the comments.

[–] nix@merv.news 2 points 1 year ago (1 children)

I dont think you’re understanding what the post is about. Try looking at the extension. Its to replace youtube comments with Lemmy comments

[–] starbreaker@kbin.social -1 points 1 year ago* (last edited 1 year ago)

I understand that the post is about. I just don't see the point of this project. I'm content to not see any comments at all on a YouTube video. Whether they come from YouTube itself or Lemmy is irrelevant to me. You don't seem capable of understanding or accepting that, which isn't my problem.