Based on Linkify Plus. Turn plain text URLs into links.
< Feedback on Linkify Plus Plus
How about removing all <wbr> before script execute? I think <wbr> is useless now since most modern browsers support css word-wrap or hyphen.
Well, I don't know how much it's used (I never heard of it before). But stripping those wbr nodes has an unpleasant effect on the wbr test on http://www.quirksmode.org/oddsandends/wbr.html (using Firefox) - the line doesn't wrap, running beyond its parent and creating a horizontal scrollbar.
Mozilla's usage example is using it within long URLs, where word-wrap and hyphen probably wouldn't help?
It does fix the problem I mentioned though. I will try it that way and see...
Fixed at version 2.3.13. Currently I removed all wbr node.
While using hyphens: auto, browser will decide the break point itself. Since "TestTestTest..." is not even a word, probably hyphens won't work.
If you meet any page which contains long line and removing wbr will break the layout, just post them here.
Thanks!
4chan problem
I just tried this script, and I see 4chan inserts <wbr> tags into URLs which causes linkification of just part of them - can you fix that? html examples below. Thanks!
SheTaxi - A service for women only, taxis driven by women only.
http://time.com/money/3305393/new-taxi-service-is-like-uber-but-for-women-only/
Swedish police? They can't do anything, if they stop them, the left-wing starts to demonstrate for their "racist" methods.
Article: http://www.aftonbladet.se/nyheter/article19531124.ab (use google translate)