03/30 - Thinker Thursday!

Discussion in 'Daily mTurk HITs Threads' started by TissueHime, Mar 30, 2017.

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

    Alina Survey Slinger

    Messages:
    5,277
    Ratings:
    +18,501
    The game will begin in approximately: 26:31

    :emoji_sleeping:
     
  2. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    You could say that about PFA as well. Sometimes geohives are good though.
     
    • Like Like x 2
  3. turk_it

    turk_it Survey Slinger

    Messages:
    3,728
    Gender:
    Male
    Ratings:
    +10,147
    Uhhh i think you're doing just fine on your own Ms. OneFitty :emoji_hugging:
     
    • LOL LOL x 1
  4. SquigglyButt

    SquigglyButt Survey Slinger

    Messages:
    5,440
    Gender:
    Male
    Ratings:
    +5,961
    But while you wait... categorize these BLAPs...
     
    • LOL LOL x 2
  5. Outer1

    Outer1 Survey Slinger

    Messages:
    5,075
    Gender:
    Male
    Ratings:
    +7,992
    Is this a blap?

    [​IMG]
     
    • Like Like x 2
    • LOL LOL x 2
  6. Alina

    Alina Survey Slinger

    Messages:
    5,277
    Ratings:
    +18,501
    no lol i just mean next time send me the link so i can fix it for you :)
     
    • Love Love x 1
  7. jdzane

    jdzane Survey Slinger

    Messages:
    9,239
    Gender:
    Female
    Ratings:
    +8,650
    OMG I FIGURED IT OUT ON MY OWN!!!!!!!!!
    q = 11 w=12
    Code:
    // ==UserScript==
    // @name         Mturk Radio Keybinds
    // @namespace    https://gist.github.com/Kadauchi
    // @version      2.1.1
    // @description  Keybinds to select radios
    // @author       Kadauchi
    // @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-9]: ` +
      `<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();
     
    • Like x 4
    • Love x 3
    • Today I Learned x 2
    • LOL x 1
    • 5/5 Pay x 1
  8. breakerofchains

    breakerofchains Active Turker

    Messages:
    364
    Gender:
    Female
    Ratings:
    +867
    Ah, yes, let's move on to things that belong in the baby accessory category, as if the back pain and constant jabs at my ribs aren't enough of a reminder that I'm ONLY 10 days away from having my own little screaming poop machine.
     
    • LOL LOL x 2
    • Love Love x 2
  9. ThisPoorGuy

    ThisPoorGuy ThisPoorMod

    Messages:
    39,486
    Gender:
    Male
    Ratings:
    +81,571
    You beat me to it by 30 seconds. Damnnit! ;)
     
  10. Alina

    Alina Survey Slinger

    Messages:
    5,277
    Ratings:
    +18,501
    [​IMG]
     
    • Like Like x 2
  11. MasterNyborg

    MasterNyborg Survey Slinger

    Messages:
    1,982
    Gender:
    Male
    Ratings:
    +3,236
    [​IMG]
     
    • Like Like x 1
    • LOL LOL x 1
  12. jdzane

    jdzane Survey Slinger

    Messages:
    9,239
    Gender:
    Female
    Ratings:
    +8,650
    I think I should get member of the month or something for figuring that out...or like a "newbie coder" badge or something! I'm so ridiculously proud of myself right now.
    @Kadauchi @ChrisTurk
     
    • Like Like x 3
    • Love Love x 1
  13. ThisPoorGuy

    ThisPoorGuy ThisPoorMod

    Messages:
    39,486
    Gender:
    Male
    Ratings:
    +81,571
    I was literally coming to the forum to paste in a fixed script and saw you had it. Nice work :)
     
  14. SquigglyButt

    SquigglyButt Survey Slinger

    Messages:
    5,440
    Gender:
    Male
    Ratings:
    +5,961
    aweseome job!
     
    • Like Like x 1
  15. ceedj

    ceedj Survey Slinger

    Messages:
    2,867
    Gender:
    Male
    Ratings:
    +6,405
    They're cute and all. Until they learn how to talk.
     
    • Like Like x 1
    • LOL LOL x 1
    • Today I Learned Today I Learned x 1
  16. jdzane

    jdzane Survey Slinger

    Messages:
    9,239
    Gender:
    Female
    Ratings:
    +8,650
    yes but you probably don't understand how huge a deal it is that I figured out something coding by myself!
    I have literally never coded anything by myself before. I've wanted to try forever but always been too afraid and felt too stupid but I figured it out! :D :D :D[​IMG]
     
    • Like Like x 4
    • Love Love x 2
  17. Jagdpanzer

    Jagdpanzer Survey Slinger

    Messages:
    2,960
    Gender:
    Male
    Ratings:
    +3,443

    Way to go Pauline. :nod:
     
  18. MasterNyborg

    MasterNyborg Survey Slinger

    Messages:
    1,982
    Gender:
    Male
    Ratings:
    +3,236
    Non stop baby stuff! Press 1 for money!
     
  19. jdzane

    jdzane Survey Slinger

    Messages:
    9,239
    Gender:
    Female
    Ratings:
    +8,650
    [​IMG]
     
    • Like Like x 1
  20. DigitalDenizen

    DigitalDenizen Well-Known Turker

    Messages:
    2,341
    Gender:
    Male
    Ratings:
    +2,044
    It says no more hits available..wtf?
     
    • 5/5 Pay 5/5 Pay x 1
Thread Status:
Not open for further replies.