eight04 / linkify-plus-plus

A userscript/extension which can linkify almost everything. Based on Linkify Plus.
BSD 3-Clause "New" or "Revised" License
111 stars 14 forks source link

Onion links #55

Open w4t3r1ily opened 1 year ago

w4t3r1ily commented 1 year ago

Realized LPP doesnt linkify onion links. Is that purpose or bug?

eight04 commented 1 year ago

Can you provide some examples?

w4t3r1ily commented 1 year ago

I just mean that something.onion doesn't turn into link the same way something.com does.

eight04 commented 7 months ago

The script validates a URL by its top level domain. You can see a list here: https://github.com/eight04/linkify-plus-plus-core/blob/master/lib/tlds.json Since .onion is not a valid domain, it won't be linkified.

eight04 commented 7 months ago

Do onion links have the same format as regular URLs? If so then we can try adding .onion to TLD list so they will be linkified as well.

w4t3r1ily commented 7 months ago

Yes, I tried that and it works.

w4t3r1ily commented 7 months ago

Onion links look like this: https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/