Skip Navigation

Posts
54
Comments
96
Joined
2 yr. ago

  • I've been working on the !instance_assistant@lemmy.ca extension :)

    RES initially helped me get into Reddit, so hopefully this helps people get into Lemmy as well

  • For smaller extensions, you can start by looking at the manifest.json as this file is the entry point. You can see which part of the code needs access to 'everything' and go from there.

    https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json

    For example, with Instance Assistant for Lemmy, you need to give access to all sites because it needs to run on any Lemmy site and that's not something you can hardcode in.

  • This doesn't answer the Linux part, but on FDroid there's something similar as "Retro Stack"

  • Thank you for sharing! This is my first project like this so I've got lots to learn. I'm going to try and contribute to a few other ones so try and learn what it's like

  • This is very helpful, thank you! I'll look into setting up more of that sometime

  • Good to know, I'll explore some more

    Thank you!

  • Sounds good! This was my first dive into browser extensions as well. It's not too bad once you go over the basics. If you give it a try, see the contributing page on the repo's wiki for some resources on how to get started with browser extensions.

    A super short summary is:

    • manifest.json is the entry point, it links to HTML files (which represent things like the popup, sidebar) and scripts (which do most of the work)
    • the background script runs all the time (see background.js), and the content scripts run on specific pages (ex. There's one for Lemmy community pages, one for error pages)

    If you DO give it a try, we were part way through migrating features from the LemmyTools userscript and that might be a good place to start. I wasn't familiar with userscripts so I didn't make much progress, and can't get back to it for a little while. The issues page of the repo should have LemmyTools related features tagged. If any details are missing, let me know and I'll add them in :)

  • We actually have an extension for this, it's one of the more popular extensions for Lemmy&Kbin, going by the counts on chrome/firefox stores:

    !instance_assistant@lemmy.ca

    It was originally made to solve this problem, but we've been adding other features as well. Right now you can redirect communities and posts, and redirect links by right clicking on them.

    Let me know if it works, and also where it doesn't so that we can improve it :)

  • We're actually working on a browser extension for this! It currently supports both communities and posts

    !Instance_Assistant@lemmy.ca

    We ran into the same issue, federated sites are hard to work with. Right now, the extension has it so that a user needs to right click on a link to be redirected. That way the user can choose which links get redirected, and there's no chance of accidentally redirecting the wrong thing.

    There are other solutions (using the API for example), but they seemed to slow the browser down too much. Another proposed feature that hasn't been implemented yet was to redirect when holding down a key (when holding down "r", try to redirect the link).

    Feel free to take a look, try it, and you can totally contribute code. It's all open source and we've tried to keep the code simple and easy to verify/contribute.

  • This is a bit of a tangent, but I'm curious who runs this website: http://www.edwaittimes.ca/WaitTimes.aspx

    It's always been slow for me, and it doesn't feel that accessible (text is hard to read etc.). A quick upgrade and refresh might make it a lot smoother for people. If we wanted to go more fancy with it, it could have a dashboard page just for hospitals to display in their ERs, like they do (did?) at MSJ.

    I know BC has a Github with open source projects, and this seems like a relatively simple upgrade if we knew what the API / data source was. I'm noticing some AJAX & jquery. Could something like Vue/Nuxt work as a replacement? The pages could be rendered server side, and then every 5 minutes it could be refreshed with the new data.

  • I don't have as much experience working with the stack, but from what I've read it seems like Rust is a pretty solid choice for the backend. It also seems like a lot of the upgrades people want are for the front end, so that's what would benefit the most from being simpler.

    Typescript makes sense, and a handful of frameworks have typescript support. Would anyone know more about the benefits of using Inferno over something like Vue/Nuxt or plain React?

  • That's really great to hear, thank you for the comment :)

    Image size manipulation is something that's on the list, and it's one of the features that myself and the dev for LemmyTools was working to bring over from the userscript

    Here is the specific issue, although I'm not sure when I'll be getting to it: https://github.com/cynber/lemmy-instance-assistant/issues/28

    In the meantime, you could also try out the userscript itself and see if it does the job, and also what could be improved when we do bring the feature over: https://github.com/howdy-tsc/LemmyTools

  • Good to know, could you share what website you were trying to post from?

    I think one thing I should implement is a little toast message that explains what went wrong (ex. No title contents found)

  • Technology @lemmy.ml

    Instance Assistant v1.2.4 is here!

    Technology @lemmy.world

    Instance Assistant v1.2.4 is here!

    Firefox @lemmy.ml

    Instance Assistant v1.2.4 is here!

    You Should Know @lemmy.world

    YSK: Instance Assistant v1.2.4 is here!

    Technology @beehaw.org

    Instance Assistant v1.2.4 is here!

    sh.itjust.works Main Community @sh.itjust.works

    Instance Assistant v1.2.4 is here!

    Lemmy.ca's Main Community @lemmy.ca

    Instance Assistant v1.2.4 is here!

    Fediverse @lemmy.world

    Instance Assistant v1.2.4 is here!

    Open Source @lemmy.ml

    Instance Assistant v1.2.4 is here!

    Free and Open Source Software @beehaw.org

    Instance Assistant v1.2.4 is here!

    Lemmy Plugins and Userscripts @sh.itjust.works

    Instance Assistant v1.2.4 is here!

    Lemmy Plugins and Userscripts @sh.itjust.works

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    Free and Open Source Software @beehaw.org

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    Technology @beehaw.org

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    sh.itjust.works Main Community @sh.itjust.works

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    Fediverse @lemmy.world

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    Technology @lemmy.world

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    You Should Know @lemmy.world

    YSK: Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    Technology @lemmy.ml

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features

    Lemmy.ca's Main Community @lemmy.ca

    Instance Assistant v1.2.3 is now available on Chrome & Firefox + New Features