mmmturkeybacon Google IFrame Reload Button

Adds a reload button in the top right corner of the iframe for Google HITs. Clicking the button reloads the iframe only.

Verze ze dne 15. 06. 2015. Zobrazit nejnovější verzi.

// ==UserScript==
// @name        mmmturkeybacon Google IFrame Reload Button
// @version     1.00
// @description Adds a reload button in the top right corner of the iframe for Google HITs. Clicking the button reloads the iframe only.
// @author      mmmturkeybacon
// @namespace   http://userscripts.org/users/523367
// @match       https://www.google.com/evaluation/endor/mturk?*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant       GM_log
// ==/UserScript==

$(document).ready(function()
{
        var button_holder = document.createElement("DIV");
        button_holder.style.cssText = "position: fixed; top: 0px; right: 0px; z-index: 20;";
        button_holder.innerHTML = '<input type="button" onclick="window.location.reload(true)" value="Reload" />';
        document.body.insertBefore(button_holder, document.body.firstChild);
});