<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.rienquunblogdeplus.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>rien qu'un blog de plus - Balise - javascript</title>
  <link>http://www.rienquunblogdeplus.com/</link>
  <atom:link href="http://www.rienquunblogdeplus.com/feed/tag/javascript/rss2" rel="self" type="application/rss+xml"/>
  <description>rien qu'un blog de plus dans la formidaaaaable blogoshpère, après quinze ans de net, il me fallait bien finir par le faire...</description>
  <language>fr</language>
  <pubDate>Thu, 05 Jan 2012 06:57:39 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Des labels mieux organisés sous Firefox</title>
    <link>http://www.rienquunblogdeplus.com/post/Des-labels-mieux-organis%C3%A9s-sous-Firefox</link>
    <guid isPermaLink="false">urn:md5:cfd775a903af6905a08cc8316d3a3968</guid>
    <pubDate>Fri, 06 Mar 2009 16:50:00 +0100</pubDate>
    <dc:creator>David</dc:creator>
        <category>firefox</category><category>javascript</category>    
    <description>&lt;p&gt;Les labels sous Gmail c'est bien, mais ca peut vite devenir l'enfer quand on a plusieurs dizaines. Il serait bien pratique de pouvoir les organiser n'est ce pas&amp;nbsp;? Mais c'est faisable justement...&lt;/p&gt;    &lt;p&gt;&lt;img src=&quot;http://www.rienquunblogdeplus.com/public/illus/labels2.png&quot; alt=&quot;labels2.png&quot; style=&quot;float:right; margin: 0 0 1em 1em;&quot; title=&quot;labels2.png, mar. 2009&quot; /&gt; Oui enfin faisable mais avec un petit peu de magie par ci par là. La première chose à avoir c'est &lt;a href=&quot;http://www.mozilla-europe.org/fr/firefox/&quot;&gt;Firefox&lt;/a&gt;. Ca ne devrait pas être trop dur puisque depuis peu &lt;a href=&quot;http://www.w3schools.com/browsers/browsers_stats.asp&quot;&gt;Firefox dépasse Internet Explorer&lt;/a&gt; toutes versions confondues d'après w3schools.&lt;/p&gt;


&lt;p&gt;Le seconde chose magique à faire c'est d'installer une extention de Firefox portant le nom bien exotique de &lt;a href=&quot;https://addons.mozilla.org/fr/firefox/addon/748&quot;&gt;Greasemonkey&lt;/a&gt;. Cette extension n'a en elle même aucun intérêt seule à vrai dire. Car elle ne fait que permettre &lt;strong&gt;l'exécution de scripts qui modifieront les pages web&lt;/strong&gt; affichées dans Firefox.. et c'est là que se cache la vraie magie car ces bouts de scripts, du javascript en fait, pourront intervenir et modifier les pages web envoyées par le serveur.&lt;/p&gt;


&lt;p&gt;Troisième et dernière chose magique à installer donc, le script &lt;a href=&quot;http://userscripts.org/scripts/show/8810&quot;&gt;Folders4Gmail&lt;/a&gt; qui&lt;strong&gt; modifiera l'affichage des labels sous Gmail&lt;/strong&gt;. Il suffit ensuite de renommer ses labels pour les regrouper en mettant un /, par exemple Family/Dad.&lt;/p&gt;


&lt;p&gt;Et comme les scripts de GreaseMonkey sont en javascript, si vous avez un tout petit peu de connaissances dans ce langage et&lt;strong&gt; besoin de modifier un truc&lt;/strong&gt;, libre à vous. C'est ce que j'ai fait pour avoir les labels &quot;parent&quot; en gras quand il y a des messages non lus dans les labels inférieurs. J'ai juste modifié la ligne 433 ou quelque chose comme ca pour changer le code qui affiche le label...&lt;/p&gt;

&lt;pre class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: 'Courier New', Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;unreadCount&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: 'Courier New', Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: 'Courier New', Courier, monospace; font-weight: normal;&quot;&gt;	uiHandler.&lt;span style=&quot;color: #006600;&quot;&gt;getTextNode&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;label.&lt;span style=&quot;color: #006600;&quot;&gt;domNode&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;innerHTML&lt;/span&gt; = &lt;span style=&quot;color: #3366CC;&quot;&gt;'&amp;lt;strong&amp;gt;'&lt;/span&gt;+ label.&lt;span style=&quot;color: #006600;&quot;&gt;htmlName&lt;/span&gt; +&lt;span style=&quot;color: #3366CC;&quot;&gt;'&amp;lt;/strong&amp;gt;'&lt;/span&gt;+ unreadCount;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: 'Courier New', Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: 'Courier New', Courier, monospace; font-weight: normal;&quot;&gt;	uiHandler.&lt;span style=&quot;color: #006600;&quot;&gt;getTextNode&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;label.&lt;span style=&quot;color: #006600;&quot;&gt;domNode&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;innerHTML&lt;/span&gt; = label.&lt;span style=&quot;color: #006600;&quot;&gt;htmlName&lt;/span&gt; + unreadCount;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: 'Courier New', Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;


&lt;p&gt;C'est pas du grande code, mais ca fait le job&amp;nbsp;! ;)&lt;/p&gt;</description>
    
    
    
          <comments>http://www.rienquunblogdeplus.com/post/Des-labels-mieux-organis%C3%A9s-sous-Firefox#comment-form</comments>
      <wfw:comment>http://www.rienquunblogdeplus.com/post/Des-labels-mieux-organis%C3%A9s-sous-Firefox#comment-form</wfw:comment>
      <wfw:commentRss>http://www.rienquunblogdeplus.com/feed/atom/comments/13</wfw:commentRss>
      </item>
    
</channel>
</rss>
