Opening links into LBRY from LBRY

Well, LBRY is a great option for video publishers. One of the interesting things about LBRY is that it gives the option to publish files as well, any file! Amazing!! In fact you can serve static HTML pages or Markdown files inside LBRY! How cool is that?!

So many channels are trying to make use of this feature. For example, OYE News publishes articles on LBRY. Brendon J. Brewer has many interesting tips and articles on his channel. LBRY itself is not shying away. They are also publishing a copy of their newsletter on LBRY as markdown files that neatly renders as formatted text, just like a webpage would do.

That's all perfect and wonderful, but recently when I tried to click a link on their newsletter, it didn't open within the app. It opened on my browser, despite of it being a link to a video. To be completely honest, this is expected, since the software is being developed and under beta. So I posted about it on their subreddit. They said that this is going to take a while to fix.

I didn't want to wait. I went on to creating a temporary fix (like I always do). I created some JS code to handle the link appropriately. It opens the link on the same instance of LBRY whether on app or on web. It is not battle tested yet, but let me know if it causes any trouble.

Check out the project here: https://gitlab.com/funapplic66/lbry-link-automator