- Joined
- Jul 25, 2016
- Messages
- 1,877
- Reaction score
- 1,515
- Points
- 363
- Age
- 28
- Gender
- Male
What is the qual on those? I don't see them in my hit finder.Annabel's poppin'
edit: it is 10k hits not there yet.
What is the qual on those? I don't see them in my hit finder.Annabel's poppin'
Seems to work fine for me, you just need to change the 0 to something that changes with the counter, e.g.,I rewrote my script from scratch. does anyone know why this doesn't work? it should answer the first part of question 1 on pressing key 1,2,3, or 4. it works other than it doesn't click the bubble. clicking the bubble does work if I do that outside of the onkeydown part. like this -Code:// ==UserScript== // @name Aristo MTurk - Rank science information // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author turker // @grant none // @include https://www.mturkcontent.com/* // @require http://code.jquery.com/jquery-latest.min.js // ==/UserScript== var counter = 0; var evenNum = []; evenNum[0] = 0; evenNum[1] = 2; evenNum[2] = 4; evenNum[3] = 6; evenNum[4] = 8; evenNum[5] = 10; var oddNum = []; oddNum[0] = 1; oddNum[1] = 3; oddNum[2] = 5; oddNum[3] = 7; oddNum[4] = 9; oddNum[5] = 11; var mostOrLeast = 0; document.getElementsByTagName("body")[0].onkeydown = function(event) { for (a=0;a<4;a++) { if (event.keyCode == a+49) { for (i=0;i<evenNum.length;i++) { if (counter == evenNum[i]) { mostOrLeast = a; } else if (counter == oddNum[i]) { mostOrLeast = a+4; } } document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true; //document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true; counter = counter + 1; } } };
Code:// ==UserScript== // @name Aristo MTurk - Rank science information // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author turker // @grant none // @include https://www.mturkcontent.com/* // @require http://code.jquery.com/jquery-latest.min.js // ==/UserScript== var counter = 0; var evenNum = []; evenNum[0] = 0; evenNum[1] = 2; evenNum[2] = 4; evenNum[3] = 6; evenNum[4] = 8; evenNum[5] = 10; var oddNum = []; oddNum[0] = 1; oddNum[1] = 3; oddNum[2] = 5; oddNum[3] = 7; oddNum[4] = 9; oddNum[5] = 11; var mostOrLeast = 0; document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[0].checked = true; document.getElementsByTagName("body")[0].onkeydown = function(event) { for (a=0;a<4;a++) { if (event.keyCode == a+49) { for (i=0;i<evenNum.length;i++) { if (counter == evenNum[i]) { mostOrLeast = a; } else if (counter == oddNum[i]) { mostOrLeast = a+4; } } //document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true; //document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true; counter = counter + 1; } } };
// ==UserScript==
// @name Aristo MTurk - Rank science information
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author turker
// @grant none
// @include https://www.mturkcontent.com/*
// @require http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==
var counter = 0;
var evenNum = [];
evenNum[0] = 0;
evenNum[1] = 2;
evenNum[2] = 4;
evenNum[3] = 6;
evenNum[4] = 8;
evenNum[5] = 10;
var oddNum = [];
oddNum[0] = 1;
oddNum[1] = 3;
oddNum[2] = 5;
oddNum[3] = 7;
oddNum[4] = 9;
oddNum[5] = 11;
var mostOrLeast = 0;
document.getElementsByTagName("body")[0].onkeydown = function(event) {
for (a=0;a<4;a++) {
if (event.keyCode == a+49) {
for (i=0;i<evenNum.length;i++) {
if (counter == evenNum[i]) {
mostOrLeast = a;
}
else if (counter == oddNum[i]) {
mostOrLeast = a+4;
}
}
document.getElementsByClassName("diff-pair-table")[Math.floor(counter/2)].getElementsByTagName("input")[mostOrLeast].checked = true;
//document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true;
counter = counter + 1;
}
}
};
TY I was going to figure that out next. you saved me some time! but even this doesn't work. nothing at all works on keydown.Seems to work fine for me, you just need to change the 0 to something that changes with the counter, e.g.,
document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true;
should be
document.getElementsByClassName("diff-pair-table")[Math.floor(counter/2)].getElementsByTagName("input")[mostOrLeast].checked = true;
so that it actually moves to the next table
// ==UserScript==
// @name Aristo MTurk - Rank science information
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author turker
// @grant none
// @include https://www.mturkcontent.com/*
// @require http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==
if ( $("body:contains('Sentence pattern')").length ) {
var counter = 0;
var evenNum = [];
evenNum[0] = 0;
evenNum[1] = 2;
evenNum[2] = 4;
evenNum[3] = 6;
evenNum[4] = 8;
evenNum[5] = 10;
var oddNum = [];
oddNum[0] = 1;
oddNum[1] = 3;
oddNum[2] = 5;
oddNum[3] = 7;
oddNum[4] = 9;
oddNum[5] = 11;
var mostOrLeast = 0;
document.getElementsByTagName("body")[0].onkeydown = function(event) {
alert("y");
};
}
Works fine for me. You have to focus the frame (by clicking in it, or using Scroll to Workspace, or something)TY I was going to figure that out next. you saved me some time! but even this doesn't work. nothing at all works on keydown.
Code:// ==UserScript== // @name Aristo MTurk - Rank science information // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author turker // @grant none // @include https://www.mturkcontent.com/* // @require http://code.jquery.com/jquery-latest.min.js // ==/UserScript== if ( $("body:contains('Sentence pattern')").length ) { var counter = 0; var evenNum = []; evenNum[0] = 0; evenNum[1] = 2; evenNum[2] = 4; evenNum[3] = 6; evenNum[4] = 8; evenNum[5] = 10; var oddNum = []; oddNum[0] = 1; oddNum[1] = 3; oddNum[2] = 5; oddNum[3] = 7; oddNum[4] = 9; oddNum[5] = 11; var mostOrLeast = 0; document.getElementsByTagName("body")[0].onkeydown = function(event) { alert("y"); }; }
oh it was the focus!! Thanks! now it works!Works fine for me. You have to focus the frame (by clicking in it, or using Scroll to Workspace, or something)
Where's the red panda? I Liked it anyway.Seems to work fine for me, you just need to change the 0 to something that changes with the counter, e.g.,
document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true;
should be
document.getElementsByClassName("diff-pair-table")[Math.floor(counter/2)].getElementsByTagName("input")[mostOrLeast].checked = true;
so that it actually moves to the next table
(Although I'd just use AHK for this probably)Code:// ==UserScript== // @name Aristo MTurk - Rank science information // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author turker // @grant none // @include https://www.mturkcontent.com/* // @require http://code.jquery.com/jquery-latest.min.js // ==/UserScript== var counter = 0; var evenNum = []; evenNum[0] = 0; evenNum[1] = 2; evenNum[2] = 4; evenNum[3] = 6; evenNum[4] = 8; evenNum[5] = 10; var oddNum = []; oddNum[0] = 1; oddNum[1] = 3; oddNum[2] = 5; oddNum[3] = 7; oddNum[4] = 9; oddNum[5] = 11; var mostOrLeast = 0; document.getElementsByTagName("body")[0].onkeydown = function(event) { for (a=0;a<4;a++) { if (event.keyCode == a+49) { for (i=0;i<evenNum.length;i++) { if (counter == evenNum[i]) { mostOrLeast = a; } else if (counter == oddNum[i]) { mostOrLeast = a+4; } } document.getElementsByClassName("diff-pair-table")[Math.floor(counter/2)].getElementsByTagName("input")[mostOrLeast].checked = true; //document.getElementsByClassName("diff-pair-table")[0].getElementsByTagName("input")[mostOrLeast].checked = true; counter = counter + 1; } } };
Where's the red panda? I Liked it anyway.
Does that deal with some emotional red panda trauma? Because the cover makes it look so.
There's a lot of emotional trauma but not nearly enough red panda.Does that deal with some emotional red panda trauma? Because the cover makes it look so.
Indeed. I just submitted. My eyes hurt.That $10 HIT was a doozy. Happy to have made over goal tho. Good luck late night crew and good night!
this one?@YAHU [that thread] is a mess. Good job.