Okay, you scripters. I'm trying to make a script for the Shiver hits. I based it off of one for Lind - although, I don't really care about the auto-refresh portion. I want the cursor to go directly into the "phrase" box upon open, but no go. Anybody see what I did incorrectly? Be nice so as to not crush my delicate ego.
Code:
// ==UserScript==
// @name Shiver
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Might Do Stuff
// @author Shana296
// @include https://www.mturk.com/mturk/previewandaccept?prevRequester=Shiver*
// @include https://www.mturk.com/mturk/previewandaccept?groupId=3K3R2QNK8CBTJD4D55M56KOL78F9
// @include https://www.mturkcontent.com/*
// @require http://code.jquery.com/jquery-2.1.0.min.js
// @grant GM_log
// ==/UserScript==
//auto-refresh when you get booted from the batch
jQuery(document).ready(function () {
var title = jQuery(this).attr('title');
if (title === "Amazon Mechanical Turk - HITs Available to You"){
setTimeout(function(){
location.reload();
}, 2000);
}
});
if ($('input[name="userCaptchaResponse"]').length < 1) { //if no Captcha is present
if ($("p:contains(Phrase)").length){ //sanity check
$('input[name="Phrase"]').focus(); //focuses first textbox
}
}