04/12 - Workable Wednesday!

Discussion in 'Daily mTurk HITs Threads' started by TissueHime, Apr 12, 2017.

Thread Status:
Not open for further replies.
  1. Eisenpower

    Eisenpower Survey Slinger

    Messages:
    4,873
    Gender:
    Male
    Ratings:
    +11,914
    • LOL LOL x 1
  2. SquigglyButt

    SquigglyButt Survey Slinger

    Messages:
    5,440
    Gender:
    Male
    Ratings:
    +5,961
    It will actually work for anything you have (if you know how to expand the buttons like whosiwhatsit did).
    So if there's 3 questions with 3 choices each, 1-3 is for first question, 4-6 for second and 7-9 for third
     
  3. Ten

    Ten Survey Slinger

    Messages:
    5,518
    Gender:
    Male
    Ratings:
    +8,149
    What? I am clearly hardcore.
     
    • LOL LOL x 1
  4. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
  5. NBadger

    NBadger Mod of Cat Gifs

    Messages:
    14,386
    Gender:
    Female
    Ratings:
    +40,289
    [​IMG]

    I return :D

    So now that I'm here

    Bring on the pinssssssssss
     
    • Like Like x 2
  6. SquigglyButt

    SquigglyButt Survey Slinger

    Messages:
    5,440
    Gender:
    Male
    Ratings:
    +5,961
  7. leafs4_cup

    leafs4_cup Ugly Mug

    Messages:
    10,421
    Gender:
    Male
    Ratings:
    +31,313
    • Your Spellcheck Is As Broke As a Turker Working for Brelig Your Spellcheck Is As Broke As a Turker Working for Brelig x 1
  8. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    Underclock your brain
     
    • Like Like x 1
    • LOL LOL x 1
  9. Fio

    Fio Survey Slinger

    Messages:
    2,984
    Ratings:
    +5,413
    and if you ask @jdzane for her franken-version of it, you can get up to 12 choices
     
  10. Eisenpower

    Eisenpower Survey Slinger

    Messages:
    4,873
    Gender:
    Male
    Ratings:
    +11,914
    I didn't want the install and learning time to end up with me missing the HITs right now
     
  11. leafs4_cup

    leafs4_cup Ugly Mug

    Messages:
    10,421
    Gender:
    Male
    Ratings:
    +31,313
    It's up to 2500 now, but they are going to sit there a long time if all of the capped people can't touch them.
     
  12. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    That still only works for one set of questions

    Code:
    // ==UserScript==
    // @name         Mturk Radio Keybinds - Expanded
    // @namespace    https://gist.github.com/Kadauchi
    // @version      2.1.1
    // @description  Keybinds to select radios
    // @author       Kadauchi, butchered for Keith S. Anderson hits by jdzane
    // @icon         http://i.imgur.com/oGRQwPN.png
    // @include      /^https://(www\.mturkcontent|s3\.amazonaws)\.com/
    // @include      /^https://www.soniabishoplab.com/*
    // @include      /^https://www.princetonsurvey.az1.qualtrics.com/*
    // @grant        GM_getValue
    // @grant        GM_setValue
    // ==/UserScript==
    
    document.body.insertAdjacentHTML(
      `afterbegin`,
    
      `<div style="background-color: lightgreen;">` +
      `<label style="color: black; margin-left: 10px;">Script: Mturk Radio Keybinds</label>` +
      `<span style="margin-left: 3px;cursor:help" title="Press 1 through 9 or z through . to select the radio you want. \n\nPress Enter to submit the HIT. \n\nCheck auto submit to have the HIT submit after you press your keybind.">&#10068;</span>` +
    
      `<label style="color: black; float: right; margin-right: 10px;">Auto Submit: ` +
      `<input id="autosubmit" type="checkbox" ${GM_getValue(`autosubmit`) ? `checked` : ``}></input>` +
      `</label>` +
    
      `<label style="color: black; float: right; margin-right: 10px;">Use [z-.]: ` +
      `<input id="letters" type="checkbox" ${GM_getValue(`letters`) ? `checked` : ``}></input>` +
      `</label>` +
    
      `<label style="color: black; float: right; margin-right: 10px;">Use [1-0;q=11,w=12]: ` +
      `<input id="numbers" type="checkbox" ${GM_getValue(`numbers`) ? `checked` : ``}></input>` +
      `</label>` +
    
      `</div>`
    );
    
    const numbers = document.getElementById(`numbers`);
    const letters = document.getElementById(`letters`);
    const autosubmit = document.getElementById(`autosubmit`);
    
    numbers.addEventListener(`change`, function (event) {
      GM_setValue(`numbers`, numbers.checked);
    });
    
    letters.addEventListener(`change`, function (event) {
      GM_setValue(`letters`, letters.checked);
    });
    
    autosubmit.addEventListener(`change`, function (event) {
      GM_setValue(`autosubmit`, autosubmit.checked);
    });
    
    window.addEventListener(`keydown`, function (event) {
      const key = event.key;
    
      if (numbers.checked && key.match(/[1|2|3|4|5|6|7|8|9|0|q|w]/)) {
        console.log(key);
        const convert = { '1': 0, '2': 1, '3': 2, '4': 3, '5': 4, '6': 5, '7': 6, '8': 7, '9': 8, '0': 9, 'q': 10, 'w': 11 };
        const radio = document.querySelectorAll(`[type="radio"]`)[convert[key]];
        if (radio) radio.click();
    
        if (autosubmit.checked) document.querySelector(`[type="submit"]`).click();
      }
    
      if (letters.checked && key.match(/z|x|c|v|b|n|m|,|\./)) {
        console.log(key);
        const convert = { 'z': 0, 'x': 1, 'c': 2, 'v': 3, 'b': 4, 'n': 5, 'm': 6, ',': 7, '.': 8 };
        const radio = document.querySelectorAll(`[type="radio"]`)[convert[key]];
        if (radio) radio.click();
    
        if (autosubmit.checked) document.querySelector(`[type="submit"]`).click();
      }
    
      if (key.match(/Enter/)) {
        document.querySelector(`[type="submit"]`).click();
      }
    });
    
    window.focus();
    
    For multiple questions you would need to throw money at @Kadauchi and get the script that he teased awhile ago.
     
  13. NBadger

    NBadger Mod of Cat Gifs

    Messages:
    14,386
    Gender:
    Female
    Ratings:
    +40,289
    It takes maybe 30 seconds; it will save you hundreds.

    [​IMG]
     
    • Like Like x 2
  14. CorvusSapiens

    CorvusSapiens Survey Slinger

    Messages:
    6,777
    Gender:
    Male
    Ratings:
    +9,896
    Do you already have tampermonkey? Are you running other scripts? Just hit the install button on greasyfork if you have tampermonkey already.
     
  15. gurlondrums

    gurlondrums Cracker of the Step Whip

    Messages:
    27,160
    Gender:
    Female
    Ratings:
    +76,023
    And I just finished my SQL DB update and can punch out from work. Perfect timing or what?

    [​IMG]
     
    • Love Love x 1
  16. Kadauchi

    Kadauchi Administrator Former MTG MotM

    Messages:
    4,368
    Ratings:
    +8,598
    Yep yep
     
    • Like Like x 1
  17. Eisenpower

    Eisenpower Survey Slinger

    Messages:
    4,873
    Gender:
    Male
    Ratings:
    +11,914
    Yeah, I just saw it was simple lol. I thought I had to program them for each specific HIT.
    :hitwithrock:
     
    • LOL LOL x 1
  18. GreenMachine842

    GreenMachine842 Moderator (⌐■_■)

    Messages:
    6,715
    Gender:
    Male
    Ratings:
    +13,816
    I've never done these ones before so for no reason should I be capped. If i return it and open a new one it will be fine but it's terribly slow. i'm going with there is some endor issues.
     
  19. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    Woah now this is Kad's script not @ChrisTurk's
     
  20. Kadauchi

    Kadauchi Administrator Former MTG MotM

    Messages:
    4,368
    Ratings:
    +8,598
    Its a pretty good investment too, works on ocmp5, surveys, all that jazz, just gotta add the @includes
     
    • Today I Learned Today I Learned x 1
Thread Status:
Not open for further replies.