hugolabe / Wike

Wikipedia Reader for the GNOME Desktop
https://hugolabe.github.io/Wike/
GNU General Public License v3.0
231 stars 32 forks source link

Browser extension to open Wikipedia links in Wike #108

Closed xplosionmind closed 1 year ago

xplosionmind commented 1 year ago

It would be great if a browser extension could be provided to automatically open Wikipedia links in Wike!

Maybe it would be nice to consider implementing this feature in already existing redirecting extensions, like LibRedirect.

Issue in LibRedirect repo

xplosionmind commented 1 year ago

Is there any specific url I can use? like with FreeTube I can do freetube://https://youtu.be/K5E8eeyAQLM

From https://codeberg.org/LibRedirect/libredirect/issues/79#issuecomment-833323

hugolabe commented 1 year ago

It could be interesting. Personally I don't have knowledge about extension development nor the time to dedicate myself to this.

hugolabe commented 1 year ago

Is there any specific url I can use? like with FreeTube I can do freetube://https://youtu.be/K5E8eeyAQLM

From https://codeberg.org/LibRedirect/libredirect/issues/79#issuecomment-833323

I don't really know what this URL refers to, but I don't know if it would be appropriate to add Wike to LibRedirect. From what I've seen its purpose is to redirect certain services to other more privacy-focused options. This is not the case with Wike, since it accesses Wikipedia in the same way that a browser does.

xplosionmind commented 1 year ago

I don't know if it would be appropriate to add Wike to LibRedirect. From what I've seen its purpose is to redirect certain services to other more privacy-focused options. This is not the case with Wike, since it accesses Wikipedia in the same way that a browser does.

Regardless of the purpose of the extension, if its developers are willing to implement this feature in the upstream, it would still be better than coding a Wike-specific extension from scratch.


I don't really know what this URL refers to

it refers to opening YouTube links in FreeTube app

hugolabe commented 1 year ago

it refers to opening YouTube links in FreeTube app

Yes, I guess so. I mean, I don't know how that URL is built. I see that it consists of a prefix (freetube://) and the URL of a Youtube video, but I don't know how that relates to the app.

What I can tell you is that in Wike it is possible to open a wikipedia URL by passing it as a parameter on startup. For example:

flatpak run com.github.hugolabe.Wike --url https://en.wikipedia.org/wiki/GNOME

hugolabe commented 1 year ago

I close this, since the possible development of an extension would in any case be external to the app.