Similar to my last submission but not specific to YouTube, this is a very basic bookmarklet that does nothing but create a submission to Lemmy of the currently open website. It does not fill out the thumbnail and hopes that Lemmy will generate a proper one on its own.
You may need to replace “lemmy.world” in the script with the domain of the Lemmy instance that you use.
Source: https://pastefy.app/kKChBKoK
How you add a bookmarklet is by creating a new web browser bookmark and pasting the JavaScript code where the URL would go. Something like this:
The way Lemmy works, you may be prompted to login again. Lemmy can do weird things like ignore your session when referrer isn’t sent. Still easier than filling out the video title yourself.
There is also the “hidden” feature that you may enter a community ID as a URL parameter (currently empty). I think the ID for a specific community varies depending on your home instance. On Lemmy.World this community here is 7133, for example. You can find out the ID when you’re on the Create Post page and have a look at the address bar:
This may be useful, should you want to submit to a specific communtiy directly.
Code is public domain.