<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Abraxas &#187; userChrome.js</title>
	<atom:link href="http://www.effinger.org/blog/tag/userchromejs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.effinger.org/blog</link>
	<description>a personal knowledge base</description>
	<lastBuildDate>Sun, 06 Jun 2010 17:41:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Erweiterte Menüeinträge in Firefox mit userChrome.js</title>
		<link>http://www.effinger.org/blog/2008/10/23/erweiterte-menueintrage-in-firefox-mit-userchromjs/</link>
		<comments>http://www.effinger.org/blog/2008/10/23/erweiterte-menueintrage-in-firefox-mit-userchromjs/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 19:07:17 +0000</pubDate>
		<dc:creator>Markus Effinger</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[userChrome.js]]></category>

		<guid isPermaLink="false">http://www.effinger.org/blog/?p=64</guid>
		<description><![CDATA[<p>Ich finde es immer lästig, wenn ich Passwörter löschen oder anschauen will, umständlich über Extras&#62;Einstellungen&#62;Sicherheit&#62;Gespeicherte Passwörter den Passwort-Manager aufzurufen. Mit der Extension userChrome.js (Version 0.8) &#8211; Mirror &#8211; lassen sich tolle Dinge anstellen. So kann man einen entsprechenden Menüeintrag für den Passwort-Manager erstellen, so dass man ihn direkt über Extras&#62;Gespeicherte Passwörter aufrufen kann. Um das [...]]]></description>
			<content:encoded><![CDATA[<p>Ich finde es immer lästig, wenn ich Passwörter löschen oder anschauen will, umständlich über Extras&gt;Einstellungen&gt;Sicherheit&gt;Gespeicherte Passwörter den Passwort-Manager aufzurufen. Mit der Extension <a href="http://mozilla.zeniko.ch/userchrome.js.xpi">userChrome.js (Version 0.8)</a> &#8211; <a href="http://www.effinger.org/fileadmin/downloads/blog/userchrome.js.xpi">Mirror</a> &#8211; lassen sich tolle Dinge anstellen. So kann man einen entsprechenden Menüeintrag für den Passwort-Manager erstellen, so dass man ihn direkt über Extras&gt;Gespeicherte Passwörter aufrufen kann. Um das zu machen editiert man nach der Installation der Extension die Datei userChrome.js im Unterverzeichnis chrome des Firefox-Profilverzeichnis und fügt folgenden Code hinzu:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #3366CC;">&quot;label&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Cookies anzeigen&quot;</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">&quot;accesskey&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;K&quot;</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">&quot;oncommand&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;window.open('chrome://browser/content/preferences/cookies.xul', 'Browser:Cookies', 'chrome,resizable=yes');&quot;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #3366CC;">&quot;label&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Gespeicherte Passwörter&quot;</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">&quot;accesskey&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;P&quot;</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">&quot;oncommand&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;window.open('chrome://passwordmgr/content/passwordManager.xul', 'Toolkit:PasswordManager', 'chrome,resizable=yes');&quot;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #3366CC;">&quot;label&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Zertifikate anzeigen&quot;</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">&quot;accesskey&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;E&quot;</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">&quot;oncommand&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;window.open('chrome://pippki/content/certManager.xul', 'mozilla:certmanager', 'chrome,resizable=yes,all,width=600,height=400');&quot;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#93;</span>
.<span style="color: #660066;">forEach</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>attrs<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> menuitem <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;menuitem&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> key <span style="color: #000066; font-weight: bold;">in</span> attrs<span style="color: #009900;">&#41;</span>
	menuitem.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span>key<span style="color: #339933;">,</span> attrs<span style="color: #009900;">&#91;</span>key<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;menu_ToolsPopup&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">insertBefore</span><span style="color: #009900;">&#40;</span>menuitem<span style="color: #339933;">,</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sanitizeItem&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>location <span style="color: #339933;">!=</span> <span style="color: #3366CC;">&quot;chrome://browser/content/browser.xul&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">throw</span> <span style="color: #3366CC;">&quot;stop&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Hier gibt es noch <a href="http://click4trick.com/windows/4923-customizare-firefox-prin-userchrome-javascript.html">weitere interessante Code-Schnipsel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.effinger.org/blog/2008/10/23/erweiterte-menueintrage-in-firefox-mit-userchromjs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
