No HIT Reloader

Reloads pages automatically if no HIT is loaded for provided GroupIds.

当前为 2016-04-06 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         No HIT Reloader
// @namespace    http://kadauchi.com/
// @version      1.0.0
// @description  Reloads pages automatically if no HIT is loaded for provided GroupIds.
// @author       Kadauchi
// @icon         http://kadauchi.com/avatar.jpg
// @include      https://www.mturk.com/mturk/previewandaccept*
// @include      https://www.mturk.com/mturk/accept*
// @include      https://www.mturk.com/mturk/preview*
// @grant        GM_log
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==

// Add the group id for the HITs you want to be reloaded here.
var GroupID = [
    "372BFDRITDWG830EQNGKBX9BAFJ1C0", //A9
    "3WY138MABEE4BCXHUMJF0NIGU5JYI4"  //A9
];

console.log("The script [No HIT Reloader] has been loaded.");

if (!$("iframe").length){
    for (var i = 0; i < GroupID.length; i++){
        if (window.location.href.indexOf(GroupID[i]) !== -1){
            location.reload();
        }
    }
}
else {
    document.title = "HIT Loaded";
}