Greasy Fork is available in English.

Linkify Plus Plus

Based on Linkify Plus. Turn plain text URLs into links.

< Feedback on Linkify Plus Plus

Question/comment

§
Posted: 2014-09-14
Edited: 2014-09-14

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!

Don't get the iphone 6 because femnazi
lel
https://www.youtube.com/watch?v=1Rzan2d3-cg [Embed]


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)

eightAuthor
§
Posted: 2014-09-15
Edited: 2014-09-15

How about removing all <wbr> before script execute? I think <wbr> is useless now since most modern browsers support css word-wrap or hyphen.

§
Posted: 2014-09-15
Edited: 2014-09-15

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...

eightAuthor
§
Posted: 2014-09-15
Edited: 2014-09-15

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.

§
Posted: 2014-09-15

Thanks!

Post reply

Sign in to post a reply.