08/02 - TaleSpin Tuesday!

Have you voted? http://goo.gl/rh8Bjc


  • Total voters
    93
  • Poll closed .
Status
Not open for further replies.
D

Deleted member 526

Guest
does anyone know why my script won't work on keydown? it works without having it wait until keydown.

frame source url is this -
view-source:https://www.mturkcontent.com/dynamic/hit?assignmentId=37Z929RLG97H6RQ4A07V1TZY4WBSTA&hitId=336OE47KI1JM3GD89YC9BGUGWLOWVX&turkSubmitTo=https://www.mturk.com

this doesn't work
Code:
// ==UserScript==
// @name     Mark Dredze - Tweets about the Flu Vaccine
// @author  turker
// @namespace turker's stuff
// @version      0.1
// @grant        GM_log
// @require     http://code.jquery.com/jquery-latest.min.js
// @include        *
// ==/UserScript==
var overall = document.getElementsByName("mturk_form")[0];
var howMany = ((overall.getElementsByTagName("input").length)/13) - 1;
document.getElementsByTagName("body")[0].onkeydown = function(event) {
if (event.keyCode == 49) {
for (i=0;i<howMany;i++) {
overall.getElementsByTagName("input")[(i*13)+1].click();
}
}
};
not sure if this troubleshooting gives any clues. this works -
Code:
// ==UserScript==
// @name     Mark Dredze - Tweets about the Flu Vaccine
// @author  turker
// @namespace turker's stuff
// @version      0.1
// @grant        GM_log
// @require     http://code.jquery.com/jquery-latest.min.js
// @include        *
// ==/UserScript==
document.getElementsByTagName("body")[0].onkeydown = function(event) {
if (event.keyCode == 49) {
alert("testing - 1 key");
}
};
var overall = document.getElementsByName("mturk_form")[0];
var howMany = ((overall.getElementsByTagName("input").length)/13) - 1;
for (i=0;i<howMany;i++) {
overall.getElementsByTagName("input")[(i*13)+1].click();
}
 
Last edited by a moderator:
Joined
Apr 28, 2016
Messages
102
Reaction score
103
Points
293
Age
36
Gender
Female
Title: 20-30 minute study on Spirituality, Positive Psychology and Health | PANDA
Requester: Jameson Hirsch [A1QMRMM6B70AVM] (TO)
TO Ratings:
★★★★★ 0.00 Communicativity
★★★★★ 2.83 Generosity
★★★★★ 5.00 Fairness
★★★★ 4.86 Promptness
Number of Reviews: 19 | TOS Flags: 0
Submit a new TO review
Description: Complete survey on aspects of spirituality/religiousness, positive psychology, and health. You do not have to be religious or spiritual to participate. Compensation will occur only if the entire survey is completed.
Time: 60 minutes
HITs Available: 1
Reward: $2.00
Qualifications: Total approved HITs is not less than 5000;HIT approval rate (%) is not less than 98;Location is US
 

Sondi

Goddess of soup
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
9,018
Reaction score
33,771
Points
1,213
Age
35
Gender
Female
Title: 20-30 minute study on Spirituality, Positive Psychology and Health | PANDA
Requester: Jameson Hirsch [A1QMRMM6B70AVM] (TO)
TO Ratings:
★★★★★ 0.00 Communicativity
★★★★★ 2.83 Generosity
★★★★★ 5.00 Fairness
★★★★ 4.86 Promptness
Number of Reviews: 19 | TOS Flags: 0
Submit a new TO review
Description: Complete survey on aspects of spirituality/religiousness, positive psychology, and health. You do not have to be religious or spiritual to participate. Compensation will occur only if the entire survey is completed.
Time: 60 minutes
HITs Available: 1
Reward: $2.00
Qualifications: Total approved HITs is not less than 5000;HIT approval rate (%) is not less than 98;Location is US
Started this, but throwing if back after reports of 40mins on TO
 
Joined
Apr 28, 2016
Messages
102
Reaction score
103
Points
293
Age
36
Gender
Female
Started this, but throwing if back after reports of 40mins on TO
So far it's not so hard. I'm switching back to it while doing others. When you're an atheist it's pretty easy to just keep putting "No" or "Not Applicable"
 
  • Like
Reactions: Benetnasch

Sondi

Goddess of soup
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
9,018
Reaction score
33,771
Points
1,213
Age
35
Gender
Female
Title: Answer a survey about consumer behavior | PANDA
Requester: Diego Costa [A9C0Z3LSY5TEK] (TO)
TO Ratings:
★★★★★ 5.00 Communicativity
★★★★★ 3.56 Generosity
★★★★ 4.00 Fairness
★★★★★ 5.00 Promptness
Number of Reviews: 11 | TOS Flags: 0
Submit a new TO review
Description: Give us your opinion about consumer behavior
Time: 30 minutes
HITs Available: 1
Reward: $0.30
Qualifications: HIT approval rate (%) is greater than 0;HIT approval rate (%) is not less than 90;Location is US

Title: Short Cognitive Science Experiment | PANDA
Requester: Cognitive Science [A1XTTTKF4J275Q] (TO)
TO Ratings:
★★★★★ 0.00 Communicativity
★★★★★ 5.00 Generosity
★★★★★ 5.00 Fairness
★★★★★ 5.00 Promptness
Number of Reviews: 1 | TOS Flags: 0
Submit a new TO review
Description: This HIT is a short cognitive science experiment. You will learn some interesting facts about yourself in this experiment!
Time: 30 minutes
HITs Available: 155
Reward: $0.50
Qualifications: Location is US
 

MindNumbing

Well-Known Member
Contributor
Joined
Jan 12, 2016
Messages
5,971
Reaction score
10,565
Points
1,013
Gender
Female
Title: Short Cognitive Science Experiment | PANDA
Requester: Cognitive Science [A1XTTTKF4J275Q] (TO)
TO Ratings:
★★★★★ 0.00 Communicativity
★★★★★ 5.00 Generosity
★★★★★ 5.00 Fairness
★★★★★ 5.00 Promptness
Number of Reviews: 1 | TOS Flags: 0
Submit a new TO review
Description: This HIT is a short cognitive science experiment. You will learn some interesting facts about yourself in this experiment!
Time: 30 minutes
HITs Available: 68
Reward: $0.50
Qualifications: Location is US
2:30
 
Status
Not open for further replies.