<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussions on scripts by df_uk | Userscripts.org</title>
    <description>Recent posts on all scripts by df_uk at userscripts.org</description>
    <link>http://userscripts.org/users/59449/scripts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Not working any more?, replied by ajkain</title>
      <description>&lt;p&gt;you can install &lt;a href=&quot;http://userscripts.org/scripts/show/59795&quot;&gt;http://userscripts.org/scripts/show/59795&lt;/a&gt;
&lt;br /&gt;bye ;-)&lt;/p&gt;</description>
      <pubDate>Wed, 14 Oct 2009 13:39:59 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:179244</guid>
      <author>ajkain</author>
      <link>http://userscripts.org/posts/179244</link>
    </item>
    <item>
      <title>Not working any more?, replied by Mystique_r4</title>
      <description>&lt;p&gt;its an app made available for facebook, browse applications and search 'online now'&lt;/p&gt;</description>
      <pubDate>Mon, 12 Oct 2009 03:51:46 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:178393</guid>
      <author>Mystique_r4</author>
      <link>http://userscripts.org/posts/178393</link>
    </item>
    <item>
      <title>Not working any more?, replied by bonaparte</title>
      <description>&lt;p&gt;what is that application 'online now'?&lt;/p&gt;</description>
      <pubDate>Sun, 11 Oct 2009 23:29:38 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:178342</guid>
      <author>bonaparte</author>
      <link>http://userscripts.org/posts/178342</link>
    </item>
    <item>
      <title>Not working any more?, replied by PLam</title>
      <description>&lt;p&gt;stopped working for me too and now sitting with 15, so I decided for now to use 'online now' app which works better as it shows me who is online even if they turned chat off (not chat dependent)maybe online friends can pull some code into the app from online now to get it to work as good, just a thought...&lt;/p&gt;</description>
      <pubDate>Sat, 10 Oct 2009 18:45:42 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:178017</guid>
      <author>PLam</author>
      <link>http://userscripts.org/posts/178017</link>
    </item>
    <item>
      <title>Not working any more?, replied by Mystique_r4</title>
      <description>&lt;p&gt;The dev for this script has been MIA, and it has completely stopped working now :(&lt;/p&gt;</description>
      <pubDate>Sat, 10 Oct 2009 09:03:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:177916</guid>
      <author>Mystique_r4</author>
      <link>http://userscripts.org/posts/177916</link>
    </item>
    <item>
      <title>Not working any more?, replied by Josef Fritzl</title>
      <description>&lt;p&gt;Same problem here.The pop-up is showing the current time in 15 entries.I guess FB doesn't like to be bypassed.&lt;/p&gt;</description>
      <pubDate>Thu, 08 Oct 2009 11:13:10 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:177175</guid>
      <author>Josef Fritzl</author>
      <link>http://userscripts.org/posts/177175</link>
    </item>
    <item>
      <title>Not working any more?, replied by spook1980</title>
      <description>&lt;p&gt;Not working for me either. I wouldn't know how to fix it, but &lt;code&gt;url:&quot;http://iphone.facebook.com/friends.php?v=online&quot;&lt;/code&gt; in the facebookOnline function.
&lt;br /&gt;Going to that page reports no friends, despite fb saying otherwise...&lt;/p&gt;

&lt;p&gt;Edit: Now that page is showing a list of 15 random friends that aren't online, and the popup is displaying 15 entries with the current time and no names&lt;/p&gt;</description>
      <pubDate>Wed, 07 Oct 2009 22:57:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:176983</guid>
      <author>spook1980</author>
      <link>http://userscripts.org/posts/176983</link>
    </item>
    <item>
      <title>Not working any more?, replied by bdrain</title>
      <description>&lt;p&gt;yepp, doesn't work anymore. who knows how to change the code, if necessary?&lt;/p&gt;</description>
      <pubDate>Wed, 07 Oct 2009 16:44:46 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:176855</guid>
      <author>bdrain</author>
      <link>http://userscripts.org/posts/176855</link>
    </item>
    <item>
      <title>Not working any more?, replied by bonaparte</title>
      <description>&lt;p&gt;Yes, it doesn't work anymore. Maybe facebook changed something.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Oct 2009 12:02:10 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:176804</guid>
      <author>bonaparte</author>
      <link>http://userscripts.org/posts/176804</link>
    </item>
    <item>
      <title>Not working any more?, replied by Eusebius</title>
      <description>&lt;p&gt;Great script but hasn't worked with my computer since yesterday, show '0' in online friends all the time. Does others have the same problem too?&lt;/p&gt;</description>
      <pubDate>Wed, 07 Oct 2009 06:58:40 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36742:176757</guid>
      <author>Eusebius</author>
      <link>http://userscripts.org/posts/176757</link>
    </item>
    <item>
      <title>@names tag bug, replied by Mystique_r4</title>
      <description>&lt;p&gt;The new status friend tag system seems to have messed up this script a little, is there any chance of a fix to this great script.&lt;/p&gt;

&lt;p&gt;thanks.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Sep 2009 02:20:48 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36235:174615</guid>
      <author>Mystique_r4</author>
      <link>http://userscripts.org/posts/174615</link>
    </item>
    <item>
      <title>How many names this script shows?, replied by bonaparte</title>
      <description>&lt;p&gt;great job man!! now it works perfectly!&lt;/p&gt;</description>
      <pubDate>Fri, 18 Sep 2009 12:59:08 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:33303:170308</guid>
      <author>bonaparte</author>
      <link>http://userscripts.org/posts/170308</link>
    </item>
    <item>
      <title>How many names this script shows?, replied by ajkain</title>
      <description>&lt;p&gt;I modified the script:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
// ==UserScript==
// @name           Facebook Online Logger
// @namespace      FBOnline
// @include        http://*.facebook.com*
// @exclude        http://*.facebook.com/login.php*
// @exclude        http://en-gb.facebook.com/*
// @description     Log out of Facebook Chat and still see who is online.
// @author     http://userscripts.org/users/59449
// @version     3.3
// ==/UserScript==

// Modified version of
// http://userscripts.org/scripts/show/19450
// http://userscripts.org/scripts/show/23499

// Ad remover
window.addEventListener(&quot;load&quot;, function(e) {
  var elements = xpath(&quot;//div[contains(@class, 'ad_capsule')] | //div[contains(@class, 'social_ad')] | //div[@id='announce'] | //div[contains(@id, 'sponsor')] | //div[contains(@id, 'ssponsor')]&quot;);
  if (elements.snapshotLength &amp;gt; 0) {
    for (var i = 0; i &amp;lt; elements.snapshotLength; i++) {
      var thisElement = elements.snapshotItem(i);
      thisElement.parentNode.removeChild(thisElement);
    }
  }
}, false);
function xpath (query) {
  return document.evaluate(query, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}

var onlineResult = new Array();   // AJKAIN
var onlineFromPage = 0;   // AJKAIN
init();
function init() {
  if (!document.body) { window.setTimeout(function(){init();}, 300); }
  if (window != window.top) return;  // Don't run in a frame
  if ($('loginform')) return; // Don't run if not logged in
  MenuCommands();
  if (GM_getValue('ShowPopUp', true)) { createChatMenu(); }
  facebookOnline();
}

function facebookOnline() {
  /*GM_xmlhttpRequest({
    method:&quot;GET&quot;,
    url:&quot;http://iphone.facebook.com/friends.php?v=online&quot;,
    headers:{&quot;User-Agent&quot;:&quot;Mozilla/5.0&quot;,&quot;Accept&quot;:&quot;text/xml&quot;},
    onload:function(response) {
      if((response.readyState == 4) &amp;amp;&amp;amp; (response.status == 200))
        parseResults(response.responseText);
    }
  });   AJKAIN*/
  facebookOnline_page();   //AJKAIN

  window.setTimeout(facebookOnline, 60000); // Refresh every 60 seconds
}

function facebookOnline_page() {   //AJKAIN
  GM_xmlhttpRequest({
    method:&quot;GET&quot;,
    url:&quot;http://iphone.facebook.com/friends.php?v=online&amp;amp;s=&quot;+onlineFromPage,
    headers:{&quot;User-Agent&quot;:&quot;Mozilla/5.0&quot;,&quot;Accept&quot;:&quot;text/xml&quot;},
    onload:function(response) {
      if((response.readyState == 4) &amp;amp;&amp;amp; (response.status == 200)) {
        var rt = response.responseText;
        if (rt.length != 0) {
          onlineResult = onlineResult.concat(process(rt));
          onlineFromPage+=16;
          facebookOnline_page();
        } else {
          parseResults(onlineResult);
        }
      }
    }
  });
}

function parseResults(temp) {
  //var rt = process(temp);   AJKAIN
  var rt = temp;   //AJKAIN

  var uLINK = &quot;&quot;;
  var popText = &quot;&quot;;
  
  var today = new Date();
  var h = today.getHours();
  if (h&amp;lt;10) h = &quot;0&quot;+h;  
  var m = today.getMinutes();
  if (m&amp;lt;10) m = &quot;0&quot;+m;
  var dd = today.getDate();
  var mm = today.getMonth()+1;
  var yy = today.getFullYear();
  var t = dd+&quot;/&quot;+mm+&quot;/&quot;+yy+&quot; &quot;+h+&quot;:&quot;+m;

  var lastchecked = GM_getValue(&quot;lastupdated&quot;, t);
  
  for (var i=0; i&amp;lt;rt.length;i+=1) {
    var uID = getUID(rt[i]);
    var uNAME = getUName(rt[i]);
  
    var a = GM_getValue(uID,uNAME+&quot;,&quot;+t+&quot;,&quot;+t);
    var b = a.split(&quot;,&quot;);
    var c;
  
    if (lastchecked == b[2]) {
      c = b[1].split(&quot; &quot;);
      GM_setValue(uID,uNAME+&quot;,&quot;+b[1]+&quot;,&quot;+t);  //was online
    }
    else {
      c = t.split(&quot; &quot;);
      GM_setValue(uID,uNAME+&quot;,&quot;+t+&quot;,&quot;+t);  //now online
    }
    
    if (GM_getValue('ShowTime', true)) {
      uLINK = c[1] + ' &amp;lt;a href=&quot;http://www.facebook.com/profile.php?id='+uID+'&quot;&amp;gt;'+uNAME+'&amp;lt;/a&amp;gt;'; 
    }
    else {
      uLINK = '&amp;lt;a href=&quot;http://www.facebook.com/profile.php?id='+uID+'&quot;&amp;gt;'+uNAME+'&amp;lt;/a&amp;gt;';
    }
    
    popText += '&amp;lt;div id=&quot;fbmLINK&quot;&amp;gt;'+uLINK+'&amp;lt;/div&amp;gt;'; // For popup menu - add hh:mm here
  }

  if (GM_getValue('ShowPopUp', true)) { updatePopUp(popText,rt.length); } // Popup menu in place of chat
  
  GM_setValue(&quot;lastupdated&quot;, t);
}

// Adds the online friends list on top of the Facebook Chat bar
function createChatMenu (){
  var onshow = GM_getValue('ShowHide', false);
  if (onshow != true &amp;amp;&amp;amp; onshow != false) { 
    onshow = false;
    GM_setValue('ShowHide', onshow); 
  }

  GM_addStyle(
    '#fbmDIV { bottom:-1px !important; right:75px !important; min-width:170px; border:1px solid #b5b5b5; background:#e5e5e5; position:fixed !important; z-index:99999 !important; padding:0px; }'+
    '#fbmHEAD { color:black; font-size:11px; padding:5px 6px 5px 6px; height:14px; min-width: 112px; padding-left: 21px; background-image: url(http://static.ak.fbcdn.net/images/presence/buddy_list.gif); background-repeat: no-repeat; background-position: 4px 6px; white-space: nowrap;}'+
    '#fbmHEAD:hover { cursor:pointer; }'+
    '#fbmEXIT { color:#6D84B4; float:right; font-weight:bold; padding:5px 6px 5px 6px; vertical-align:top; }'+
    '#fbmEXIT:hover { cursor:pointer; color:#3B5998; }'+
    '#fbmBODY { background-color:white; border-bottom:1px solid #b5b5b5; }'+
    '#fbmLINK { padding:4px 8px 4px 8px; }'+
    '#fbmNUM { font-weight:bold; }'
  );
  if (!onshow) { GM_addStyle('#fbmBODY {display: none;}'); }

  // Create new friends menu
  var div = document.createElement('div');
  div.id = 'fbmDIV';
  div.innerHTML = '&amp;lt;div id=&quot;fbmBODY&quot;&amp;gt;&amp;lt;div id=&quot;fbmLINK&quot;&amp;gt;Loading...&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div id=&quot;fbmEXIT&quot; title=&quot;Close&quot;&amp;gt;x&amp;lt;/div&amp;gt;&amp;lt;div id=&quot;fbmHEAD&quot;&amp;gt;Online Friends (&amp;lt;span id=&quot;fbmNUM&quot;&amp;gt;0&amp;lt;/span&amp;gt;)&amp;lt;/div&amp;gt;';
  document.body.appendChild(div);

  // Listen for clicks on the x and make the list disappear and stop updating
  $('fbmEXIT').addEventListener('click', function() { 
    $('fbmDIV').style.display='none';
  }, false);
  // Listen for clicks on the header and hide/show the list of friends
  $('fbmHEAD').addEventListener('click', function() {
    if (onshow) { $('fbmBODY').style.display='none'; onshow = false; }
    else { $('fbmBODY').style.display='block'; onshow = true; }
    GM_setValue('ShowHide',onshow);
  }, false);
}

// Updates the online friend list on top of Facebook Chat
function updatePopUp (temp,num) {
  if (temp == &quot;&quot;) { temp = '&amp;lt;div id=&quot;fbmLINK&quot;&amp;gt;No online friends.&amp;lt;/div&amp;gt;'; }
  if ($('fbmNUM')) { $('fbmNUM').innerHTML = num; }
  //if ($('fbmBODY')) { $('fbmBODY').innerHTML = temp; }   AJKAIN
  if ($('fbmBODY')) { GM_addStyle('#fbmBODY {max-height:500px; overflow:auto;}'); $('fbmBODY').innerHTML = temp; }   //AJKAIN
}

function $(id) { return document.getElementById(id); }
function getUID(rawt) { return rawt.substring(0, rawt.indexOf('&quot;')); }
function getUName(rawt) { return rawt.substring(rawt.indexOf('.jpg&quot;&amp;gt;&amp;lt;/div&amp;gt;')+12, rawt.length); }

function process(response) {
  var result = new Array();
  var res = response;
  var i = 0;
  var indexd, indexu;
  
  while(res.indexOf('profile.php?id=') &amp;gt; 0) {
    res = res.substring(res.indexOf('profile.php?id=')+15, res.length);
    indexd = res.indexOf('&amp;lt;div class=&quot;listCaption2');
    indexu = res.indexOf('&amp;lt;/u&amp;gt;');
    if ((indexd == -1) || (indexu &amp;lt; indexd)) { result[i] = res.substring(0, indexu); }
    else { result[i] = res.substring(0, indexd); }
    i++;
  }
  
  return result;
}

// User Script Commands in Greasemonkey
function MenuCommands (){
  GM_registerMenuCommand('FBOnline: Show/Hide PopUp Friends', function(){
    if ((GM_getValue('ShowPopUp', true)) &amp;amp;&amp;amp; (confirm('Hide online friends in place of Facebook Chat?'))) {
      GM_setValue('ShowPopUp', false);
    }
    else if ((!GM_getValue('ShowPopUp', true)) &amp;amp;&amp;amp; (confirm('Show online friends in place of Facebook Chat?'))) {
      GM_setValue('ShowPopUp', true);
    }
  });
  GM_registerMenuCommand('FBOnline: Show/Hide Time', function(){
    if ((GM_getValue('ShowTime', true)) &amp;amp;&amp;amp; (confirm('Hide Time next to friend?'))) {
      GM_setValue('ShowTime', false);
    }
    else if ((!GM_getValue('ShowTime', true)) &amp;amp;&amp;amp; (confirm('Show Time next to friend?'))) {
      GM_setValue('ShowTime', true);
    }
  });
}
&lt;/pre&gt;;&lt;/p&gt;</description>
      <pubDate>Sun, 30 Aug 2009 15:07:44 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:33303:164280</guid>
      <author>ajkain</author>
      <link>http://userscripts.org/posts/164280</link>
    </item>
    <item>
      <title>How many names this script shows?, replied by bonaparte</title>
      <description>&lt;p&gt;Can someone edit this script to show more then 16 people?&lt;/p&gt;</description>
      <pubDate>Sat, 22 Aug 2009 13:37:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:33303:161435</guid>
      <author>bonaparte</author>
      <link>http://userscripts.org/posts/161435</link>
    </item>
    <item>
      <title>How many names this script shows?, replied by bonaparte</title>
      <description>&lt;p&gt;I think max number of people is 16? For me is hardly to believe that 16 is maximum of online people every time,never 17 or 18!?! Is there someone who has more names shown by this script?&lt;/p&gt;</description>
      <pubDate>Mon, 17 Aug 2009 20:14:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:33303:159449</guid>
      <author>bonaparte</author>
      <link>http://userscripts.org/posts/159449</link>
    </item>
    <item>
      <title>Not working correctly anymore?, replied by usedscript</title>
      <description>&lt;p&gt;I've noticed the script doesn't log some friends last time online anymore in the about:config section. Some it misses completly and others partialy eg. it notes the time they went online and it's also the time they went off, but they are still there and we can chat. Correspondingly, PopUp Friends menu that the script creates is missing those friends. &lt;/p&gt;

&lt;p&gt;Online Friends application (on Facebook.com) displays my online and idle friends correctly, but this script doesn't anymore. I cleared the Firefox cache entirely and it didn't help at all. Any solution?&lt;/p&gt;

&lt;p&gt;P.S. Every time it's the same friends that are &quot;malfunctioning&quot;, so it's not random.&lt;/p&gt;</description>
      <pubDate>Mon, 25 May 2009 14:48:37 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27588:125576</guid>
      <author>usedscript</author>
      <link>http://userscripts.org/posts/125576</link>
    </item>
    <item>
      <title>icon missing, replied by Buggy</title>
      <description>&lt;p&gt;Is it just me or has the little red/offline and green/online indicator icon gone missing from the status bar, it used to be there and I was easily able to identify if I was in online or offline mode, this script needs to be updated do to the new chat changes made to facebook.&lt;/p&gt;</description>
      <pubDate>Sat, 16 May 2009 17:41:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27009:122301</guid>
      <author>Buggy</author>
      <link>http://userscripts.org/posts/122301</link>
    </item>
    <item>
      <title>New look on friends page, replied by dogusdogus</title>
      <description>&lt;p&gt;script dont work now :(&lt;/p&gt;

&lt;p&gt;spain&lt;/p&gt;</description>
      <pubDate>Fri, 01 May 2009 17:07:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:25971:116751</guid>
      <author>dogusdogus</author>
      <link>http://userscripts.org/posts/116751</link>
    </item>
    <item>
      <title>Am I stupid or what!?, replied by anonyy</title>
      <description>&lt;p&gt;i must be stupid as well i put in teh about config thing and tried searching for Facebook Online Logger but i cant find it??&lt;/p&gt;</description>
      <pubDate>Sat, 06 Dec 2008 17:51:17 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18223:81732</guid>
      <author>anonyy</author>
      <link>http://userscripts.org/posts/81732</link>
    </item>
    <item>
      <title>Am I stupid or what!?, replied by eXa</title>
      <description>&lt;p&gt;Well type about:config in your adress bar press the I swear etc... and the type in the Filter: facebook and u will see all the facebook logs&lt;/p&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:38:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18223:81555</guid>
      <author>eXa</author>
      <link>http://userscripts.org/posts/81555</link>
    </item>
    <item>
      <title>Am I stupid or what!?, replied by Jelena M</title>
      <description>&lt;p&gt;So I have instal this script... and now what? Sorry :(&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2008 18:00:34 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18223:79863</guid>
      <author>Jelena M</author>
      <link>http://userscripts.org/posts/79863</link>
    </item>
    <item>
      <title>Archived Comments, replied by Thanasis</title>
      <description>&lt;p&gt;You could add a &quot;Recently Added&quot; option, which was available at the old facebook... ;)
&lt;br /&gt;This option can be accessed using &quot;view=added&quot;...&lt;/p&gt;</description>
      <pubDate>Thu, 11 Sep 2008 10:23:07 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17791:78218</guid>
      <author>Thanasis</author>
      <link>http://userscripts.org/posts/78218</link>
    </item>
    <item>
      <title>Archived Comments, replied by df_uk</title>
      <description>&lt;p&gt;Facebook changed the way links are handled on the tabs in New Facebook so currently does not highlight.  Any fixes let us know.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Aug 2008 21:40:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17791:78219</guid>
      <author>df_uk</author>
      <link>http://userscripts.org/posts/78219</link>
    </item>
    <item>
      <title>Archived Comments, replied by df_uk</title>
      <description>&lt;p&gt;I am only working with what's available within Facebook - the Grid view was hidden, and I created a tab to make it directly available.  A Not Common tab is beyond the scope of this script.&lt;/p&gt;</description>
      <pubDate>Wed, 06 Aug 2008 12:33:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17791:78220</guid>
      <author>df_uk</author>
      <link>http://userscripts.org/posts/78220</link>
    </item>
    <item>
      <title>Archived Comments, replied by givingback1</title>
      <description>&lt;p&gt;Can you ma a Not common friend tab?&lt;/p&gt;

&lt;p&gt;Some times I want to see the friends that are not commom instead of all friends and mutual friends.&lt;/p&gt;

&lt;p&gt;Its logical if I want to increase my network&lt;/p&gt;</description>
      <pubDate>Tue, 05 Aug 2008 15:07:35 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17791:78221</guid>
      <author>givingback1</author>
      <link>http://userscripts.org/posts/78221</link>
    </item>
  </channel>
</rss>
