Gertykhon / Google image search fix

// ==UserScript==
// @name         Google image search fix
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  
// @author       Gertykhon
// @include      https://www.google.*/imgres*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var search = location.search.substr(1).split('&').reduce(function (res, a) {
        var t = a.split('=');
        res[decodeURIComponent(t[0])] = t.length == 1 ? null : decodeURIComponent(t[1]);
        return res;
    }, {});
    var img=document.createElement('div');
    img.innerHTML='<a href="'+search.imgrefurl+'"><img width="100%" src="'+search.imgurl+'"></a>';
    img.style='position:absolute;';
    document.body.appendChild(img);
})();