Facebook URL Cleaner

By Jordon Kalilich Last update Oct 7, 2010 — Installed 2,678,529 times.

Script Summary: Cleans Facebook URLs that don't actually take you to a new page.



Version: 8

Copyright: Copyright 2008-2010 Jordon Kalilich (http://www.theworldofstuff.com/)

License: GNU GPL version 3 or later; http://www.gnu.org/copyleft/gpl.html

Most of the time, when you click a link on Facebook, the content of the new page will be fetched and then displayed on the current page, with the new URL being tacked on to the old one like so:

/home.php#/profile.php?id=725831319

This speeds up the loading of pages but makes URLs look ugly and often breaks user scripts!

Facebook URL Cleaner makes links work the way you expect them to. It may make loading pages a little slower, but it will allow your user scripts to work throughout the site.

(Because people often like to zoom through photo galleries, this script is disabled when browsing through them. To enable the script on photo pages, change the variable enableInGalleries to true.)

Changelog

8 (October 7, 2010) - Fixed bug: URL was not rewritten when clicking a link to the home page.
7 (February 2, 2010) - Updated because Facebook now uses #! in URLs instead of just #. Changed the maximum update-checking interval from 5 days to 3 days.
6 (November 17, 2009) - Updated to work on http://www.facebook.com/ now that it shows the home page without redirecting to home.php.
5 (October 25, 2009) - Massive performance improvements. Upgrading is strongly recommended.
0.4 (April 22, 2009) - Disabled on photo pages by default; to enable, change the variable "enableInGalleries" to true. (Thanks to Ron Troyer for the tip.) Also changed refresh time from 2 seconds to 1 second.
0.3 (July 25, 2008) - Rolled back changes made in version 0.2; identical to 0.1. Thanks for your feedback.
0.2 (July 23, 2008) - Made the code a little less hackish. Should work the same.
0.1 (July 10, 2008) - Initial version.

This script uses usoCheckup to check for updates.