20
submitted 2 years ago by Paradox@lemdro.id to c/fediverse@lemmy.world

I got tired of hitting ⌘Enter and not having my post automatically go through, so I wrote a little userscript that enables exactly that.

top 6 comments
sorted by: hot top controversial new old
[-] ram@lemmy.ca 3 points 2 years ago

Oh that's awesome! Any chance you can make it change the language option to English too?

[-] Paradox@lemdro.id 1 points 2 years ago

Done! v0.0.2 supports this now.

You'll need to set your default language in your userscript manager's "Values" configuration. In ViolentMonkey, its one of the tabs in the script edit view.

Set language to "37" for English

[-] ram@lemmy.ca 2 points 2 years ago* (last edited 2 years ago)

Thank you!

Edit: works perfect!> language to "37"

[-] Paradox@lemdro.id 3 points 2 years ago* (last edited 2 years ago)

FWIW, Lemmy is supposed to have Ctrl+Enter bindings natively. But they're only bound to Ctrl, which isn't great for Mac users.

You can see the code here

~~I'll open a pull request I guess, which might render this script irrelevant.~~


Pull request open!


And it was merged earlier this morning!

When it goes live, I'll add a check to see what UX the instances are running, and if they support it, I'll only handle the language stuff out of the box

[-] dabster291@lemmy.zip 0 points 2 years ago
[-] dabster291@lemmy.zip 1 points 2 years ago

ok script works 👍

load more comments
view more: next ›
this post was submitted on 02 Jul 2023
20 points (100.0% liked)

Fediverse

28736 readers
151 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 2 years ago
MODERATORS