Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice?

<- View Parent
TerrorBite@meow.social ⁨1⁩ ⁨year⁩ ago

@Andy @BeanCounter Given how many of these start with "Lemmy" you could simplify this to:

`https://(lemmy\.(?:run|(?:fmhy\.)?ml|dbzer0\.com|world|kde\.social|ca)|lemmygrad\.ml|lemdro\.id|beehaw\.org|sh\.itjust\.works|(?:sopuli|mander)\.xyz|zerobytes\.monster)/c/(.*)`

Or just assume that anything matching `https://(lemmy\.[^/]+)/c/(.*)` is a Lemmy server, which will probably be correct.

source
Sort:hotnewtop