<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on fav.icio.us3 | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/31156</link>
    <description>Recent comments on userscript: fav.icio.us3</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by murklins</title>
      <description>&lt;p&gt;I really like this script! I tweaked it a bit to pop the favicons over into the date margin. Not everyone will be a fan of increasing the space taken up by the date area, but I like the more left-aligned flow of the page: &lt;/p&gt;

&lt;p&gt;&lt;pre&gt;(function(){

addGlobalStyle(
  'ul.bookmarks .dateGroup { left:-80px !important; padding-right: 20px; }' +
	'ul.bookmarks .isPrivate .dateGroup { left:-100px !important; padding-right: 120px; }' +
	'ul.bookmarks .post img.favicious3 { left:-20px; position: absolute; margin-right: 1ex; border: 0; }' +
	'ul.bookmarks .isPrivate img.favicious3 { left:-39px !important; position: absolute; }'
);

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

// apply the function to each element matched by the path
function forEachMatch(path, f, root) {
	var el;
	var root = (root == null) ? document : root;
	var matches = root.evaluate(
		path, root, null,
		XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
	for (var i = 0; el=matches.snapshotItem(i); i++)
		f(el);
}

// adds the link favicon before itself
function add_favicon(link) {
	  var favicon = document.createElement('img');
	  favicon.className = &quot;favicious3&quot;;
	  favicon.src = &quot;http://&quot; + link.hostname + &quot;/favicon.ico&quot;;
	  favicon.width = 16;
	  link.parentNode.insertBefore(favicon, link);
}

// apply to all recent links, popular and your bookmarks
forEachMatch(
	&quot;//li[contains(@class, 'post')]//h4/a[1]&quot;,
	add_favicon);
}())&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 21 Oct 2008 17:40:28 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10570:23609</guid>
      <author>murklins</author>
      <link>http://userscripts.org/posts/23609</link>
    </item>
    <item>
      <title>Archived Comments, replied by PERCE-NEIGE</title>
      <description>&lt;p&gt;Indispensable.&lt;/p&gt;</description>
      <pubDate>Sat, 16 Aug 2008 22:24:17 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10570:23610</guid>
      <author>PERCE-NEIGE</author>
      <link>http://userscripts.org/posts/23610</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jeton</title>
      <description>&lt;p&gt;As i said in the previous script comment: Excellent!&lt;/p&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:01:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10570:23611</guid>
      <author>Jeton</author>
      <link>http://userscripts.org/posts/23611</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</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:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10570:23608</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/23608</link>
    </item>
  </channel>
</rss>
