<?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>Adkins Family Blog &#187; javascript</title>
	<atom:link href="http://adkinsgroup.org/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://adkinsgroup.org/blog</link>
	<description></description>
	<lastBuildDate>Tue, 06 Jul 2010 17:00:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Half star ratings on Netflix</title>
		<link>http://adkinsgroup.org/blog/2007/05/02/half-star-ratings-on-netflix/</link>
		<comments>http://adkinsgroup.org/blog/2007/05/02/half-star-ratings-on-netflix/#comments</comments>
		<pubDate>Wed, 02 May 2007 13:43:27 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://lojic.com/blog/?p=63</guid>
		<description><![CDATA[I noticed a friend of mine (Jordan L.) who had half-star ratings (2.5, 3.5, etc.) on Netflix. When I asked him about it, he said to just &#8220;hover over the left side of the star&#8221; to get a half-star rating. This didn&#8217;t work for me, so I thought it might be a Linux vs. Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed a friend of mine (Jordan L.) who had half-star ratings (2.5, 3.5, etc.) on Netflix. When I asked him about it, he said to just &#8220;hover over the left side of the star&#8221; to get a half-star rating. This didn&#8217;t work for me, so I thought it might be a Linux vs. Windows thing and asked another friend (Mike F.) to try it out. Same result &#8211; didn&#8217;t work in IE or Firefox on Windows. Then Mike found a <a href="http://userscripts.org/scripts/show/8118">JavaScript file</a> that could be installed with <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey</a> and that worked fine for him.</p>
<p>I&#8217;ve yet to install <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey</a>, and I don&#8217;t like the idea of installing JavaScript on my system unless I&#8217;ve thoroughly analyzed it, so I thought of another way.</p>
<p>I installed <a href="http://www.wireshark.org/">wireshark</a> on my Ubuntu Linux box and sniffed the network traffic to Netflix when I rated a movie. After some experimenting and removal of extraneous info, I came up with the following URL to rate a movie with half stars. This specific URL will rate the movie &#8220;The Incredibles&#8221; with a 4.5 star rating (probably a bad example since The Incredibles clearly deserves a 5 star rating):</p>
<p>http://www.netflix.com/SetRating?widgetid=M70001989&#038;value=4.5</p>
<p>To rate other movies, simply replace 70001989 with the id of the movie which you can find by hovering over the movie. I believe you&#8217;ll need to be logged in to Netflix already for this to work.</p>
<p>Now as to why Jordan can rate half-stars without the aid of a greasemonkey script, that&#8217;s still a mystery.</p>
<p><strong>Update:</strong> got an email from Jordan explaining that his Netflix pages include the following two JavaScript source files:</p>
<p>src=&#8221;http://www.netflix.com/layout/jscript/dom_starbar_v2.js?v=126505&#8243;<br />
src=&#8221;http://www.netflix.com/layout/jscript/dom_starbar_halfstars.js?v=126505&#8243;</p>
<p>I only have the first one, and from the name of the second one, I presume that&#8217;s the one that gives him the special half star rating capability. I guess Netflix favors Jordan over me <img src='http://adkinsgroup.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><strong>Update 2:</strong> mystery solved! My curiosity got the best of me so I contacted Netflix. The rep said they&#8217;re running a test and Jordan just happened to get picked (I didn&#8217;t mention Jordan, but I suppose they looked through my &#8216;friend&#8217; list)! They do that periodically to test features to see if they&#8217;ll give them to the unwashed masses. I asked if they could run the test on me, and he said it didn&#8217;t work that way <img src='http://adkinsgroup.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So I guess it&#8217;s the greasemonkey script or the inconvenient URL hack for the rest of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://adkinsgroup.org/blog/2007/05/02/half-star-ratings-on-netflix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
