<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Greasemonkey script to remove redirections from Google result pages</title>
	<atom:link href="http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Mon, 28 May 2012 23:40:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Anonymous</title>
		<link>http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/#comment-17582</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 15 Feb 2012 18:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://pogopixels.com/blog/?p=169#comment-17582</guid>
		<description>The script has cased to work because google uses relative urls now and the Leviathans parseUri can't handle them in "loose" mode: http://blog.stevenlevithan.com/archives/parseuri.

You need to add

parseUri.options.strictMode = true;

just before the "// Get all the anchors" comment line.

Also the function isMangledLink seems to require absolute paths. This is unnecessary. I recommend truncating the function to:

function isMangledLink(url) {
	if (url.indexOf("/url?") &#60; 0) return false;
	return true;
}

This will still cherry pick the redirect urls, but doesn't care about the host or the url parameter. Host is handled by the Greasemonkey anyway and the parameter later in the script.</description>
		<content:encoded><![CDATA[<p>The script has cased to work because google uses relative urls now and the Leviathans parseUri can&#8217;t handle them in &#8220;loose&#8221; mode: <a href="http://blog.stevenlevithan.com/archives/parseuri" rel="nofollow">http://blog.stevenlevithan.com/archives/parseuri</a>.</p>
<p>You need to add</p>
<p>parseUri.options.strictMode = true;</p>
<p>just before the &#8220;// Get all the anchors&#8221; comment line.</p>
<p>Also the function isMangledLink seems to require absolute paths. This is unnecessary. I recommend truncating the function to:</p>
<p>function isMangledLink(url) {<br />
	if (url.indexOf(&#8221;/url?&#8221;) &lt; 0) return false;<br />
	return true;<br />
}</p>
<p>This will still cherry pick the redirect urls, but doesn&#8217;t care about the host or the url parameter. Host is handled by the Greasemonkey anyway and the parameter later in the script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JS</title>
		<link>http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/#comment-17562</link>
		<dc:creator>JS</dc:creator>
		<pubDate>Wed, 15 Feb 2012 00:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://pogopixels.com/blog/?p=169#comment-17562</guid>
		<description>Man, I wish this worked - but I still go to the redirect page first - on left and right mouseclicks.  In Greasemonkey, enabled, but no effect.</description>
		<content:encoded><![CDATA[<p>Man, I wish this worked - but I still go to the redirect page first - on left and right mouseclicks.  In Greasemonkey, enabled, but no effect.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

