<?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>MattKruse.com &#187; GreaseMonkey</title>
	<atom:link href="http://mattkruse.com/category/web/greasemonkey/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattkruse.com</link>
	<description></description>
	<lastBuildDate>Wed, 15 Dec 2010 15:54:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Undo Facebook Font Changes With Better Facebook!</title>
		<link>http://mattkruse.com/2010/11/03/undo-facebook-font-changes-with-better-facebook/</link>
		<comments>http://mattkruse.com/2010/11/03/undo-facebook-font-changes-with-better-facebook/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 14:52:42 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[browser extensions]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://mattkruse.com/2010/11/03/undo-facebook-font-changes-with-better-facebook/</guid>
		<description><![CDATA[Today, Facebook changed their default font size for most users from 13px to 11px. For many, this is too small! They also changed the layout so status updates appear under the user&#8217;s name, rather than immediately to the right. With the latest version of Better Facebook, you can thankfully undo both of these changes! First, [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Facebook changed their default font size for most users from 13px to 11px. For many, this is too small! They also changed the layout so status updates appear under the user&#8217;s name, rather than immediately to the right.</p>
<p><img title="smaller-font" style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 10px; border-left: 0px; border-bottom: 0px" height="404" alt="smaller-font" src="http://mattkruse.com/wp-content/uploads/2010/11/smallerfont.jpg" width="534" border="0" /> </p>
<p>With the latest version of <a href="http://BetterFacebook.net" target="_blank">Better Facebook</a>, you can thankfully undo both of these changes!</p>
<p>First, download <a href="http://BetterFacebook.net" target="_blank">Better Facebook</a> for your browser by going to <a href="http://BetterFacebook.net">http://BetterFacebook.net</a></p>
<p>Then, make two changes:</p>
<ol>
<li><strong>In Options-&gt;Popular (the first tab), enter &quot;13&quot; as the value for the last option &#8211; Force post font size to be __px. This will restore the font size.       <br /></strong><img title="font-size-option" style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 10px; border-left: 0px; border-bottom: 0px" height="349" alt="font-size-option" src="http://mattkruse.com/wp-content/uploads/2010/11/fontsizeoption.gif" width="346" border="0" />       </li>
<li><strong>In Options-&gt;CSS enter this text into the big box:</strong></li>
</ol>
<blockquote><p>.actorName{ display:inline; margin-right:3px; padding-bottom:0px !important; }</p>
</blockquote>
<p><img title="font-size-css" style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 10px; border-left: 0px; border-bottom: 0px" height="239" alt="font-size-css" src="http://mattkruse.com/wp-content/uploads/2010/11/fontsizecss.gif" width="514" border="0" /> </p>
<p>Click Save and refresh Facebook. You&#8217;ll be back to the layout you had before. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkruse.com/2010/11/03/undo-facebook-font-changes-with-better-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore The &quot;Unread&quot; Selector Link In GMail!</title>
		<link>http://mattkruse.com/2010/08/14/restore-the-unread-selector-link-in-gmail/</link>
		<comments>http://mattkruse.com/2010/08/14/restore-the-unread-selector-link-in-gmail/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 21:08:43 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://mattkruse.com/2010/08/14/restore-the-unread-selector-link-in-gmail/</guid>
		<description><![CDATA[Google recently updated GMail, and in the process they removed the &#34;Select&#34; line just under the buttons at the top. Unfortunately for most people (myself included), this was something that they used often! After reading the messages that weren&#8217;t spam, my natural motion was to select &#34;Unread&#34;, then move up a bit and click Delete. [...]]]></description>
			<content:encoded><![CDATA[<p>Google recently updated GMail, and in the process they removed the &quot;Select&quot; line just under the buttons at the top. Unfortunately for most people (myself included), this was something that they used often! After reading the messages that weren&#8217;t spam, my natural motion was to select &quot;Unread&quot;, then move up a bit and click Delete. I used it many times a day.</p>
<p>But after the update, the selector was hidden in a dropdown under a checkbox on the left. Very inconvenient!</p>
<p>So, Greasemonkey to the rescue again!&#160; I wrote this Greasemonkey script: <a title="http://userscripts.org/scripts/show/83525" href="http://userscripts.org/scripts/show/83525"><a title="Gmail - Restore &quot;Select&quot; line including &quot;Unread&quot; link" href="http://userscripts.org/scripts/show/83525" target="_blank">Gmail &#8211; Restore &quot;Select&quot; line including &quot;Unread&quot; link</a></a></p>
<p>This will add the &quot;Select&quot; line in and bring back one-click access to message selection, like this:</p>
<p><img title="gmail_Select" style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 10px; border-left: 0px; border-bottom: 0px" height="59" alt="gmail_Select" src="http://mattkruse.com/wp-content/uploads/2010/08/gmail_Select.gif" width="513" border="0" /> </p>
<p>Enjoy <img src='http://mattkruse.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://mattkruse.com/2010/08/14/restore-the-unread-selector-link-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greasemonkey JSON Unicode Problems &#8211; Solved!</title>
		<link>http://mattkruse.com/2010/03/26/greasemonkey-json-unicode-problems-solved/</link>
		<comments>http://mattkruse.com/2010/03/26/greasemonkey-json-unicode-problems-solved/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 20:18:50 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[browser extensions]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://mattkruse.com/2010/03/26/greasemonkey-json-unicode-problems-solved/</guid>
		<description><![CDATA[I had a number of users report problems with my Better Facebook! Firefox Add-on. The error was always with JSON.parse(), and it only happened with the Add-on, not the Greasemonkey version of the script. I was stumped for over a month. Couldn&#8217;t figure it out. Finally, I found the root cause and solution. The problem [...]]]></description>
			<content:encoded><![CDATA[<p>I had a number of users report problems with my <a href="https://addons.mozilla.org/en-US/firefox/addon/52369" target="_blank">Better Facebook! Firefox Add-on</a>. The error was always with JSON.parse(), and it only happened with the Add-on, not the <a href="http://userscripts.org/scripts/show/61761" target="_blank">Greasemonkey version of the script</a>. I was stumped for over a month. Couldn&#8217;t figure it out.</p>
<p>Finally, I found the root cause and solution.</p>
<p>The problem was unicode strings being passed into JSON.stringify(). This sometimes resulted in an invalid JSON structure, which then failed when passed to JSON.parse(). The root cause was not within my code, but within the Greasemonkey <a href="http://arantius.com/misc/greasemonkey/script-compiler" target="_blank">User Script Compiler</a> that I used to create the Add-on.</p>
<p>The problem was that the script was not being read in using UTF-8, so when executed it didn&#8217;t properly handle UTF-8. In the script-compiler.js file, line 22 (for me) I found this:</p>
<blockquote><p>var channel=ioService.newChannel(aUrl, null, null);</p>
</blockquote>
<p>I simply had to change the line to this instead:</p>
<blockquote><p>var channel=ioService.newChannel(aUrl, &quot;UTF-8&quot;, null);</p>
</blockquote>
<p>I re-packaged the add-on and the problem disappeared! Hopefully it anyone else runs into this, a quick Google search will find this page. In all my searching, I hadn&#8217;t come across anyone else talking about this specific issue. But solving a very needle-in-a-haystack problem is very rewarding, and I&#8217;ll be glad to stop getting error reports!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkruse.com/2010/03/26/greasemonkey-json-unicode-problems-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better Facebook</title>
		<link>http://mattkruse.com/2010/02/10/better-facebook/</link>
		<comments>http://mattkruse.com/2010/02/10/better-facebook/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 17:22:28 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[browser extensions]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://mattkruse.com/2010/02/10/better-facebook/</guid>
		<description><![CDATA[I have officially released BetterFacebook.net to house my &#34;Better Facebook&#34; greasemonkey script and Firefox add-on. The script has been updated to work with the new Facebook layout, and also now supports Chrome! Check out the site and the script. I hope you find it useful! BetterFacebook.net]]></description>
			<content:encoded><![CDATA[<p><a href="http://mattkruse.com/wp-content/uploads/2010/02/better_facebook_large.gif" target="_blank"><img title="better_facebook_large" style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 20px 0px 0px; border-left: 0px; border-bottom: 0px" height="240" alt="better_facebook_large" src="http://mattkruse.com/wp-content/uploads/2010/02/better_facebook_large_thumb.gif" width="187" align="left" border="0" /></a> I have officially released <a title="Better Facebook" href="http://BetterFacebook.net" target="_blank">BetterFacebook.net</a> to house my &quot;Better Facebook&quot; greasemonkey script and Firefox add-on.</p>
<p>The script has been updated to work with the new Facebook layout, and also now supports Chrome!</p>
<p>Check out the site and the script. I hope you find it useful!</p>
<p><a title="Better Faceook" href="http://BetterFacebook.net" target="_blank">BetterFacebook.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mattkruse.com/2010/02/10/better-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New GreaseMonkey Script: Add Netflix Links to IMDB</title>
		<link>http://mattkruse.com/2009/10/07/new-greasemonkey-script-add-netflix-links-to-imdb/</link>
		<comments>http://mattkruse.com/2009/10/07/new-greasemonkey-script-add-netflix-links-to-imdb/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 19:37:57 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[browser extensions]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://mattkruse.com/2009/10/07/new-greasemonkey-script-add-netflix-links-to-imdb/</guid>
		<description><![CDATA[This script was born out of a simple problem: I wanted to find out which movies have been released to theaters or DVD lately, and add them to my Netflix queue. Unfortunately, Netflix doesn&#8217;t provide an easy way to browse &#34;major&#34; movie releases by release date. However, IMDB always has a nice interface for this. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mattkruse.com/wp-content/uploads/2009/10/imdb-netflix2.gif" target="_blank"><img title="Example" style="border-right: 0px; border-top: 0px; display: inline; margin: 5px 20px 10px 0px; border-left: 0px; border-bottom: 0px" height="259" alt="Example" src="http://mattkruse.com/wp-content/uploads/2009/10/imdb-netflix2-thumb.gif" width="400" align="left" border="0" /></a> </p>
<p>This script was born out of a simple problem: I wanted to find out which movies have been released to theaters or DVD lately, and add them to my Netflix queue. Unfortunately, Netflix doesn&#8217;t provide an easy way to browse &quot;major&quot; movie releases by release date. However, IMDB always has a nice interface for this. Further, I&#8217;ve found myself at IMDB before, looking at a movie that I would like to add to my Netflix queue, but I had to go to Netflix, search, find the movie, then add it.</p>
<p>Solution? A new GreaseMonkey script!: <a href="http://userscripts.org/scripts/show/59249" target="_blank">Netflix Links on IMDB</a></p>
<p>I created this simple GreaseMonkey script, which adds a little red &quot;+&quot; next to movie titles on imdb.com. Clicking the image pops up a new window that searches on the movie name, usually finding the movie you want as the first match. </p>
<p>Easy! Hope it helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkruse.com/2009/10/07/new-greasemonkey-script-add-netflix-links-to-imdb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

