11/18 - Sending Sunday!

Discussion in 'Daily mTurk HITs Threads' started by Tripsa, Nov 18, 2018.

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

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    Where do I paste that? Which line?
    Okay I'm sorry. I'm getting confused so...
    Gonna do this:
    This is the script as it appears for me:
    Code:
    // ==UserScript==
    // @name A9 - Are these items the same
    // @author Gener
    // @namespace GenerScript
    // @version 1
    // @description A short script I wrote to help me kill this A9 Are these items the same batch
    // @include *s3.amazonaws.com*
    // @require http://code.jquery.com/jquery-3.3.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    var $ = window.jQuery;
    function didntLoad() {
    $('input[name="not_loaded"]').click();
    selectNoMatch();
    }
    function selectMatch() {
    $('input[name="exactMatch"][value="yesMatch"]').click();
    $('input[name="enoughofB"][value="yesEnough"]').click();
    }
    function selectNoMatch() {
    $('input[name="exactMatch"][value="noMatch"]').click();
    $('input[name="enoughofB"][value="yesEnough"]').click();
    }
    function selectUnsureMatch() {
    $('input[name="exactMatch"][value="unsureMatch"]').click();
    $('input[name="enoughofB"][value="notEnough"]').click();
    }
    function submitA9Hit() {
    $('input[id="submitButton"]').click();
    }
    $(document).ready(function() {
    selectMatch();
    //setfocus on specifc page element for optimal visual QC of form before submission
    $('input[name="exactMatch"][value="yesMatch"]').focus();
    //bind to keypress to select a specific form setup and submission
    $(this).keydown(function(e) {
    if (e.keyCode == 103) { //num pad 7
    selectMatch();
    submitA9Hit();
    }
    else if(e.keyCode == 104) { //num pad 8
    selectNoMatch();
    submitA9Hit();
    }
    else if(e.keyCode == 105) { //num pad 9
    selectUnsureMatch();
    submitA9Hit();
    }
    else if(e.keyCode == 88) { // letter 'x'
    didntLoad();
    submitA9Hit();
    }
    });
    });
    })();
    Can you make the changes please and I'll copy and paste it?
     
  2. HardWorkingTurker

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    Sorry. I am an utter novice when it comes to coding. I know nothing except copying and pasting. lol
     
  3. SmokedKipper

    SmokedKipper Survey Slinger

    Messages:
    1,402
    Gender:
    Male
    Ratings:
    +2,207
    Code:
    // ==UserScript==
    // @name A9 Data Validation - Are the items exact?
    // @namespace http://tampermonkey.net/
    // @version .01
    // @description Autofills Enter key submits
    // @author BatchMonkry
    // @match https://s3.amazonaws.com/mturk_bulk/hits/*
    // @grant none
    // @require http://code.jquery.com/jquery-3.3.1.min.js
    // ==/UserScript==
    $('input[value="yesMatch"]').click()
    $('input[value="yesEnough"]').click();
    document.getElementById('Submit').focus();
    This is what i use for the current batch.
     
    • Like Like x 1
  4. HardWorkingTurker

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    I tried that script and it didn't work for me
     
  5. SmokedKipper

    SmokedKipper Survey Slinger

    Messages:
    1,402
    Gender:
    Male
    Ratings:
    +2,207
    huh strange, im not sure why it wouldn't work. Sorry
     
    • Love Love x 1
  6. HardWorkingTurker

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    I believe @rdaneel may be right about my device being haunted.
     
    • LOL LOL x 1
  7. rdaneel

    rdaneel Well-Known Turker

    Messages:
    316
    Gender:
    Male
    Ratings:
    +820
    Code:
    // ==UserScript==
    // @name A9 - Are these items the same
    // @author Gener
    // @namespace GenerScript
    // @version 1
    // @description A short script I wrote to help me kill this A9 Are these items the same batch
    // @include *s3.amazonaws.com*
    // @require http://code.jquery.com/jquery-3.3.1.min.js
    // ==/UserScript==
    console.debug('Entering script.');
    (function() {
    console.info(`${GM_info.script.name} ${GM_info.script.version}`);
    function didntLoad() {
    $('input[name="not_loaded"]').click();
    selectNoMatch();
    }
    function selectMatch() {
    $('input[name="exactMatch"][value="yesMatch"]').click();
    $('input[name="enoughofB"][value="yesEnough"]').click();
    }
    function selectNoMatch() {
    $('input[name="exactMatch"][value="noMatch"]').click();
    $('input[name="enoughofB"][value="yesEnough"]').click();
    }
    function selectUnsureMatch() {
    $('input[name="exactMatch"][value="unsureMatch"]').click();
    $('input[name="enoughofB"][value="notEnough"]').click();
    }
    function submitA9Hit() {
    $('input[id="submitButton"]').click();
    }
    $(document).ready(function() {
    selectMatch();
    //setfocus on specifc page element for optimal visual QC of form before submission
    $('input[name="exactMatch"][value="yesMatch"]').focus();
    //NASTY hack just to test
    document.addEventListener(keydown, event=>{
    if ( event.keyCode === 78 ) { // 'n'
    document.querySelectorAll('input[type=radio]')[1].click();
    console.debug('In keyhandler, received N.');
    }
    });
    //bind to keypress to select a specific form setup and submission
    $(this).keydown(function(e) {
    if (e.keyCode == 103) { //num pad 7
    selectMatch();
    submitA9Hit();
    }
    else if(e.keyCode == 104) { //num pad 8
    selectNoMatch();
    submitA9Hit();
    }
    else if(e.keyCode == 105) { //num pad 9
    selectUnsureMatch();
    submitA9Hit();
    }
    else if(e.keyCode == 88) { // letter 'x'
    didntLoad();
    submitA9Hit();
    }
    });
    });
    })();
    Run that, and only that script, and show us what you see in the console. (Just hit the 'n' key. It should change the first value to no. That's all it does, because we're just trying to test.)
     
    • Today I Learned Today I Learned x 1
  8. DigitalDenizen

    DigitalDenizen Well-Known Turker

    Messages:
    2,341
    Gender:
    Male
    Ratings:
    +2,044
    Maybe some kind of formatting issue when you copy the script?
     
    • Today I Learned Today I Learned x 2
  9. gener

    gener Survey Slinger

    Messages:
    9,038
    Gender:
    Male
    Ratings:
    +11,568
    Goofy clipboard installed
     
    • Like Like x 1
  10. HardWorkingTurker

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    what does this mean?
    upload_2018-11-18_6-9-59.png
     
  11. rdaneel

    rdaneel Well-Known Turker

    Messages:
    316
    Gender:
    Male
    Ratings:
    +820
    That means you should hover your mouse over the yellow triangle, and it'll tell you what it's warning you about.

    What do you see in the developer console when you run that edited script?
     
  12. HardWorkingTurker

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    upload_2018-11-18_6-14-49.png
     
  13. rdaneel

    rdaneel Well-Known Turker

    Messages:
    316
    Gender:
    Male
    Ratings:
    +820
    Yikes, put quotations around keydown, so it says "keydown"

    That's my bad. And at least we know it's running!
     
  14. gener

    gener Survey Slinger

    Messages:
    9,038
    Gender:
    Male
    Ratings:
    +11,568
    When you click on tampermonkey when you're on the hit, does it show the script loaded? Like my screenshot of my interface?
    upload_2018-11-18_6-15-55.png
     
  15. morweeg

    morweeg Triple Double Certified Organic Batch Master

    Messages:
    40,571
    Ratings:
    +54,131
    omg so many pennies :eek:
     
  16. DigitalDenizen

    DigitalDenizen Well-Known Turker

    Messages:
    2,341
    Gender:
    Male
    Ratings:
    +2,044
    I wish I didn't have to do these capchas like a pleb
     
  17. gener

    gener Survey Slinger

    Messages:
    9,038
    Gender:
    Male
    Ratings:
    +11,568
    Do the captchas go away if you have masters or something? I thought everyone had to deal with them.
     
  18. morweeg

    morweeg Triple Double Certified Organic Batch Master

    Messages:
    40,571
    Ratings:
    +54,131
    Yes. It's basically the main reason everyone wants masters, but Amazon hasn't hit the switch in nearly a year now outside of a couple of outliers.
     
    • Today I Learned Today I Learned x 2
  19. HardWorkingTurker

    HardWorkingTurker Survey Slinger

    Messages:
    5,754
    Ratings:
    +4,932
    yes
     
  20. rdaneel

    rdaneel Well-Known Turker

    Messages:
    316
    Gender:
    Male
    Ratings:
    +820
    @HardWorkingTurker What's your console log look like now, and does pressing 'n' now set the first option to 'no' for you? (take a capture of the console after you've hit 'n', regardless)
     
    • Like Like x 1
Thread Status:
Not open for further replies.