01/27 - Super Rumble Sunday!

Status
Not open for further replies.

Sondi

Goddess of soup
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
9,018
Reaction score
33,771
Points
1,213
Age
34
Gender
Female
Title: Survey experiment (about 5 minutes). | Accept
Requester: Jan K. Woike [AG6JFKMXX57AR] Contact
TV: [Hrly=$8.34] [Pay=3.40] [Fast=5.00] [Comm=null] [Rej=0] [ToS=0] [Blk=0]
TO: [Pay=3.11] [Fast=4.27] [Comm=3.80] [Fair=4.28] [Reviews=50] [ToS=0]
TO2: No Reviews
Reward: 0.50
Duration: 1:30:00
Available: 1
Description: A series of questions related to problem solving. Can be taken only once. Bonus (on average 14 cents).
Qualifications: RetakePreventionP DoesNotExist ; RetakePreventionB DoesNotExist ; HIT approval rate (%) GreaterThanOrEqualTo 96; Location EqualTo US
[tr][td]
HIT exported from Mturk Suite v2.4.6
[/td][/tr]
[tr][td]
Time: 03:49 Hourly: $7.85 very annoying[/td][/tr]
 

nmelssx

Well-Known Member
Joined
Feb 8, 2018
Messages
1,192
Reaction score
1,463
Points
413
Age
30
Gender
Male
They are. That is why GTR @GTR put
Code:
// @include      *crowdcomputingsystems*
Jesus Christ.

That's all you need? I spent weeks trying to figure out how to select radio buttons inside iframes, and when I finally did figured out how I still kept getting cross-origin errors.
 
  • Like
Reactions: SarahAshlee90

Sondi

Goddess of soup
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
9,018
Reaction score
33,771
Points
1,213
Age
34
Gender
Female
Title: Trust in Work Interactions | Accept
Requester: Afsar Yegin [A3CWNTGH0LYTP6] Contact
TV: No Reviews
TO: No Reviews
TO2: No Reviews
Reward: 0.50
Duration: 1:00:00
Available: 1
Description: Respond to questions about hypothetical incidents at work
Qualifications: Masters Exists ; Location EqualTo US
[tr][td]
HIT exported from Mturk Suite v2.4.6
[/td][/tr]
[tr][td]
Time: 05:36 Hourly: $5.35 very very annoying[/td][/tr]
 
  • Like
Reactions: Aerona and savvy

SarahAshlee90

Well-Known Member
Crowd Pleaser
Joined
Mar 4, 2016
Messages
2,781
Reaction score
5,294
Points
963
Age
33
Gender
Female
Jesus Christ.

That's all you need? I spent weeks trying to figure out how to select radio buttons inside iframes, and when I finally did figured out how I still kept getting cross-origin errors.
Those cross-site errors are really annoying. I've wasted many hours on them. If you take this line of code
Code:
// @include     /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/
(credit Kadauchi @Kadauchi for writing it) and put it in the top of your script it will tell your script to run in the frame for about 90% of hits.
 

Azazael

Well-Known Member
Joined
Jan 12, 2016
Messages
3,753
Reaction score
4,991
Points
513
Age
44
Gender
Male
Title: Memory and Threat: Psychological questionnaires and tasks | Accept
Requester: Thomas Edward Gladwin [A13IGYMR7ZMJ99] Contact
TO: No Reviews
TO2: [Hrly=9.06] [Pen=0.17 days] [Res=null] [Rec=null] [Rej=0] [ToS=0] [Brk=0]
Reward: 5.00
Duration: 2:00:00
Available: 1
Description: Help with a scientific study (30 - 40 min) about emotion, cognition and mental health.
Qualifications: Masters Exists ; Adult Content Qualification EqualTo 1
[tr][td]
HIT exported from Mturk Suite v2.4.6
[/td][/tr]
[tr][td][/td][/tr]

wasnt too bad, around 30m just a bit boring
just approved
 

GTR

Well-Known Member
Joined
Feb 10, 2016
Messages
10,278
Reaction score
22,985
Points
1,313
Gender
Male
Oh, someone is asking for a script for the Vickys over at TH, anyone is welcome to share it there...
 

nmelssx

Well-Known Member
Joined
Feb 8, 2018
Messages
1,192
Reaction score
1,463
Points
413
Age
30
Gender
Male
Those cross-site errors are really annoying. I've wasted many hours on them. If you take this line of code
Code:
// @include     /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/
(credit Kadauchi @Kadauchi for writing it) and put it in the top of your script it will tell your script to run in the frame for about 90% of hits.
Ok so as an example, I'm trying to auto select the radio button called "I searched and could not find the brand URL and contact email address for the given brand" with a value of "Yes" for this HIT: https://worker.mturk.com/projects/3...VHNO1VE7P9IVCKTLWM0KOLJ7HDZM&auto_accept=true with the code below. But it's returning some errors. What am I doing wrong? GTR @GTR

// ==UserScript==
// Name @Name VICKY UNIQUE
// @version 1.0
// @description Select product images that are UNIQUE
// @author GTR
// @match *^https://worker.mturk.com/projects/33FLRCV02OOQ3HH01GLYBAOK9RHROG*
// @include *crowdcomputingsystems*
// @require https://code.jquery.com/jquery-3.0.0-alpha1.min.js
// ==/UserScript==

$('input[value="Yes"]').click();
 
Last edited:

SarahAshlee90

Well-Known Member
Crowd Pleaser
Joined
Mar 4, 2016
Messages
2,781
Reaction score
5,294
Points
963
Age
33
Gender
Female
Ok so as an example, I'm trying to auto select the radio button called "I searched and could not find the brand URL and contact email address for the given brand" with a value of "Yes" for this HIT: https://worker.mturk.com/projects/3...VHNO1VE7P9IVCKTLWM0KOLJ7HDZM&auto_accept=true with the code below. But it's returning some errors. What am I doing wrong?

// ==UserScript==
// Name @Name VICKY UNIQUE
// @version 1.0
// @description Select product images that are UNIQUE
// @author GTR
// @match *^https://worker.mturk.com/projects/33FLRCV02OOQ3HH01GLYBAOK9RHROG*
// @include *crowdcomputingsystems*
// @require https://code.jquery.com/jquery-3.0.0-alpha1.min.js
// ==/UserScript==

$('input[value="Yes"]').click();
For security reasons scripts can only run on a website with the same domain name. If you make a script for https://www.mturkcrowd.com you are going to have problems if you try to run it on https://worker.mturk.com. Javascript, which is the programming language we are writing our code in does not allow cross-site scripting. When you put the line // @include into the Tampermonkey extension, you are telling it what page you want it to run on.
If you were to put
Code:
// @include https://www.mturkcrowd.com*
it would run on this site. If you were to put
Code:
// @include https://www.google.com/*
it would run on google. If you look at kadauchi's dashboard script you will see
Code:
// @include      https://worker.mturk.com/dashboard*
This will run on the outer Mturk page, not the inner iframe. It helps to think of an iframe as a website within a website. You can either run your code on the outer website, like kadauchi did, or on the inner iframe. GTR ran that vicky code on any frame that has the word crowdcomputingsystems. If you right click in the frame and go to inspect element you can look for the iframe. The source URL will be listed when you get to the iframe element. It looks like you should have ran your code on https://s3.amazonaws.com/*
 
Last edited:

nmelssx

Well-Known Member
Joined
Feb 8, 2018
Messages
1,192
Reaction score
1,463
Points
413
Age
30
Gender
Male
For security reasons scripts can only run on a website with the same domain name. If you make a script for https://www.mturkcrowd.com you are going to have problems if you try to run it on https://worker.mturk.com. Javascript, which is the programming language we are writing our code in does not allow cross-site scripting. When you put the line // @include into the Tampermonkey extension, you are telling it what page you want it to run on.
If you were to put
Code:
// @include https://www.mturkcrowd.com*
it would run on this site. If you were to put
Code:
// @include https://www.google.com/*
it would run on google. If you look at kadauchi's dashboard script you will see
Code:
// @include      https://worker.mturk.com/dashboard*
This will run on the outer Mturk page, not the inner iframe. It helps to think of an iframe as a website within a website. You can either run your code on the outer website, like kadauchi did, or on the inner iframe. GTR ran that vicky code on any frame that has the word crowdcomputingsystems. If you right click in the frame and go to inspect element you can look for the iframe. The source URL will be listed when you get to the iframe element. It looks like you should have ran your code on https://s3.amazonaws.com/*
Ah. I see. So for all other HITs within an iframe all I have to use is // @include /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/ instead, or whatever their links go to in the iframe? I tried it and it works now. Thanks so much for explaining. I literally spend so long trying to figure out how to do this and asked so many questions on stackoverflow but gotten no useful answers. So glad I found you. Thanks so much!
 
Last edited:
Status
Not open for further replies.