D
Deleted member 481
Guest
Which script are you using?
Code:
// ==UserScript==
// @name A9 Image Survey Clothes
// @namespace http://tampermonkey.net/
// @version 1.0.2
// @description Might Do Stuff
// @author THFYM
// @include https://s3.amazonaws.com/mturk_bulk/*
// @include https://www.mturk.com/mturk/previewandaccept?prevRequester=Amazon+Requester+Inc.+A9+Data+Validation*
// @require http://code.jquery.com/jquery-2.1.0.min.js
// @grant GM_log
// ==/UserScript==
// Numpad 1-8 for inputs. Will be listed in HIT.
// Enter for Submit.
// Auto-refresh on server glitch
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 ($("h4:contains(Picture of a picture is acceptable. Mannequin is acceptable.)").length){
$(".btn:contains('No')").click();
$(".form-group").css('width', '200');
$(".buttonsWithMargins").css('height', '20');
window.focus();
$("h4").eq(0).hide();
$("h4").eq(1).text("1 - Dress");
$("h4").eq(2).text("2 - Woman's Top");
$("h4").eq(3).text("3 - Woman's Bottoms");
$("h4").eq(4).text("4 - Man's Top");
$("h4").eq(5).text("5 - Man's Bottoms");
$("h4").eq(6).text("6 - Watch");
$("h4").eq(7).text("7 - Shoe");
$("h4").eq(8).text("8 - Handbag");
var dress = 0;
var womTop = 0;
var womBot = 0;
var manTop = 0;
var manBot = 0;
var watch = 0;
var shoe = 0;
var bag = 0;
$(document).keydown(function(e) {
if (e.keyCode === 13) { // enter to submit
$("input[value='Submit']").click();
}
if (e.keyCode === 97) { // Numpad 1
if (dress === 0) {
$("button[data-reactid='.0.0.1.2:$q1dress_m604.2.$0']").click();
dress ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q1dress_m604.2.$1']").click();
dress --;
}
}
if (e.keyCode === 98) { // Numpad 2
if (womTop === 0) {
$("button[data-reactid='.0.0.1.2:$q2womens_top_m2662.2.$0']").click();
womTop ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q2womens_top_m2662.2.$1']").click();
womTop --;
}
}
if (e.keyCode === 99) { // Numpad 3
if (womBot === 0) {
$("button[data-reactid='.0.0.1.2:$q3womens_bottoms_m2663.2.$0']").click();
womBot ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q3womens_bottoms_m2663.2.$1']").click();
womBot --;
}
}
if (e.keyCode === 100) { // Numpad 4
if (manTop === 0) {
$("button[data-reactid='.0.0.1.2:$q4mens_top_m2664.2.$0']").click();
manTop ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q4mens_top_m2664.2.$1']").click();
manTop --;
}
}
if (e.keyCode === 101) { // Numpad 5
if (manBot === 0) {
$("button[data-reactid='.0.0.1.2:$q5mens_bottoms_m2665.2.$0']").click();
manBot ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q5mens_bottoms_m2665.2.$1']").click();
manBot --;
}
}
if (e.keyCode === 102) { // Numpad 6
if (watch === 0) {
$("button[data-reactid='.0.0.1.2:$q6watch_m1597.2.$0']").click();
watch ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q6watch_m1597.2.$1']").click();
watch --;
}
}
if (e.keyCode === 103) { // Numpad 7
if (shoe === 0) {
$("button[data-reactid='.0.0.1.2:$q7shoe_m1530.2.$0']").click();
shoe ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q7shoe_m1530.2.$1']").click();
shoe --;
}
}
if (e.keyCode === 104) { // Numpad 8
if (bag === 0) {
$("button[data-reactid='.0.0.1.2:$q8handbag_m786.2.$0']").click();
bag ++;
}
else {
$("button[data-reactid='.0.0.1.2:$q8handbag_m786.2.$1']").click();
bag --;
}
}
});
}