<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Facebook URL Cleaner | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/29910</link>
    <description>Recent comments on userscript: Facebook URL Cleaner</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Photo URL cleaning, replied by Ronald Troyer @ Wed, 15 Apr 2009 12:54:09 +0000</title>
      <description>&lt;p&gt;Hey, I worked the revision into the code. Basically if you are browsing around the photos section it will do nothing if there are two 'photo.php's in the title. Here is the code. &lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
// ==UserScript==
// @name          Facebook | URL Cleaner
// @namespace     http://www.theworldofstuff.com/greasemonkey/
// @description   Cleans Facebook URLs that don't actually take you to a new page.
// @include       http://*.facebook.com/*
// ==/UserScript==

window.gm_cleanURL = function() {
   // if the url is ugly
   var reg = /^(https?:\/\/([-a-z0-9]+\.)*facebook\.com)\/[^#]+#(\/.+)/i;
   
   // Photo exception added 4/15/09 by Ron Troyer
   // if the url is *photo.php*photo.php* 
   var photo = /.*photo\.php.*photo\.php.*/i;
   
	//change it if url is ugly and not photo page
   if ((reg.test(window.location.href)) &amp;amp;&amp;amp; (!(photo.test(window.location.href)))) {
      var foo = window.location.href.replace(reg,'$1$3');
      window.location.replace(foo);
   }
   // if not, wait till it is
   else {
      window.setTimeout(gm_cleanURL, 2000);
   }
}
gm_cleanURL();
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 15 Apr 2009 12:54:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24527:111169</guid>
      <author>Ronald Troyer</author>
      <link>http://userscripts.org/topics/24527</link>
    </item>
    <item>
      <title>Photo URL cleaning, replied by Jordon Kalilich @ Fri, 10 Apr 2009 02:57:37 +0000</title>
      <description>&lt;p&gt;That's a good idea. The photo thing has always annoyed me too; my current &quot;fix&quot; is to go through photos very slowly.&lt;/p&gt;</description>
      <pubDate>Fri, 10 Apr 2009 02:57:37 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24527:109737</guid>
      <author>Jordon Kalilich</author>
      <link>http://userscripts.org/topics/24527</link>
    </item>
    <item>
      <title>Photo URL cleaning, replied by Ronald Troyer @ Wed, 08 Apr 2009 19:55:18 +0000</title>
      <description>&lt;p&gt;First off, this is a GREAT script. Very helpful.&lt;/p&gt;

&lt;p&gt;But I have one major problem. When browsing images, if you click through too fast, the page will continue to jump back to previous items as the browser does catchup with the JavaScript. This cannot be resolved with a simple exclude filter, because if &lt;code&gt;http://www.facebook.com/photo.php*&lt;/code&gt; is used if you go home or anywhere else from the photos page it will not clean the URL. If you use &lt;code&gt;http://www.facebook.com/photo.php*photo.php&lt;/code&gt;, logically, at first glance it should work. But the problem is that the JavaScript is executed before the bad URL. So it's already running and just waiting for a bad URL once the photos are loaded. So that acts like you have never wrote that exclude. Is it possible to edit this script to not try to correct the photo URLs if they have &lt;code&gt;photo.php*photo.php&lt;/code&gt; in them?&lt;/p&gt;</description>
      <pubDate>Wed, 08 Apr 2009 19:55:18 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24527:109372</guid>
      <author>Ronald Troyer</author>
      <link>http://userscripts.org/topics/24527</link>
    </item>
    <item>
      <title>Archived Comments, replied by Chris4 @ Thu, 11 Sep 2008 01:13:30 +0000</title>
      <description>&lt;p&gt;Hope this works. Really getting annoying.&lt;/p&gt;</description>
      <pubDate>Thu, 11 Sep 2008 01:13:30 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10967:25461</guid>
      <author>Chris4</author>
      <link>http://userscripts.org/topics/10967</link>
    </item>
    <item>
      <title>Archived Comments, replied by brossow @ Fri, 25 Jul 2008 13:10:31 +0000</title>
      <description>&lt;p&gt;Agreed.  Let's have the old version back, please. I've gotta disable this one until it's fixed. :-(&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jul 2008 13:10:31 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10967:25462</guid>
      <author>brossow</author>
      <link>http://userscripts.org/topics/10967</link>
    </item>
    <item>
      <title>Archived Comments, replied by nameht @ Fri, 25 Jul 2008 01:13:44 +0000</title>
      <description>&lt;p&gt;new version does not work as efficient as the first release... any way to get v.01 again?&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jul 2008 01:13:44 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10967:25463</guid>
      <author>nameht</author>
      <link>http://userscripts.org/topics/10967</link>
    </item>
    <item>
      <title>Archived Comments, replied by df_uk @ Mon, 14 Jul 2008 16:21:24 +0000</title>
      <description>&lt;p&gt;These new breadcrumb URLs of Facebook were stopping a lot of scripts working for me - this fixes everything, Thanks&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jul 2008 16:21:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10967:25464</guid>
      <author>df_uk</author>
      <link>http://userscripts.org/topics/10967</link>
    </item>
    <item>
      <title>Archived Comments, replied by Neewb @ Fri, 11 Jul 2008 03:47:09 +0000</title>
      <description>&lt;p&gt;Thanks.&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 03:47:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10967:25465</guid>
      <author>Neewb</author>
      <link>http://userscripts.org/topics/10967</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews @ Wed, 17 Nov 2004 01:06:06 +0000</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:06:06 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10967:25460</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/topics/10967</link>
    </item>
  </channel>
</rss>
