Created
August 8, 2016 02:23
-
-
Save cr4m3r/1133ab4241d701a36573c35d43d6cd5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Masters Qual Auto Requester | |
// @version 1.0 | |
// @description Script works on masters qual screen | |
// @author slothbear | |
// @icon http://i.imgur.com/yptTSAh.gif | |
// @match https://www.mturk.com/mturk/requestqualification?qualificationId=2F1QJWKUDD8XADTFD2Q0G6UTO95ALH | |
// @match https://www.mturk.com/mturk/submitqualificationrequest | |
// @require https://code.jquery.com/jquery-2.1.4.min.js | |
// ==/UserScript== | |
// Search the qualifications for 'Amazon Masters' and the masters qual will be there. | |
// Click on the Masters qual, and then request it. | |
// Then let the script do it's work until you're a master! | |
(function() { | |
'use strict'; | |
var timer = 60000; // how often to submit requst. | |
$(document).ready(function (){ | |
if (window.location.href === "https://www.mturk.com/mturk/submitqualificationrequest"){ | |
setTimeout(window.open("https://www.mturk.com/mturk/requestqualification?qualificationId=2F1QJWKUDD8XADTFD2Q0G6UTO95ALH","_self"), 2000); // wait 2 seconds to not clog the tubes | |
} else { | |
setTimeout(clickSubmit, timer); | |
} | |
}); | |
function clickSubmit(){ | |
$("input[name='submit']").click(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment