this post was submitted on 25 Jul 2023
4 points (100.0% liked)

Voyager

5365 readers
29 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! 👇

Number of sponsors badge

💙

founded 1 year ago
MODERATORS
 

I made a userscript that uses the redgifs API to get direct links to their videos and embeds them above the links voyager normally displays. It’s kinda hacky and I have had basically no experience with JavaScript before, but it works and it looks good!

So I’m really happy about it and if you wanna check it out I uploaded it: https://pastebin.com/raw/uM0kHN0x

I still hope that Voyager gets the support natively though because it really is hacky and I can’t even use it on my phone, was a lot of fun to make though

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

I suck more @ javascript but your code is pretty easy to understand. Please do a PR to the project, it’s beneficial for everyone.

Great job mate!

[–] [email protected] 0 points 1 year ago (2 children)

Thanks mate! To be honest I have even less experience with git, but wouldn‘t I need to fork the project and do the whole thing in typescript to make a PR?

[–] [email protected] 1 points 1 year ago

It's super easy. Having a goal like this is the perfect opportunity to learn how to use git, make PRs and what the difference between TypeScript and JavaScript is.

[–] [email protected] 1 points 1 year ago

Eeeeh… Can I blame this on that my brain is in vacation mode?

And yes, you need to fork the repo, but since typescript is a superset of JavaScript any JavaScript code should run in typescript… I hope that is the case anyway. Or the devs look it over and base a feature request on the code.