Irssi Url Grabbing

irssi is a really cool IRC client. I stopped using Phoebox, my own ircII/EPIC script when I discovered it because it was making my life much easier.

Despite being very usable without any additional script, there is one add-on which is particularly useful: an URL grabber.

All the URL grabbers that one can find on the irssi site have the same two problems:

  1. they cannot capture more than 1 URL per line.
  2. they do not do color highlighting of the URLs.

Detection of URLs

I have modified Jean-Yves Lefort's URL grabber for Irssi (url.pl 0.54) to allow it to detect several URLs per line.

Color highlighting

url.pl colorizes URLs, but stops colorization using ^O which resets the color to its default rather than the theme's color. I have not managed to find how to cleanly do that, so I am ^V to underline the URL since two ^Vs get the text to its previous attributes.

The result: burl.pl

I am using this slight modification called better URL grabber for Irssi (burl.pl).

I have not posted it on the irssi site because Jean-Yves Lefort is supposed to update his script and include those changes.