Extension:FaviconLink

Introduction
Grabs the Favicon from the site you're linking to, and puts it in front of the link

Download and Installation
Step 1: Copy-paste this code into a file FaviconLink.php and place it in extensions directory.

setHook( "ilink", "FaviconLink" ); }

function FavIconLink( $input) {
 * 1) The callback function for converting the input text to HTML output

//Look for the start of the URL $pt1 = strpos($input, "://"); if ($pt1===false) $input="http://".$input;

//Look for the end of the domain $pt1 = strpos($input, "/",9); if ($pt1===false) $pt1 = strpos($input, " ",9); if ($pt1===false) $pt1 = strlen($input); $favicon = substr($input, 0, $pt1)."/favicon.ico";

//Look for the name/description $pt2 = strpos($input, " ",$pt1); if ($pt2===false) {     $link=substr($input, 0, strlen($input)); $linkname = $link; }   else {     $link=substr($input, 0, $pt2); $linkname = substr($input, $pt2+1, strlen($input)-$pt2-1); }

$favicon = htmlspecialchars($favicon); $linkname = htmlspecialchars($linkname); $link = htmlspecialchars($link);

return " ".$linkname.""; } ?>

Step 2: Add the following line to LocalSettings.php:

include ("extensions/FaviconLink.php");

Step 3: Add links to your page using  For example.

http://www.google.co.uk Google