Facebook larger profile photos

By alto maltés Last update Feb 17, 2009 — Installed 2,647 times. Daily Installs: 5, 8, 5, 2, 8, 6, 5, 4, 3, 2, 2, 5, 7, 4, 9, 5, 9, 2, 4, 7, 5, 3, 7, 9, 6, 3, 5, 4, 2, 3, 6, 6

There are 3 previous versions of this script.

// ==UserScript==
// @name           Facebook larger profile photos
// @description    Displays larger profile photos in search results, even for users with restricted profiles.
// @namespace      tag:edward.grech.name,2007:/dev/greasemonkey
// @include        http://facebook.com/*
// @include        http://*.facebook.com/*
// @require        http://code.jquery.com/jquery-latest.js
// @author         edward@grech.name
// @date           2009-02-17
// @version        1.1
// ==/UserScript==

(function() {
	$(document).ready(function () {
		$("img[src^='http://profile.ak.facebook.com']").filter(function () {
			return $(this).attr('src').match(/^(http:\/\/profile\.ak\.facebook.com\/[^/]+\/[^/]+\/[^/]+\/)s(\d+_\d+\.jpg)$/);
		}).attr("src", function () {
			return $(this).attr('src').replace(/^(http:\/\/profile\.ak\.facebook.com\/[^/]+\/[^/]+\/[^/]+\/)s(\d+_\d+\.jpg)$/,  '$1n$2');
		}).width('auto');
	});
})();