<?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>Adam.Kahtava.com / AdamDotCom &#187; greasemonkey</title>
	<atom:link href="http://adam.kahtava.com/journal/category/greasemonkey/feed/" rel="self" type="application/rss+xml" />
	<link>http://adam.kahtava.com/journal</link>
	<description>A software development blog</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:35:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My first Greasemonkey Script: Goodbye ASP.NET Forum Ads</title>
		<link>http://adam.kahtava.com/journal/2007/11/21/my-first-greasemonkey-script-goodbye-aspnet-forum-ads/</link>
		<comments>http://adam.kahtava.com/journal/2007/11/21/my-first-greasemonkey-script-goodbye-aspnet-forum-ads/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 03:12:58 +0000</pubDate>
		<dc:creator>Adam Kahtava</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://adam.kahtava.com/journal/PermaLink,guid,e81cbb41-be44-4c48-ac58-1b88c42bb95a.aspx</guid>
		<description><![CDATA[Greasemonkey is an add-on for Firefox. Through JavaScript it allows anyone the ability to dynamically modify a page as, or after it&#8217;s being rendered in the browser. This lets anyone trim the DOM, remove ads, and modify page in anyway they see fit (it also opens up some serious privacy concerns with XSS). Anyhow, I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Greasemonkey">Greasemonkey</a> is an add-on for Firefox. Through JavaScript it allows anyone the ability to dynamically modify a page as, or after it&#8217;s being rendered in the browser. This lets anyone trim the DOM, remove ads, and modify page in anyway they see fit (it also opens up some serious privacy concerns with <a href="http://en.wikipedia.org/wiki/Cross_site_scripting">XSS</a>). Anyhow, I spend a fair time on the <a href="http://forums.asp.net/139.aspx">ASP.NET forums</a>, but the advertisements have always made for a somewhat negative, but tolerable user experience.</p>
<p>Today I finally broke down and wrote my own Greasemonkey script &#8211; now formally known as <em>&#8220;The ASP.NET Forums Beautifier&#8221;</em> for lack of a better name.</p>
<p><strong>The Script Before and After: </strong></p>
<p><strong>Before &#8211; </strong>usually the ASP.NET Forums look like this:<br />
<img src="http://adam.kahtava.com/etcetera/greasemonkey/gm.forums.asp.net.before.small.png" alt="" /></p>
<p><strong>After</strong> &#8211; with my script running in Greasemonkey we get this:<br />
<img src="http://adam.kahtava.com/etcetera/greasemonkey/gm.forums.asp.net.after.small.png" alt="" /></p>
<p><em>note: the greasemonkey icon, and complete lack of fluff / advertisements on the second screenshot.</em></p>
<p>Creating this script was simpler than I expected. It was a matter of skimming through an article on <a href="http://www.cyberciti.biz/tips/how-to-write-greasemonkey-scripts.html">How to write Greasemonkey scripts</a>, using <a href="http://www.getfirebug.com/logging.html">Firebug&#8217;s JavaScript Console</a> and <a href="http://developer.mozilla.org/en/docs/JavaScript_Console">Firefox&#8217;s Error Console</a> to test my code (after all, Firefox is the new IDE, <a href="http://www.codinghorror.com/blog/archives/000780.html">Firefox as an IDE</a>), and an hour later, Viola! No more ads.</p>
<p>The <a href="http://yuiblog.com/">YUI blog</a> and <a href="http://adam.kahtava.com/journal/2007/09/16/javascript-is-awesome-i-want-to-work-with-douglas-crockford/">Douglas Crockford</a> in particular, have inspired my JavaScript renaissance. JavaScript is really interesting, it&#8217;s a functional, loosely typed programming language that uses <a href="http://en.wikipedia.org/wiki/Prototype-based_programming">prototype-base inheritance</a>. Developing in JavaScript is a real treat from some of the more statically typed languages.</p>
<p>Download <a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a> and <em><a href="http://userscripts.org/scripts/show/25869">&#8220;The ASP.NET Forums Beautifier&#8221;</a></em> for yourself. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://adam.kahtava.com/journal/2007/11/21/my-first-greasemonkey-script-goodbye-aspnet-forum-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

