<?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>An Experiment in Bloggery &#187; javascript</title>
	<atom:link href="http://kevin.sb.org/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevin.sb.org</link>
	<description>The occasional view into my life</description>
	<lastBuildDate>Fri, 09 Sep 2011 00:19:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CleanGoogle Safari extension</title>
		<link>http://kevin.sb.org/2010/06/10/cleangoogle-safari-extension/</link>
		<comments>http://kevin.sb.org/2010/06/10/cleangoogle-safari-extension/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:43:09 +0000</pubDate>
		<dc:creator>Kevin Ballard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://kevin.sb.org/?p=226</guid>
		<description><![CDATA[If you&#8217;re like anybody else that I know, you were rather shocked and appalled to see Google follow the likes of Bing and add background images to their home page. If you&#8217;re also like anybody else that I know, you&#8217;re aware that Safari 5 was released with support for extensions. And if you&#8217;re like me, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like anybody else that I know, you were rather shocked and appalled to see Google follow the likes of <a href="bing.com">Bing</a> and add background images to their home page. If you&#8217;re also like anybody else that I know, you&#8217;re aware that Safari 5 was released with support for extensions. And if you&#8217;re like me, you thought that the new extensions behavior might be a great way to, erm, &#8220;fix&#8221; Google. Inspired by a tweet from <a href="http://twitter.com/rentzsch/status/15831330366">@rentzsch</a>, I decided to figure out how this might be done. I am, of course, not a JavaScript programmer, and Google&#8217;s front page code is quite obfuscated, but after playing around with it for a bit over an hour, I got something that worked. Unfortunately it also has the side-effect of blocking the fairly nice fade-in of all the text content, and it&#8217;s also a bit fragile, but if you absolutely cannot stand the background image, feel free to <a href="/files/CleanGoogle.safariextz">download the extension</a> and try it out.</p>

<p><strong>Update</strong>: I played around for a few more hours and got something much better. It&#8217;s still fragile, but not nearly so much as before, and it restores the fade effect for all the google content. Same <a href="/files/CleanGoogle.safariextz">download link</a> as before.</p>

<p><strong>Update 2</strong>: Looks like Google fixed their homepage sometime this morning, so this extension is now officially obsolete. I will continue to host the download if anybody is interested in the code.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.sb.org/2010/06/10/cleangoogle-safari-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MouseHole and JavaScript</title>
		<link>http://kevin.sb.org/2005/09/03/mousehole-and-javascript/</link>
		<comments>http://kevin.sb.org/2005/09/03/mousehole-and-javascript/#comments</comments>
		<pubDate>Sun, 04 Sep 2005 03:23:00 +0000</pubDate>
		<dc:creator>Kevin Ballard</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mousehole]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://3d5d900f9c832f5b8654d85fc336d39c</guid>
		<description><![CDATA[So why has been talking about MouseHole lately. If you&#8217;re unaware, MouseHole is a ruby script that acts as a web proxy and filters HTML documents via ruby scripts. Or for a much better look at it, go look at what why wrote. Anyway, I wanted a way to do JavaScript cross-site AJAX tricks, like [...]]]></description>
			<content:encoded><![CDATA[<p>So <a href="http://www.whytheluckystiff.net">why</a> has been <a href="http://redhanded.hobix.com/inspect/mousehole11InPlainView.html">talking</a> about <a href="http://mousehole.rubyforge.org">MouseHole</a> lately. If you&#8217;re unaware, <a href="http://mousehole.rubyforge.org">MouseHole</a> is a ruby script that acts as a web proxy and filters HTML documents via ruby scripts. Or for a much better look at it, go look at what why <a href="http://redhanded.hobix.com/inspect/mousehole11InPlainView.html">wrote</a>.</p>

<p>Anyway, I wanted a way to do JavaScript cross-site AJAX tricks, like what <a href="http://greasemonkey.mozdev.org/">Greasemonkey</a> enables. Unfortunately, because <a href="http://mousehole.rubyforge.org">MouseHole</a> is a pre-processor, not a JavaScript extension, it&#8217;s not possible. So I spent a few hours and wrote a way for <a href="http://mousehole.rubyforge.org">MouseHole</a> scripts to provide content that doesn&#8217;t actually exist (as opposed to mutating existing content). This way JavaScript can do an AJAX call within the same domain (so it doesn&#8217;t hit the security limitations) but that call is intercepted by your script, so you could pull info from other sites and send it back, or whatever you wish.</p>

<p>I haven&#8217;t actually done anything with this new capability yet aside from a rather silly example script which simply adds a button to Google that asks MouseHole for a random number. I&#8217;d really like to extend <a href="http://maps.google.com">Google Maps</a>, but that will require delving into how it works, and it&#8217;s far too late to do that now, as I need to get to bed.</p>

<p>Anyhow, I put together a patch and sent it to the MouseHole Scripters mailing list. If you check out MouseHole from the CVS <a href="http://www.rubyforge.org/projects/mousehole">repository</a>, you can apply my <a href="/files/mousehole-1.patch">patch</a> and test it. Or you can just wait to see if it gets added to <a href="http://mousehole.rubyforge.org">MouseHole</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.sb.org/2005/09/03/mousehole-and-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
