<?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; English</title>
	<atom:link href="http://blog.webkitchen.cz/category/english/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>View Selection Source &#8211; Google Chrome Extension</title>
		<link>http://blog.webkitchen.cz/view-selection-source-chrome-extension</link>
		<comments>http://blog.webkitchen.cz/view-selection-source-chrome-extension#comments</comments>
		<pubDate>Wed, 10 Feb 2010 12:26:09 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=519</guid>
		<description><![CDATA[After many years with Opera as my primary browser, I&#8217;ve partly started to use Google Chrome as it&#8217;s rather fast and the UI is really sweet. Google Chrome has got some very useful tools for webdevelopers, but I was surprised that there was no &#8216;View Selection Source&#8217; item in the context menu. I&#8217;ve therefore decided to [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float: right;" src="/wp-content/uploads/2010/02/view-selection-source-chrome.png" alt="View Selection Source - Google Chrome Extension" width="237" height="207" />After many years with Opera as my primary browser, I&#8217;ve partly started to use Google Chrome as it&#8217;s rather fast and the UI is really sweet. Google Chrome has got some very useful tools for webdevelopers, but I was surprised that there was no &#8216;View Selection Source&#8217; item in the context menu. I&#8217;ve therefore decided to port my <a href="/view-selection-source">User JavaScript</a> which allows you to see the source of a selected part of a page, originally developed for Opera, to Google Chrome as an extension (which turned out to be surprisingly easy).</p>
<p>The Chrome extension API doesn&#8217;t allow you to add items to the context menu (yet?), so after installation, there is an icon next to the address bar which you can click to display the source code. If you don&#8217;t like the default Mozilla-like color scheme of syntax highlighting, you can go to the Options page and choose the Desert one instead.</p>
<h3>Download</h3>
<p>You can install it either from the Google Chrome extensions gallery or as a bookmarklet:</p>
<ul>
<li><a href="https://chrome.google.com/extensions/detail/hhlpjofmehafeaiaiflnddnfgnnpibgf">View Selection Source as a Google Chrome extension</a></li>
<li><a href="http://www.webkitchen.cz/lab/opera/view-selection-source/js/view-selection-source-bookmarklet.js.txt">Bookmarklet version</a> (displays the code in a new window and has no configuration options)</li>
</ul>
<h3>Screenshots</h3>

<a href='http://blog.webkitchen.cz/view-selection-source-chrome-extension/screenshot-3' title='Desert color sheme of syntax highlighting'><img width="150" height="90" src="http://blog.webkitchen.cz/wp-content/uploads/2010/02/Screenshot-150x90.png" class="attachment-thumbnail" alt="" title="Desert color sheme of syntax highlighting" /></a>
<a href='http://blog.webkitchen.cz/view-selection-source-chrome-extension/screenshot-1-2' title='Mozilla color sheme of syntax highlighting'><img width="150" height="90" src="http://blog.webkitchen.cz/wp-content/uploads/2010/02/Screenshot-1-150x90.png" class="attachment-thumbnail" alt="" title="Mozilla color sheme of syntax highlighting" /></a>
<a href='http://blog.webkitchen.cz/view-selection-source-chrome-extension/screenshot-2-2' title='Options'><img width="150" height="93" src="http://blog.webkitchen.cz/wp-content/uploads/2010/02/Screenshot-2-150x93.png" class="attachment-thumbnail" alt="" title="Options" /></a>

<h3>Custom Color Schemes</h3>
<p>If you feel like creating a new color scheme, here is how the CSS code looks like. Hope the class names are descriptive enough:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#desert</span> body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.tag</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#BDB76B</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.entity</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.tagName</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#BDB76B</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.attrName</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#BDB76B</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.attrValue</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFA0A0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.quote</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFA0A0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.comment</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.comment</span> <span style="color: #00AA00;">*</span>  <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#87CEEB</span> !important <span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span> !important <span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.cdataMark</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ff6600</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#desert</span> <span style="color: #6666ff;">.cdataContent</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.cdataContent</span> <span style="color: #00AA00;">*</span>  <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ff6600</span> !important <span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span> !important <span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Once you&#8217;ve created one, don&#8217;t forget to send it to me so that I can build it into the extension!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/view-selection-source-chrome-extension/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Implementation of CSS3 selectors in JavaScript</title>
		<link>http://blog.webkitchen.cz/css3-selectors-in-javascript</link>
		<comments>http://blog.webkitchen.cz/css3-selectors-in-javascript#comments</comments>
		<pubDate>Sat, 10 Jan 2009 13:39:46 +0000</pubDate>
		<dc:creator>Jakub</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://blog.webkitchen.cz/?p=266</guid>
		<description><![CDATA[ Two years ago there was a need for an implementation of CSS3 selectors in JavaScript (as a part of a debugging tool I was working on). The implementation is ready and tested, but is not needed anymore so I&#8217;ve decided to publish it for free download.

The implementation is almost 100% complete. It can even [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-190" title="w3c_main" src="http://blog.webkitchen.cz/wp-content/uploads/2009/01/w3c_main.png" alt="" width="315" height="48" /> Two years ago there was a need for an implementation of <a href="http://www.w3.org/TR/css3-selectors/">CSS3 selectors</a> in JavaScript (as a part of a debugging tool I was working on). The implementation is ready and tested, but is not needed anymore so I&#8217;ve decided to publish it for free download.</p>
<p><span id="more-266"></span></p>
<p>The implementation is almost 100% complete. It can even handle such things as unicode notations. For example, the following selector is processed exactly as per the spec:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">:</span>root<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span>form<span style="color: #00AA00;">&#41;</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">:</span>lang<span style="color: #00AA00;">&#40;</span>en<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&gt;</span> div<span style="color: #3333ff;">:first-</span>child ~ div</pre></div></div>

<p>The library uses standard DOM methods only, which means that there isn&#8217;t any pre-conversion of the CSS selector to an XPath expression as other such libraries usualy do.  The script hasn&#8217;t been much optimized in term of speed and doesn&#8217;t work in IE. The main and only goal was to create an implementation that will follow the specification as much as possible and work in the Gecko family browsers.</p>
<p><strong>Download:</strong> <a href="http://www.webkitchen.cz/lab/js/Selectors/Selectors.js">Selectors.js</a> (licence <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported</a>).</p>
<p><a href="http://www.webkitchen.cz/lab/js/Selectors/Selectors.js.html">HTML version with syntax highlighting.</a></p>
<p>You can try the library directly from your browser (unless you are using IE) on a <a href="http://www.webkitchen.cz/lab/js/Selectors/test.html">demo page</a>.</p>
<p>An application to the official W3C&#8217;s CSS3 selectors test suit is also <a href="http://www.webkitchen.cz/lab/js/Selectors/W3C-tests.php">available</a>. Note that when performing those tests all <strong><em>!important</em> statements are being ignored.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webkitchen.cz/css3-selectors-in-javascript/feed</wfw:commentRss>
		<slash:comments>0</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>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>
