Greasy Fork is available in English.

Linkify Plus Plus

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

< Обсуждения Linkify Plus Plus

Вопрос/комментарий

§
Создано: 14.09.2014
Отредактировано: 14.09.2014

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)

eightАвтор
§
Создано: 15.09.2014
Отредактировано: 15.09.2014

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

§
Создано: 15.09.2014
Отредактировано: 15.09.2014

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

eightАвтор
§
Создано: 15.09.2014
Отредактировано: 15.09.2014

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.

Ответить

Войдите, чтобы ответить.