Comments on: Greasemonkey script to remove redirections from Google result pages http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/ Just another WordPress weblog Tue, 22 Jul 2014 10:00:12 +0000 hourly 1 https://wordpress.org/?v=4.7.9 By: Anonymous http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/comment-page-1/#comment-17582 Wed, 15 Feb 2012 18:01:42 +0000 http://pogopixels.com/blog/?p=169#comment-17582 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?”) < 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.

]]>
By: JS http://pogopixels.com/blog/greasemonkey-script-to-remove-redirections-from-google-result-pages/comment-page-1/#comment-17562 Wed, 15 Feb 2012 00:48:00 +0000 http://pogopixels.com/blog/?p=169#comment-17562 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.

]]>