eight04 / linkify-plus-plus

A userscript/extension which can linkify almost everything. Based on Linkify Plus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add more options

eight04 opened this issue · comments

commented

Currently (~7.3.1), Linkify Plus Plus is so greedy that you can only stop it by adding specified elements to ignore filter. Should we let users adjust more detail behavior?

Current:

Strict mode? (not implement yet)

  • The link must be surrounded by spaces.
  • If it is not surrounded by spaces, it must be surround by separate characters (e.g. brackets) that surround by spaces.
  • Force lower-case domain.
  • Limit the length between each period in the domain.

References:
https://greasyfork.org/en/forum/discussion/comment/28440
http://markdown-it.github.io/linkify-it/

commented

surrounded by spaces and fuzzyip options are added in 7.4.0.

commented

The option works great but I still wonder why the underscores are considered as separators by default? Do people often type things like _www.site/foo_ ?

commented

I don't remember. Probably some sites use it as a separator? (e.g. markdown?)

An interesting thing is that trailing underscores are not removed so _www.site/foo_ becomes _[www.site/foo_].