Google Image Search: Full Size Image

By Nemanja Avramović Last update Mar 18, 2010 — Installed 342 times.
// ==UserScript==
// @name           Google Image Search: Full Size Image
// @namespace      http://www.avramovic.info/
// @description    In search results, display full size image instead of thumbnail with a page.
// @include        http://images.google.com/imgres*
// ==/UserScript==

function getUrlVars()
{
  var vars = [], hash;
  var hashes = window.top.location.href.slice(window.top.location.href.indexOf('?') + 1).split('&');
   
  for(var i = 0; i < hashes.length; i++)
  {
    hash = hashes[i].split('=');
    vars.push(hash[0]);
    vars[hash[0]] = hash[1];
  }
  return vars;
}


function main()
{
  var fullurl = getUrlVars()['imgurl'];
  window.top.location = fullurl;
}


main();