<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on userstyles - add useful content | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/14117</link>
    <description>Recent comments on userscript: userstyles - add useful content</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Placing the new links after the original ones, replied by ptmb</title>
      <description>&lt;p&gt;Actually, for what I read of the style, I think the problem is in
&lt;br /&gt;&lt;pre&gt;#navigation &amp;gt; li
  {
    float: right !important;
  }&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;that inverts the order of the list (from left to right to right to left).&lt;/p&gt;

&lt;p&gt;I think the solution for who doesn't want to invert the links order but want to keep the new &quot;Blog&quot; and &quot;Forum&quot; links to the right, is to provide some switch in the script, something like:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;// Change the links order so they are placed on the left or on the right
var LinksOnRight = true;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;and use different code according to it being &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;</description>
      <pubDate>Fri, 03 Apr 2009 18:37:56 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22555:107991</guid>
      <author>ptmb</author>
      <link>http://userscripts.org/posts/107991</link>
    </item>
    <item>
      <title>Placing the new links after the original ones, replied by whatrevolution</title>
      <description>&lt;p&gt;Good thought; you were right that my CSS in &lt;a href=&quot;http://userstyles.org/styles/3866&quot;&gt;http://userstyles.org/styles/3866&lt;/a&gt; is modifying the list order.  Probably the absolute positioning.&lt;/p&gt;</description>
      <pubDate>Fri, 03 Apr 2009 03:15:41 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22555:107812</guid>
      <author>whatrevolution</author>
      <link>http://userscripts.org/posts/107812</link>
    </item>
    <item>
      <title>Placing the new links after the original ones, replied by ptmb</title>
      <description>&lt;p&gt;Now that is strange... In here, it is exactly the opposite, and in theory the code you use should make it as is happening to me...&lt;/p&gt;

&lt;p&gt;When I enter &lt;code&gt;var ul = document.getElementById(&quot;navigation&quot;)&lt;/code&gt; on firebug, followed by &lt;code&gt;ul.getElementsByTagName(&quot;li&quot;)[0]&lt;/code&gt;, it returns the first &lt;code&gt;li&lt;/code&gt; element, so, inserting the new childs before the first &lt;code&gt;li&lt;/code&gt; element, should cause the new childs to go to the left end of the list, as it is happening to me.&lt;/p&gt;

&lt;p&gt;Now, using &lt;code&gt;appendChild()&lt;/code&gt; should add the items to the end of the list. As I am doing in my modified code.&lt;/p&gt;

&lt;p&gt;Have you checked if you have any special CSS in stylish that is modifying the position taken by the &lt;code&gt;li&lt;/code&gt; elements? I think there is some sort of Mozilla special property that does that, &lt;a href=&quot;https://developer.mozilla.org/en/CSS/-moz-box-ordinal-group&quot;&gt;this one&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Weird :/&lt;/p&gt;</description>
      <pubDate>Wed, 01 Apr 2009 16:07:49 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22555:107390</guid>
      <author>ptmb</author>
      <link>http://userscripts.org/posts/107390</link>
    </item>
    <item>
      <title>Placing the new links after the original ones, replied by whatrevolution</title>
      <description>&lt;p&gt;However strange this may seem, when I use:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;ul.appendChild(forumlink_li);
&lt;br /&gt;ul.appendChild(bloglink_li);
&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;My links appear to the left of the list (before the original links).&lt;/p&gt;

&lt;p&gt;When I use:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;ul.insertBefore(forumlink_li, ul.getElementsByTagName(&quot;li&quot;)[0]);
&lt;br /&gt;ul.insertBefore(bloglink_li, ul.getElementsByTagName(&quot;li&quot;)[0]);
&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;The two new links appear to the right (the end) of the original list.&lt;/p&gt;

&lt;p&gt;This is why I chose the insertBefore() function, originally.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Apr 2009 12:41:18 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22555:107343</guid>
      <author>whatrevolution</author>
      <link>http://userscripts.org/posts/107343</link>
    </item>
    <item>
      <title>Placing the new links after the original ones, replied by ptmb</title>
      <description>&lt;p&gt;Hi, I really like this script, but I have a tiny question to do:&lt;/p&gt;

&lt;p&gt;Could you make the new forum and blog links go after the original navigation links? Maybe something like an option to choose between both?
&lt;br /&gt;It would be as easy as to replace:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var ul = document.getElementById(&quot;navigation&quot;), li =
document.createElement(&quot;li&quot;);
ul.insertBefore(forumlink_li, ul.getElementsByTagName(&quot;li&quot;)[0]);
ul.insertBefore(bloglink_li, ul.getElementsByTagName(&quot;li&quot;)[0]);
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var ul = document.getElementById(&quot;navigation&quot;);
ul.appendChild(bloglink_li);
ul.appendChild(forumlink_li);
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;I really like the script and hope you consider my suggestion.&lt;/p&gt;</description>
      <pubDate>Mon, 02 Mar 2009 19:27:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22555:99518</guid>
      <author>ptmb</author>
      <link>http://userscripts.org/posts/99518</link>
    </item>
    <item>
      <title>Archived Comments, replied by jfty.009260</title>
      <description>&lt;p&gt;Very nice, but you should make the included pages into 
&lt;br /&gt;&lt;code&gt;http://*userstyles.org*&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 28 Jul 2008 14:50:48 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15590:65219</guid>
      <author>jfty.009260</author>
      <link>http://userscripts.org/posts/65219</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:05:31 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15590:65218</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/65218</link>
    </item>
  </channel>
</rss>
