11/09 - TREX Thursday!

Discussion in 'Daily mTurk HITs Threads' started by Girl Polar Bear, Nov 9, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    Well it was also a very easy change to make, so hopefully now it's up to $2/year:
    Code:
    // ==UserScript==
    // @name Given a caption, choose the corresponding image
    // @namespace ,
    // @version 1.1
    // @description .
    // @author Cuyler Stuwe (,)
    // @include *
    // @grant GM_info
    // ==/UserScript==
    const DEBUG_RUN_IN_TOP_FRAME = false;
    const DEBUG_RUN_IN_IFRAME_ONLY_BUT_DONT_REQUIRE_MTURK_REFERRER = false;
    const DEBUG_ALWAYS_PASS_SANITY_CHECK = false;
    const DEBUG_PAINT_TRIGGERED_FRAMES_RED = false;
    const SANITY_CHECK_TEXT_STRING = "Given a caption, choose the image that you think it corresponds to.";
    function isInMturkIframe() {
    if(DEBUG_RUN_IN_TOP_FRAME) {return true;}
    else if(DEBUG_RUN_IN_IFRAME_ONLY_BUT_DONT_REQUIRE_MTURK_REFERRER) {return (window !== window.top);}
    return ( window !== window.top && (document.referrer.includes("mturk.com/mturk/preview") || document.referrer.includes("mturk.com/mturk/accept") || document.referrer.includes("mturk.com/mturk/continue") || document.referrer.includes("mturk.com/mturk/return") || document.referrer.includes("mturk.com/mturk/previewandaccept") || document.referrer.includes("worker.mturk.com/projects/")));
    }
    if (!isInMturkIframe()) {return;}
    function passSanityCheck() {
    if(DEBUG_ALWAYS_PASS_SANITY_CHECK) {return true;}
    if(SANITY_CHECK_TEXT_STRING && SANITY_CHECK_TEXT_STRING.length > 0) {
    return document.body.innerHTML.includes(SANITY_CHECK_TEXT_STRING);
    }
    }
    function runOnStart() {
    if(DEBUG_PAINT_TRIGGERED_FRAMES_RED) {
    document.body.style.backgroundColor = "red";
    }
    // CODE THAT RUNS AS SOON AS HIT IS LOADED GOES HERE
    }
    function keyListener(event) {
    if(event.type === 'keydown') {
    // SCRIPT KEYDOWN CODE GOES HERE
    }
    else if(event.type === 'keyup') {
    // SCRIPT KEYUP CODE GOES HERE
    }
    }
    function clickListener(event) {
    if(event.target.type && event.target.type === "radio") {
    let counterValue = Number(document.querySelector("span.counter-top").innerText.trim());
    if(counterValue < 15) {
    document.querySelector("#next-btn").click();
    }
    else {
    document.querySelector("#submit-btn").click();
    }
    }
    }
    (function main() {
    if(!passSanityCheck()) {
    console.log(`FAILED SANITY CHECK: ${GM_info.script.name}`);
    return;
    }
    else {
    console.log(`PASSED SANITY CHECK: ${GM_info.script.name}`);
    }
    runOnStart();
    document.addEventListener('keydown', keyListener);
    document.addEventListener('keyup', keyListener);
    document.addEventListener('click', clickListener);
    })();
     
    • Nom Nom Nom! Nom Nom Nom! x 1
    • LOL LOL x 1
  2. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    @Ana*
    @LLL

    This looks like actual work
     
    • Nom Nom Nom! Nom Nom Nom! x 1
  3. BarnCat

    BarnCat Active Turker

    Messages:
    613
    Gender:
    Male
    Ratings:
    +916
    OW is just shrunk to half size L to R and put on top of the forum window of the right side monitor.
     
  4. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    Can't tell what he's asking for sure, but I strongly doubt it.
     
  5. ChrisTurk

    ChrisTurk Administrator

    Messages:
    56,724
    Ratings:
    +163,219
    If you mean the GID display you have to edit OW's code.. I've seen @LLL talk about it, idk if/where instructions are for that :/
     
    • Love Love x 1
  6. Tecnique

    Tecnique Survey Slinger

    Messages:
    6,269
    Gender:
    Male
    Ratings:
    +8,981
    Pretty sure hes asking about how to get the GID into the detail section
     
    • Like Like x 1
    • Today I Learned Today I Learned x 1
  7. smiley edna

    smiley edna Well-Known Turker

    Messages:
    1,612
    Gender:
    Female
    Ratings:
    +2,743
    I set my OW to pop up a separate window, then I can do stuff from there
     
    • Like Like x 1
  8. SleepComa

    SleepComa Survey Slinger

    Messages:
    3,622
    Gender:
    Male
    Ratings:
    +3,658
  9. angel

    angel Survey Slinger

    Messages:
    15,335
    Gender:
    Female
    Ratings:
    +28,737
    they were talking about dragging and dropping stuff into PC
     
  10. ThisPoorGuy

    ThisPoorGuy ThisPoorMod

    Messages:
    39,486
    Gender:
    Male
    Ratings:
    +81,571
    I love when they stop the music pause and then tell you that you're still on hold.
     
    • LOL LOL x 2
  11. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    @Ethraiel should just include that edit into the next version of OW imo
     
    • Like Like x 1
  12. ChrisTurk

    ChrisTurk Administrator

    Messages:
    56,724
    Ratings:
    +163,219
    I think someone is talking about your drag/drop from OW to PC script thing?

    The amount of script Frankensteining going on right now is hilarious.
     
    • LOL LOL x 5
  13. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    I see why all the GIFs are NSFW now.

    You're assigning with = instead of comparing with == or ===.

    Instead of checking whether the GIF is NSFW, you're making it NSFW and then checking to see whether it exists.
     
    • LOL LOL x 1
  14. eyeofodin

    eyeofodin Well-Known Turker

    Messages:
    2,772
    Gender:
    Male
    Ratings:
    +5,608
    <br><small><b>GID -</b></small><small class ="offSet">${HO.GID} </small>

    You place this part of the code under this part

    "

    <div class="feedBox shadowIn">
    <small><b>From watcher-</b></small><small class ="offSet">${HO.userName}</small>
    <br><small><b>Qualified-</b></small> <small class ="offSet">${HO.Qualified}</small>
    <br><small><b>Number of HITs-</b></small><small class ="offSet">${HO.hitAmount}</small>
    <br><small><b>Reward-</b></small><small class ="offSet">$${HO.Pay.toFixed(2)}</small>
    <br><small><b>Duration-</b></small><small class ="offSet">${timeExpires} </small>

    "

    It is around line 150-160
     
  15. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    Title: Product to Interest Audit (single yes/no per HIT) | PANDA
    Worker: Preview | Accept | Requester
    Requester: Amazon Requester Inc. - Customer Interests [A225CX8SZ86ADP] (Contact)
    TO 1: [Pay: 3.48] [Fast: 4.72] [Comm: 0.00] [Fair: 5.00] [Reviews: 33] [ToS: 0]
    TO 2:
    [Rate: $5.54/hr] [Pen: 0.19 days] [Res: -- of 0] [Rec: 100% of 2] [Rej: 0] [ToS: 0] [Brk: 0]
    Reward:
    $0.01
    Duration: 5 minutes
    Available: 2
    Description: Confirm labeling of products with interest (e.g. 'batman', 'sailing' etc). Single yes/no per HIT, average estimated time < 5 seconds.
    Requirements: Total approved HITs is not less than 1000; HIT approval rate (%) is not less than 98; Location is one of: US
    HIT exported from Mturk Suite v1.25.8
    lol 2
     
    • Nom Nom Nom! Nom Nom Nom! x 6
    • 5/5 Pay 5/5 Pay x 1
  16. angel

    angel Survey Slinger

    Messages:
    15,335
    Gender:
    Female
    Ratings:
    +28,737
    well you might have forgotten or more likely fallen asleep
    [​IMG]
     
  17. lefty

    lefty Survey Slinger

    Messages:
    18,930
    Gender:
    Female
    Ratings:
    +49,005
  18. smiley edna

    smiley edna Well-Known Turker

    Messages:
    1,612
    Gender:
    Female
    Ratings:
    +2,743
    LIES!
     
  19. Tecnique

    Tecnique Survey Slinger

    Messages:
    6,269
    Gender:
    Male
    Ratings:
    +8,981
    • Love Love x 1
  20. knottypiper

    knottypiper Survey Slinger

    Messages:
    5,776
    Gender:
    Female
    Ratings:
    +12,728
    These RVDs are forcing Alexa to talk dirty to me...
     
    • LOL LOL x 1
Thread Status:
Not open for further replies.