<?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>just another hack &#187; bookmarklet</title>
	<atom:link href="http://justanotherhack.net/tag/bookmarklet/feed/" rel="self" type="application/rss+xml" />
	<link>http://justanotherhack.net</link>
	<description></description>
	<lastBuildDate>Wed, 13 Jan 2010 00:46:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bookmarklets</title>
		<link>http://justanotherhack.net/tech/bookmarklets/</link>
		<comments>http://justanotherhack.net/tech/bookmarklets/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 23:58:07 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[techlink]]></category>
		<category><![CDATA[webbrowser]]></category>

		<guid isPermaLink="false">http://justanotherhack.net/?p=120</guid>
		<description><![CDATA[So, to comply with a request, here&#8217;s a bit more about Bookmarklets (or Favelets, as they are called with an inferior browser). Bookmarklets allow you to execute small commands that interact with the current website (or a part of it). To be precise, they are just short (since bookmarks have a certain max size, depending [...]]]></description>
			<content:encoded><![CDATA[<p>So, to comply with a request, here&#8217;s a bit more about Bookmarklets (or Favelets, as they are called with an inferior browser). Bookmarklets allow you to execute small commands that interact with the current website (or a part of it). To be precise, they are just short (since bookmarks have a certain max size, depending on your browser) JavaScript commands, so they are quite easy to write. I could go into detail, but why should I when others already did that way better than I could. Go and have a look at these pages:</p>
<ul>
<li><a title="External Link: bmlet.com" href="http://www.bmlet.com/bookmarklets/">bmlet.com</a> &#8211; Great page for ready-to-use Bookmarklets</li>
<li><a title="External Link: Jessi's Bookmarklets Site" href="https://www.squarefree.com/bookmarklets/">Jessi&#8217;s Bookmarklets Site</a> &#8211; More ready-to-use Bookmarklets</li>
<li><a title="External Link: Bookmarklets.com" href="http://www.bookmarklets.com/">Bookmarklets.com</a> &#8211; Guess what&#8230;</li>
<li>Any JavaScript website you know will help you develop your own.</li>
</ul>
<p>Not all Bookmarklets will work for you, cause it depends on your JavaScript engine, browser and if the coin of fate fell so, that Tymora smiles upon you. But if you find some helpful little Bookmarklets, they will enhance your web-experience. Here are some that I use frequently:</p>
<ul>
<li><strong><a title="Bookmarklet: Search Wikipedia" href="javascript:s=(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(s==''){if(window.getSelection){if(frames.length&gt;1){for(i=0;i&lt;frames.length;i++){s=frames[i].document.getSelection();if(s)break;}}}}if(s=='')void(s=prompt('Bitte%20geben%20Sie%20einen%20Begriff%20zur%20Suche%20im%20Lexikon%20ein.',''));if(s){w=open('http://en.wikipedia.org/wiki/'+encodeURIComponent(s),'','');w.focus();}">Search Wikipedia (EN)</a></strong> &#8211; Does what it sounds like. Either a marked part of the website or if nothing is marked, a popup will appear. Can easily be changed to query whatever language on Wikipedia you prefer.</li>
<li><strong><a title="Bookmarklet: Search Leo Dictionary" href="javascript:s=(window.getSelection?window.getSelection():document.getSelection());if(s==''){if(window.getSelection){if(frames.length!=1){for(i=0;i&lt;frames.length;i++){s=frames[i].document.getSelection();if(s)break;}}}}if(s=='')void(s=prompt('Enter%20a%20search%20term%20or%20select%20the%20text%20you%20want%20to%20translate%20before%20clicking%20on%20LEOdict.',''));if(s){leow=open('http://dict.leo.org/ende?search='+escape(s),'LEODict','width=780,height=550,scrollbars=yes,resizeable=yes');leow.focus();}">Search Leo Dictionary</a></strong> &#8211; Same as above. Hey, my English ain&#8217;t really that good, I really need it.</li>
<li><strong><a title="Bookmarklet: Sort table" href="javascript:function%20toArray%20(c){var%20a,%20k;a=new%20Array;for%20(k=0;%20k&lt;c.length;%20++k)a[k]=c[k];return%20a;}function%20insAtTop(par,child){if(par.childNodes.length)%20par.insertBefore(child,%20par.childNodes[0]);else%20par.appendChild(child);}function%20countCols(tab){var%20nCols,%20i;nCols=0;for(i=0;i&lt;tab.rows.length;++i)if(tab.rows[i].cells.length&gt;nCols)nCols=tab.rows[i].cells.length;return%20nCols;}function%20makeHeaderLink(tableNo,%20colNo,%20ord){var%20link;link=document.createElement('a');link.href='javascript:sortTable('+tableNo+','+colNo+','+ord+');';link.appendChild(document.createTextNode((ord&gt;0)?'a':'d'));return%20link;}function%20makeHeader(tableNo,nCols){var%20header,%20headerCell,%20i;header=document.createElement('tr');for(i=0;i&lt;nCols;++i){headerCell=document.createElement('td');headerCell.appendChild(makeHeaderLink(tableNo,i,1));headerCell.appendChild(document.createTextNode('/'));headerCell.appendChild(makeHeaderLink(tableNo,i,-1));header.appendChild(headerCell);}return%20header;}g_tables=toArray(document.getElementsByTagName('table'));if(!g_tables.length)%20alert(&quot;This%20page%20doesn't%20contain%20any%20tables.&quot;);(function(){var%20j,%20thead;for(j=0;j&lt;g_tables.length;++j){thead=g_tables[j].createTHead();insAtTop(thead,%20makeHeader(j,countCols(g_tables[j])))}})%20();function%20compareRows(a,b){if(a.sortKey==b.sortKey)return%200;return%20(a.sortKey%20&lt;%20b.sortKey)%20?%20g_order%20:%20-g_order;}function%20sortTable(tableNo,%20colNo,%20ord){var%20table,%20rows,%20nR,%20bs,%20i,%20j,%20temp;g_order=ord;g_colNo=colNo;table=g_tables[tableNo];rows=new%20Array();nR=0;bs=table.tBodies;for(i=0;%20i&lt;bs.length;%20++i)for(j=0;%20j&lt;bs[i].rows.length;%20++j){rows[nR]=bs[i].rows[j];temp=rows[nR].cells[g_colNo];if(temp)%20rows[nR].sortKey=temp.innerHTML;else%20rows[nR].sortKey=&quot;&quot;;++nR;}rows.sort(compareRows);for%20(i=0;%20i%20&lt;%20rows.length;%20++i)insAtTop(table.tBodies[0],%20rows[i]);}">Sort table</a></strong> &#8211; unfortunally not all webdesigners think it is a good idea to add a sort function to cluttered tables. Well, this helps.</li>
<li><strong><a title="Bookmarklet: Highlight RegEx" href="javascript:(function(){var%20count=0,%20text,%20regexp;text=prompt(&quot;Search%20regexp:&quot;,%20&quot;&quot;);if(text==null%20||%20text.length==0)return;try{regexp=new%20RegExp(&quot;(&quot;%20+%20text%20+&quot;)&quot;,%20&quot;i&quot;);}catch(er){alert(&quot;Unable%20to%20create%20regular%20expression%20using%20text%20'&quot;+text+&quot;'.\n\n&quot;+er);return;}function%20searchWithinNode(node,%20re){var%20pos,%20skip,%20spannode,%20middlebit,%20endbit,%20middleclone;skip=0;if(%20node.nodeType==3%20){pos=node.data.search(re);if(pos&gt;=0){spannode=document.createElement(&quot;SPAN&quot;);spannode.style.backgroundColor=&quot;yellow&quot;;middlebit=node.splitText(pos);endbit=middlebit.splitText(RegExp.$1.length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else%20if(%20node.nodeType==1%20&amp;&amp;%20node.childNodes%20&amp;&amp;%20node.tagName.toUpperCase()!=&quot;SCRIPT&quot;%20&amp;&amp;%20node.tagName.toUpperCase!=&quot;STYLE&quot;){for%20(var%20child=0;%20child%20&lt;%20node.childNodes.length;%20++child){child=child+searchWithinNode(node.childNodes[child],%20re);}}return%20skip;}window.status=&quot;Searching%20for%20&quot;+regexp+&quot;...&quot;;searchWithinNode(document.body,%20regexp);window.status=&quot;Found%20&quot;+count+&quot;%20match&quot;+(count==1?&quot;&quot;:&quot;es&quot;)+&quot;%20for%20&quot;+regexp+&quot;.&quot;;})();">Highlight RegEx</a></strong> &#8211; Since there is no highlight search feature in Firefox and the fact about every search function in every application sucks (more about that in an upcoming post) and me being a <abbr title="Regular Expression">RegEx</abbr> freak, this is a wonderful function.</li>
<li><strong><a title="Bookmarklet: Edit webpage" href="javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200">Edit webpage</a></strong> &#8211; As mentioned in an <a title="Blog Entry: Edit webpages “online”" href="/tech/edit-webpages-online/">earlier post</a>. Not a regular Bookmarklet of mine, but helpful when creating documentations or just to have fun.</li>
</ul>
<p>There are a lot more helpful functions (taking the first two from this list will give you a hint how to use it with any other web(site) search function), those are just a few examples. Go browse and find some that work well for your. Or maybe even create your own and post them to the pages mentioned above.</p>
<p>And while we are at it, there&#8217;s another way to enhance your webbrowser (as long as it is called Firefox or can use whose Add-Ons). Check out the following two Add-Ons. No further describtion from me, just check the links.</p>
<ul>
<li><a title="External Link: Mozilla Add-Ons: Firefox: Mozilla Labs - Ubiquity" href="https://addons.mozilla.org/de/firefox/addon/9527">Ubiquity</a> &#8211; Great tool in development by Mozilla Labs. Even has a natural language parser.</li>
<li><a title="External Link: Mozilla Add-Ons: Firefox: Greasemonkey" href="https://addons.mozilla.org/de/firefox/addon/748">Greasemonkey</a> &#8211; Mostly for layout stuff, but some very useful scripts (especially for communities like deviantArt).</li>
</ul>
<p>That&#8217;s it for now. Go and enhance your browser!</p>
]]></content:encoded>
			<wfw:commentRss>http://justanotherhack.net/tech/bookmarklets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Edit webpages &#8220;online&#8221;</title>
		<link>http://justanotherhack.net/tech/edit-webpages-online/</link>
		<comments>http://justanotherhack.net/tech/edit-webpages-online/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:54:07 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[webbrowser]]></category>

		<guid isPermaLink="false">http://justanotherhack.net/?p=92</guid>
		<description><![CDATA[I&#8217;ll start using the blog as some kind of notepad for stuff I always end up searching elsewhere.
Starting with a simple method to edit webpages (but only for display in the browser). Copy and paste to the url bar: Link
(Works as a bookmark as well.)
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll start using the blog as some kind of notepad for stuff I always end up searching elsewhere.</p>
<p>Starting with a simple method to <em>edit</em> webpages (but only for display in the browser). Copy and paste to the url bar: <a href="javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200">Link</a></p>
<p>(Works as a bookmark as well.)</p>
]]></content:encoded>
			<wfw:commentRss>http://justanotherhack.net/tech/edit-webpages-online/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
