<?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>PUBLOG &#187; userjs</title>
	<atom:link href="http://blog.webkitchen.cz/tag/userjs/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.webkitchen.cz</link>
	<description></description>
	<lastBuildDate>Sun, 25 Jul 2010 03:10:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>„Zobrazit zdrojový kód výběru“ pro Operu</title>
		<link>http://blog.webkitchen.cz/zdrojovy-kod-vyberu</link>
		<comments>http://blog.webkitchen.cz/zdrojovy-kod-vyberu#comments</comments>
		<pubDate>Fri, 05 Dec 2008 15:02:11 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[Česky]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userjs]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=147</guid>
		<description><![CDATA[ &#8220;Zobrazit zdrojový kód výběru&#8221; (View Selection Source) — jednoduchý bookmarklet (favelet) nebo uživatelský JavaScript, který umožní zobrazení zdrojového kódu libovolné části HTML nebo XML stránky. Velmi užitečné zejména při tvorbě webu.

Zkuste si to!
Stačí označit nějaký text na této stránce, vybrat barevné schéma (nebo ponechat výchozí &#8220;Mozilla&#8221;) a kliknout na tlačitko níže:

 Mozilla  
 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-90" title="Opera logo" src="http://blog.webkitchen.cz/wp-content/uploads/2008/11/ologo_wback.gif" alt="" width="138" height="52" /> &#8220;Zobrazit zdrojový kód výběru&#8221; (View Selection Source) — jednoduchý bookmarklet (favelet) nebo uživatelský JavaScript, který umožní zobrazení zdrojového kódu libovolné části HTML nebo XML stránky. Velmi užitečné zejména při tvorbě webu.</p>
<p><span id="more-147"></span></p>
<h3>Zkuste si to!</h3>
<p><strong>Stačí označit nějaký text na této stránce, vybrat barevné schéma (nebo ponechat výchozí &#8220;Mozilla&#8221;) a kliknout na tlačitko níže:</strong></p>
<p><label for="moz"></p>
<input id="moz" checked="checked" name="scheme" type="radio" value="mozilla" /> Mozilla </label> <label for="desert"></p>
<input id="desert" name="scheme" type="radio" value="desert" /> Desert</label> <label for="opera"></p>
<input id="opera" name="scheme" type="radio" value="opera" /> Opera</label></p>
<p><button id="view-selection-source-demo">View Selection Source!</button></p>
<h3>Tři způsoby instalace</h3>
<h4>1. User JavaScript (Uživatelský JavaScript)</h4>
<p>Nejkomplikovanější instalace, ale nejkomfortnější používání s možností přizpůsobení.</p>
<h5>Krok 1: Povolení uživatelských scriptů v Opeře</h5>
<p>Pro povolení použijte Nástroje &gt; Nastavení &gt; Pokročilé &gt; Obsah &gt; JavaScript options. Zde vyberte adresář, kde chcete mít uloženy scripty. Opera pak bude nahrávat všechny soubory s příponou .js jako uživatelské JavaScripty.</p>
<h5>Krok 2. Instalace &#8220;View Selection Source&#8221;</h5>
<p>Stáhněte si  <a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source.js">&#8220;View Selection Source&#8221;</a>User JS soubor. Uložte ho do adresáře, který jste zvolili v předchozím kroku. (Jeho umístění se můžete dozvědět též na interní stránce prohlížeče <a href="opera:about">opera:about</a>.</p>
<h5>Krok 3: Přidání položky &#8220;Zobrazit zdrojový kód výběru&#8221; do kontextového menu Opery</h5>
<p>Je potřeba lokalizovat soubor s nastavení menu. Běžte do Nástroje &gt; Nastavení &gt; Pokročilé &gt; Nástrojové lišty. Pokud zde v boxu Nastavení menu vidíte pouze položku Opera Standard, tak jí označte a klikněte na tlačítko <button>Duplikovat</button>.<br />
<img src="http://www.webkitchen.cz/lab/opera/view-selection-source/menu-configuration.png" alt="Menu configuration" width="455" height="114" /><br />
Jděte na stránku <a href="opera:about">opera:about</a> a nalezněte <em>Opera directory</em>. Jděte do podadresáře <em>menu</em> a otevřete soubor s příponou .ini ve své oblíbeném textovém editoru (např. Poznámkový blok, Vim, Textmate, jEdit, apod.). <strong>Před úpravami Operu vypněte.</strong><br />
V souboru vyhledejte sekci <em>Hotclick Popup Menu</em>. Na konec této sekce přidejte:</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">Item, <span style="color: #933;">&quot;View selection source&quot;</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;Go to page, &quot;</span>javascript:opera.getSelectionSource<span style="">&#40;</span><span style="">&#41;</span><span style="color: #933;">&quot;&quot;</span></pre></div></div>

<p><strong>Po úpravě by tato sekce měla vypadat nějak takto:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Hotclick Popup Menu<span style="">&#93;</span></span>
Item, <span style="">50872</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Copy</span>
Item, <span style="">67652</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Copy to note</span>
Platform Win2000-Unix-Mac, Feature Voice, Item, <span style="">70494</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Speak selection</span>
--------------------<span style="">1</span>
Item, <span style="">65184</span>             <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Hotclick search, 200</span>
<span style="color: #666666; font-style: italic;">;Submenu, 291920, Search with menu</span>
Submenu, <span style="">291920</span>, Internal Search With
Item, <span style="">65187</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Hotclick search, 50</span>
Item, <span style="">65188</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Hotclick search, 51</span>
--------------------<span style="">2</span>
Submenu, <span style="">291960</span>, Translate menu
<span style="color: #666666; font-style: italic;">;Item, 65186        = Hotclick search, 52</span>
--------------------<span style="">3</span>
Item, <span style="">67394</span>             <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Go to page, </span><span style="color: #933;">&quot;%t&quot;</span>
Item, <span style="">65218</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Send text in mail</span>
--------------------<span style="">4</span>
Item, <span style="color: #933;">&quot;View selection source&quot;</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;Go to page, &quot;</span>javascript:opera.getSelectionSource<span style="">&#40;</span><span style="">&#41;</span><span style="color: #933;">&quot;&quot;</span></pre></div></div>

<p>A výsledek:</p>
<p><img src="http://www.webkitchen.cz/lab/opera/view-selection-source/usage1.png" alt="View Selection Source in menu" width="372" height="229" /></p>
<h4>2. Favelet v konfiguračním souboru pro menu</h4>
<p>Toto je velmi podobné předchozí variatně, ale není potřeba soubor s uživatelským JavaScriptem, celý kód se přidá do definice menu. Prosím následujte kroky 1 a 3 z předchozí varianty instalace. Ve třetím kroku vložte do menu místo kódu z předchozí varianty kód z <a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source-menu-item.js.txt">tohoto souboru</a>.</p>
<h4>3. Klasický bookmarklet</h4>
<p>Nejjednodušší způsob instalace. Vytvořte novou položku v &#8220;Oblíbených&#8221; a do políčka pro adresu vložte kód z <a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source-bookmarklet.js.txt">tohoto souboru</a>.<br />
<img src="http://www.webkitchen.cz/lab/opera/view-selection-source/favelet.png" alt="Create favelet" /></p>
<h3 id="cust">Přizpůsobení</h3>
<p>Pokud jste zvolili instalaci jako uživatelský JavaScript, tak si můžete zvolit jedno ze tří připravený barevných schémat zvýrazňování syntaxe, případně si napsat schéma vlastní. Např. definice výchozího schéma &#8220;Mozilla&#8221; vypadá takto:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">schemes.<span style="color: #660066;">mozilla</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
    background<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'White'</span><span style="color: #339933;">,</span>
    fontFamily<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'monospace'</span><span style="color: #339933;">,</span>
    fontSize<span style="color: #339933;">:</span>           <span style="color: #3366CC;">'12px'</span><span style="color: #339933;">,</span>
    stringColor<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'Black'</span><span style="color: #339933;">,</span>
    bracketColor<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'Black'</span><span style="color: #339933;">,</span>
    tagNameColor<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'Purple'</span><span style="color: #339933;">,</span>
    tagNameBold<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    attrNameColor<span style="color: #339933;">:</span>      <span style="color: #3366CC;">'Black'</span><span style="color: #339933;">,</span>
    attrNameBold<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    attrValueColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Blue'</span><span style="color: #339933;">,</span>
    attrValueBold<span style="color: #339933;">:</span>      <span style="color: #3366CC;">'normal'</span><span style="color: #339933;">,</span>
    quoteColor<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'Blue'</span><span style="color: #339933;">,</span>
    quoteBold<span style="color: #339933;">:</span>      <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    commentColor<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'Green'</span><span style="color: #339933;">,</span>
    commentBold<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'normal'</span><span style="color: #339933;">,</span>
    cdataMarkColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#ff6600'</span><span style="color: #339933;">,</span>
    cdataMarkBold<span style="color: #339933;">:</span> <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    cdataContentColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#ff6600'</span><span style="color: #339933;">,</span>
    cdataContentBold<span style="color: #339933;">:</span> <span style="color: #3366CC;">'normal'</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Další nastavení lze provést prostřednictví proměnné conf, ve zdrojovém kódu scriptu, výchozí hodnoty jsou tyto:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> conf <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// window settings</span>
    wWidth<span style="color: #339933;">:</span>            <span style="color: #CC0000;">700</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window width</span>
    wHeight<span style="color: #339933;">:</span>           <span style="color: #CC0000;">300</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window height</span>
    wTop<span style="color: #339933;">:</span>              <span style="color: #CC0000;">100</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window position Y</span>
    wLeft<span style="color: #339933;">:</span>              <span style="color: #CC0000;">50</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window position X</span>
    closeOnKeystroke<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    closeKeyCode<span style="color: #339933;">:</span>       <span style="color: #CC0000;">27</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// ESC</span>
    toggleWrapKeyCode<span style="color: #339933;">:</span> <span style="color: #CC0000;">13</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// ENTER</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// syntax highligthing settings</span>
    scheme<span style="color: #339933;">:</span> schemes.<span style="color: #660066;">desert</span> <span style="color: #006600; font-style: italic;">// set to the your prefered color scheme</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<h3>Licence</h3>
<p>Tento program je volný software; můžete jej šířit a modifikovat podle ustanovení Obecné veřejné licence GNU, vydávané Free Software Foundation; a to buď verze 2 této licence anebo (podle vašeho uvážení) kterékoli pozdější verze.</p>
<p><script src="/js/view-selection-source-demo.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/zdrojovy-kod-vyberu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>View Selection Source for Opera</title>
		<link>http://blog.webkitchen.cz/view-selection-source</link>
		<comments>http://blog.webkitchen.cz/view-selection-source#comments</comments>
		<pubDate>Thu, 13 Nov 2008 20:38:51 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userjs]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=87</guid>
		<description><![CDATA[View Selection Source — a simple JavaScript bookmarklet (favelet) or a User JavaScript which allows you to see HTML source of any part of a page, it's very useful for web developers. You probably know it from Firefox.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-90" title="Opera logo" src="http://blog.webkitchen.cz/wp-content/uploads/2008/11/ologo_wback.gif" alt="" width="138" height="52" /> The &#8216;View Selection Source&#8217; is a simple JavaScript bookmarklet (favelet) or a User JavaScript which allows you to see the HTML source of any part of a page, which is very useful for web developers. It brings to Opera the same functionality as Firefox has by default.</p>
<p><span id="more-87"></span></p>
<h3>Try it right now!</h3>
<p>To see how it works,  select any text on this page, choose a color scheme of the syntax highlighting (or keep the default one) and hit the button below:<br />
<label for="moz"></p>
<input id="moz" checked="checked" name="scheme" type="radio" value="mozilla" />Mozilla</label><label for="desert"><br />
<input id="desert" name="scheme" type="radio" value="desert" />Desert</label><label for="opera"><br />
<input id="opera" name="scheme" type="radio" value="opera" />Opera</label></p>
<p><button id="view-selection-source-demo">View Selection Source!</button></p>
<h3>Three installation methods</h3>
<p>There are three ways to install the script. They differ in how complicated the installation is, how the script is integrated into Opera&#8217;s user interface and in the possibility of further <a href="#customization">customization</a>.</p>
<ol>
<li><a href="#userjs">User JavaScript</a></li>
<li><a href="#inmenu">Bookmarklet in a menu</a></li>
<li><a href="#bookmarklet">Plain bookmarklet</a></li>
</ol>
<h4 id="userjs">1. User JavaScript</h4>
<p>This method is a little bit complicated but offers more comfortable usage. 		You will be able to call the script from the document context menu and also have the possibility of customizing it.</p>
<dl>
<dt>Step 1: Enable User JavaScript in Opera</dt>
<dd>To enable user JavaScript, use <span class="menu">Tools &gt; Preferences &gt; Advanced &gt;  Content &gt; JavaScript options</span>, and select the directory where you want to store your User JavaScript files. Opera will load all the files in the specified directory whose names end with &#8220;.js&#8221; and use them as User JavaScript files.<img src="http://www.webkitchen.cz/lab/opera/view-selection-source/user-javascript-configuration.png" alt="JavaScript configuration" width="409" height="75" /></dd>
<dt>Step 2: Install the &#8220;View Selection Source&#8221; User JS</dt>
<dd>Download the <a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source.js">&#8220;View Selection Source&#8221; User JS 				file</a> and save it into the in previous step created directory (you can also find the location in the <a href="opera:about">opera:about</a> page &#8211; llook for <em>User 				JavaScript files</em>).</p>
</dd>
<dt>Step 3: Add the &#8220;View Selection Source&#8221; item to the Opera&#8217;s context menu</dt>
<dd>We need to locate the ini file with your menu definition. Go to the toolbar preferences: <span class="menu">Tools &gt; Preferences &gt; Advanced &gt; Toolbars</span>. 				If there is only an<em> &#8220;Opera Standard&#8221; </em>item in the <span class="menu">&#8216;Menu Setup&#8217;</span> box, select it and click the <button>Duplicate</button> button. If you can see more than one item there, do 				nothing.<img src="http://www.webkitchen.cz/lab/opera/view-selection-source/menu-configuration.png" alt="Menu configuration" width="455" height="114" /></p>
<p>Now, go to the <a href="opera:about">opera:about</a> page and 				look for <em>&#8216;Opera directory</em>&#8216;. Go to that directory and open a subdirectory called <em>menu</em> and find a file ending with &#8220;.ini&#8221; 				and open it in your favorite text editor (such as Notepad, Vim, 				Textmate, jEdit, etc). <strong>Before editing stop Opera please.</strong></p>
<p>In the INI file, find a section called <em>Hotclick Popup Menu</em> and append the following code  at the end of that section:</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">Item, <span style="color: #933;">&quot;View selection source&quot;</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;Go to page, &quot;</span>javascript:opera.getSelectionSource<span style="">&#40;</span><span style="">&#41;</span><span style="color: #933;">&quot;&quot;</span></pre></div></div>

<p><strong>Finally the section should look similarly to this:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Hotclick Popup Menu<span style="">&#93;</span></span>
Item, <span style="">50872</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Copy</span>
Item, <span style="">67652</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Copy to note</span>
Platform Win2000-Unix-Mac, Feature Voice, Item, <span style="">70494</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Speak selection</span>
--------------------<span style="">1</span>
Item, <span style="">65184</span>             <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Hotclick search, 200</span>
<span style="color: #666666; font-style: italic;">;Submenu, 291920, Search with menu</span>
Submenu, <span style="">291920</span>, Internal Search With
Item, <span style="">65187</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Hotclick search, 50</span>
Item, <span style="">65188</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Hotclick search, 51</span>
--------------------<span style="">2</span>
Submenu, <span style="">291960</span>, Translate menu
<span style="color: #666666; font-style: italic;">;Item, 65186        = Hotclick search, 52</span>
--------------------<span style="">3</span>
Item, <span style="">67394</span>             <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Go to page, </span><span style="color: #933;">&quot;%t&quot;</span>
Item, <span style="">65218</span>         <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> Send text in mail</span>
--------------------<span style="">4</span>
Item, <span style="color: #933;">&quot;View selection source&quot;</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;Go to page, &quot;</span>javascript:opera.getSelectionSource<span style="">&#40;</span><span style="">&#41;</span><span style="color: #933;">&quot;&quot;</span></pre></div></div>

<p>Finally, the result  should look like the following picture shows:</p>
<p><img src="http://www.webkitchen.cz/lab/opera/view-selection-source/usage1.png" alt="View Selection Source in menu" width="372" height="229" /></p>
</dd>
</dl>
<h4 id="inmenu">2. Favelet in the menu definition file</h4>
<p>This is very similar to the previous variant, but any modification of the script becomes difficult since the code is compressed. The script will also be integrated into the context menu, but you don&#8217;t need to enable user JavaScripts. Please follow the steps 1 and  3 from the previous installation method, but In the third step don&#8217;t insert the code noted there, use the code from <a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source-menu-item.js.txt">this file</a> instead.</p>
<h4 id="bookmarklet">3. Classical bookmarklet</h4>
<p>This is the simplest way to install the script. You&#8217;ll just create a new bookmark and insert the whole JS code into the &#8216;Address 		field&#8217;. When you want to call the script, just click the created bookmark item in the &#8216;Bookmarks&#8217; panel. The 		code for this use is <a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source-bookmarklet.js.txt">here</a>.</p>
<p><img src="http://www.webkitchen.cz/lab/opera/view-selection-source/favelet.png" alt="Create favelet" /></p>
<h3 id="customization">Customization</h3>
<p>If you&#8217;ve installed the script as a User JavaScript, you can choose one from three 		predefined color schemes now or easily define you own new one. 		For example, the definition of the &#8220;Mozilla&#8221; color scheme looks as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">schemes.<span style="color: #660066;">mozilla</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
    background<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'White'</span><span style="color: #339933;">,</span>
    fontFamily<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'monospace'</span><span style="color: #339933;">,</span>
    fontSize<span style="color: #339933;">:</span>           <span style="color: #3366CC;">'12px'</span><span style="color: #339933;">,</span>
    stringColor<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'Black'</span><span style="color: #339933;">,</span>
    bracketColor<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'Black'</span><span style="color: #339933;">,</span>
    tagNameColor<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'Purple'</span><span style="color: #339933;">,</span>
    tagNameBold<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    attrNameColor<span style="color: #339933;">:</span>      <span style="color: #3366CC;">'Black'</span><span style="color: #339933;">,</span>
    attrNameBold<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    attrValueColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Blue'</span><span style="color: #339933;">,</span>
    attrValueBold<span style="color: #339933;">:</span>      <span style="color: #3366CC;">'normal'</span><span style="color: #339933;">,</span>
    quoteColor<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'Blue'</span><span style="color: #339933;">,</span>
    quoteBold<span style="color: #339933;">:</span>      <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    commentColor<span style="color: #339933;">:</span>       <span style="color: #3366CC;">'Green'</span><span style="color: #339933;">,</span>
    commentBold<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'normal'</span><span style="color: #339933;">,</span>
    cdataMarkColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#ff6600'</span><span style="color: #339933;">,</span>
    cdataMarkBold<span style="color: #339933;">:</span> <span style="color: #3366CC;">'bold'</span><span style="color: #339933;">,</span>
    cdataContentColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#ff6600'</span><span style="color: #339933;">,</span>
    cdataContentBold<span style="color: #339933;">:</span> <span style="color: #3366CC;">'normal'</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Another customization is possible by the <code>conf</code> variable, the default values are:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> conf <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// window settings</span>
    wWidth<span style="color: #339933;">:</span>            <span style="color: #CC0000;">700</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window width</span>
    wHeight<span style="color: #339933;">:</span>           <span style="color: #CC0000;">300</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window height</span>
    wTop<span style="color: #339933;">:</span>              <span style="color: #CC0000;">100</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window position Y</span>
    wLeft<span style="color: #339933;">:</span>              <span style="color: #CC0000;">50</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// window position X</span>
    closeOnKeystroke<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    closeKeyCode<span style="color: #339933;">:</span>       <span style="color: #CC0000;">27</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// ESC</span>
    toggleWrapKeyCode<span style="color: #339933;">:</span> <span style="color: #CC0000;">13</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// ENTER</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// syntax highligthing settings</span>
    scheme<span style="color: #339933;">:</span> schemes.<span style="color: #660066;">desert</span> <span style="color: #006600; font-style: italic;">// set to the your prefered color scheme</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<h3>Licence</h3>
<p>This script is free software, and you are welcome to redistribute and modify 		it under the terms of the GNU General Public License (either version 2 		or any later version).</p>
<p>If you have any questions, feel free to ask in the comments.</p>
<h3>Update</h3>
<p>Now available also as a <a title="View Selection Source - Google Chrome Extension" href="http://blog.webkitchen.cz/view-selection-source-chrome-extension">Google Chrome extension</a>.</p>
<p><script src="/js/view-selection-source-demo.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/view-selection-source/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Anchorize.js &#8211; convert URLs into links</title>
		<link>http://blog.webkitchen.cz/anchorize</link>
		<comments>http://blog.webkitchen.cz/anchorize#comments</comments>
		<pubDate>Tue, 07 Oct 2008 15:33:54 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userjs]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=41</guid>
		<description><![CDATA[ Anchorize.js is a small user JavaScript file for Opera which converts plain text links into real clikable links. It works on both HTML pages and text files.


Download anchorize.js


All of the following URLs are correctly converted into clickable links when using anchorize.js:

http://example.com/
http://192.160.1.1/~root
https://foo.example.com/bar?aaa=eee&#38;yyy=ooo
ftp://example.com/foo
http://en.wikipedia.org/wiki/Term_(language)
(http://example.com/)
www.example.com/beer[]=pilsner

If Anchorize.js causes some problems on a particular website or you just want to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-90 alignright" title="Opera logo" src="http://blog.webkitchen.cz/wp-content/uploads/2008/11/ologo_wback.gif" alt="Opera logo" width="138" height="52" /> Anchorize.js is a small user JavaScript file for Opera which converts plain text links into real clikable links. It works on both HTML pages and text files.</p>
<p><span id="more-41"></span></p>
<ul>
<li><a href="http://www.webkitchen.cz/lab/opera/anchorize/anchorize.js"><strong>Download anchorize.js</strong></a></li>
</ul>
<p><img class="alignnone" title="Anchorize - prevod URL na odkazy" src="http://www.webkitchen.cz/lab/opera/anchorize/anchorize.png" alt="" width="565" height="343" /></p>
<p>All of the following URLs are correctly converted into clickable links when using anchorize.js:</p>
<ul>
<li>http://example.com/</li>
<li>http://192.160.1.1/~root</li>
<li>https://foo.example.com/bar?aaa=eee&amp;yyy=ooo</li>
<li>ftp://example.com/foo</li>
<li>http://en.wikipedia.org/wiki/Term_(language)</li>
<li>(http://example.com/)</li>
<li>www.example.com/beer[]=pilsner</li>
</ul>
<p>If Anchorize.js causes some problems on a particular website or you just want to disable it for a specific domain (e.g. in my instalation I&#8217;ve disabled it for Google Search), use an @exclude directive as described in <a href="http://www.opera.com/browser/tutorials/userjs/using/">Opera documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/anchorize/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Anchorize.js &#8211; převod URL na odkazy</title>
		<link>http://blog.webkitchen.cz/anchorizejs</link>
		<comments>http://blog.webkitchen.cz/anchorizejs#comments</comments>
		<pubDate>Tue, 07 Oct 2008 16:13:58 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[Česky]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userjs]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=33</guid>
		<description><![CDATA[ Anchorize.js je uživatelský JavaScript pro Operu, který převadí URL z textu na klikatelné odkazy. Poradí si s ruznými formami zápisu URL.


Stáhnout anchorize.js


Všechny tyto URL jsou při použití anchorize.js korektně převedeny na klikatelné odkazy:

http://example.com/
http://192.160.1.1/~root
https://foo.example.com/bar?aaa=eee&#38;yyy=ooo
ftp://example.com/foo
http://en.wikipedia.org/wiki/Term_(language)
(http://example.com/)
www.example.com/beer[]=pilsner
[www.example.com]
&#60;http://example.com/&#62;

]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-90 alignright" title="Opera logo" src="http://blog.webkitchen.cz/wp-content/uploads/2008/11/ologo_wback.gif" alt="Opera logo" width="138" height="52" /> Anchorize.js je uživatelský JavaScript pro Operu, který převadí URL z textu na klikatelné odkazy. Poradí si s ruznými formami zápisu URL.</p>
<p><span id="more-33"></span></p>
<ul>
<li><a href="http://www.webkitchen.cz/lab/opera/anchorize/anchorize.js"><strong>Stáhnout anchorize.js</strong></a></li>
</ul>
<p><img class="alignnone" title="Anchorize - prevod URL na odkazy" src="http://www.webkitchen.cz/lab/opera/anchorize/anchorize.png" alt="" width="565" height="343" /></p>
<p>Všechny tyto URL jsou při použití anchorize.js korektně převedeny na klikatelné odkazy:</p>
<ul>
<li>http://example.com/</li>
<li>http://192.160.1.1/~root</li>
<li>https://foo.example.com/bar?aaa=eee&amp;yyy=ooo</li>
<li>ftp://example.com/foo</li>
<li>http://en.wikipedia.org/wiki/Term_(language)</li>
<li>(http://example.com/)</li>
<li>www.example.com/beer[]=pilsner</li>
<li>[www.example.com]</li>
<li>&lt;http://example.com/&gt;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/anchorizejs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Pretty XML tree view&#8221; &#8211; uživatelský JavaScript pro Operu</title>
		<link>http://blog.webkitchen.cz/pretty-xml-tree-cz</link>
		<comments>http://blog.webkitchen.cz/pretty-xml-tree-cz#comments</comments>
		<pubDate>Tue, 07 Oct 2008 15:55:43 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[Česky]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userjs]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=29</guid>
		<description><![CDATA["Pretty XML tree view" je user JavaScript (uzivatelsky JavaScript) pro prohlizec Opera, ktery automaticky konveruje nenastylovane XML (napr. RSS)  na stromovou strukturu podobne, jako to dela napr. Firefox.]]></description>
			<content:encoded><![CDATA[<p><img class=" alignright" title="Opera logo" src="http://promote.opera.com/logos/ologo_wback.gif" alt="Opera" width="138" height="52" /></p>
<p>&#8220;Pretty XML tree view&#8221; je <a href="http://www.opera.com/support/tutorials/userjs/">user JavaScript</a> (uživatelský JavaScript) pro prohlížeč Opera, který automaticky konveruje nenastylované XML (napr. RSS)  na stromovou strukturu podobně, jako to činí např. Firefox.</p>
<p><span id="more-29"></span></p>
<p>Transformace je prováděna <strong>pomocí XSLT</strong> (<a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.xsl">XSLT šablona</a> je obsazena v souboru se scriptem), takže se jedna o velmi rychlý proces.</p>
<ul>
<li><strong><a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.xsl.html">ukazkový vystup</a></strong></li>
</ul>
<p>Ve vysledné stromové struktuře lze jednotlivé elementy jednoduše sbalit a rozbalit kliknutim na počatecní či koncovou značku daného elementu.</p>
<h3>Stažení</h3>
<ul>
<li><a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.js">pretty-xml-tree.js</a> &#8211; soubor s uživatelským JavaScriptem</li>
<li><a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.xsl">pretty-xml-tree.xsl</a> &#8211; originalní XSLT sablona <em>(tento soubor nepotřebujete &#8211; je již obsazen ve scriptu -, ale může se hodit, pokud chcete porozumnet, jak je přesně transformace udelána)</em></li>
</ul>
<h3>Screenshot</h3>
<p><img class="alignnone" title="Pretty XML tree view for Opera" src="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-view-opera.png" alt="" width="530" height="592" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/pretty-xml-tree-cz/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pretty XML tree view for Opera</title>
		<link>http://blog.webkitchen.cz/pretty-xml-tree</link>
		<comments>http://blog.webkitchen.cz/pretty-xml-tree#comments</comments>
		<pubDate>Tue, 07 Oct 2008 15:29:38 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userjs]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=13</guid>
		<description><![CDATA[Pretty XML tree view is an user JavaScript for the Opera browser, that automatically transforms a raw unstyled XML (i.e. RSS feed) into pretty - Firefox like - tree view, which is more user friendly.]]></description>
			<content:encoded><![CDATA[<p><img class=" alignright" title="Opera logo" src="http://promote.opera.com/logos/ologo_wback.gif" alt="Opera" width="138" height="52" /> Pretty XML tree view is a <a href="http://www.opera.com/support/tutorials/userjs/">user JavaScript</a> for the Opera browser that automatically transforms raw unstyled XML files (i.e. RSS feeds) into a pretty &#8211; Firefox like &#8211; tree view which is much more user friendly.</p>
<p><span id="more-13"></span></p>
<p>The transformation is done <strong>using XSLT</strong> (<a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.xsl">the stylesheet</a> is embeded into the JavaScript file), so that it&#8217;s <strong>much faster</strong> than i.e. the first <a href="http://userjs.org/scripts/general/developer_tools/xml-tree">XML tree</a> user JavaScript (written by Mark &#8220;Tarquin&#8221; Wilton-Jones) even with large documents.</p>
<p>See <a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.xsl.html">Pretty XML tree sample output.</a></p>
<p>Note that the formatted output allows you to <strong>fold elements</strong> &#8211; just click either the opening  or the closing tag of an element and its content will be replaced with three green dots; click again to unfold it.</p>
<p>If you want to know which <strong>namespace</strong> particular element belongs to, just hold your mouse over it and the URI of the namespace appears in a few seconds.</p>
<h3>Download</h3>
<ul>
<li><a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.js">pretty-xml-tree.js</a> &#8211; the user JavaScript file</li>
<li><a href="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-tree.xsl">pretty-xml-tree.xsl</a> &#8211; the original XSLT file <em>(you most likely don&#8217;t need this file, it&#8217;s here in case you want to study it)</em></li>
</ul>
<h3>Screenshot</h3>
<p><img class="alignnone" title="Pretty XML tree view for Opera" src="http://www.webkitchen.cz/lab/opera/pretty-xml-tree/files/pretty-xml-view-opera.png" alt="" width="530" height="592" /></p>
<h3>Update</h3>
<p>Some guys&#8217;ve created a Chrome extension based on my script &#8211; <a href="https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb">XML Tree for Chrome</a>. I really like the idea to allow search in the tree by XPath expressions!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/pretty-xml-tree/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
