1. Glad you stopped in for a visit!

    Please feel free to peruse around and if you have a minute make sure to sign up for an account! We're one of the largest, most active, and helpful communities you'll find for learning about mTurk & registered accounts automatically get access to tons of useful features on the site.

    Features for members include:

    • The ability to post messages - our community is incredibly helpful & happy to welcome newcomers who are looking to learn the ropes!
    • Live thread update - no need to refresh pages to see new posts/HITs they flow onto the page automatically as they're posted.
    • Desktop alerts - direct PANDAs from exported HITs right on your desktop
    • Access to the full list of HITs exported through the Daily HIT Log
    • TurkerView account which will grant you extra access to HIT review information all across mTurk through TVJS

    But most importantly you'll be joining an amazing community. You'll find all types here, from stay-at-home Moms to IT pros. We're a great group - feel free to join us!

[Script] Ceedj's ProductRNR script

Discussion in 'mTurk Scripts & Resources' started by ceedj, Nov 21, 2016.

  1. ceedj

    ceedj Well-Known Member

    Messages:
    2,082
    Gender:
    Male
    Ratings:
    +4,126 / 3 / -0
    Hey folks, this is kind of a "catch all" script, that handles a variety of ProductRNR HITs. All it does it auto select the first or most commonly found answers (depends on the HIT) - it does NOTHING else very fancy. Enter to submit (has a dialog, will clean that up in the near future).

    WATCH YOUR SPAM SCORE AND DON'T DO THESE TOO FAST!

    Right then, here is the code:
    Code:
    // ==UserScript==
    // @name         Product RnR Captions/Images ($0.05/$0.08/$0.10/$0.15)
    // @namespace    None
    // @version      1.0.3
    // @description  Phrasing!
    // @author       ceedj / Adapted from JQKill's CogDev Faces Script
    // @include      *.mturkcontent.com/*
    // @include      https://s3.amazonaws.com/mturk_public/*
    // @grant        GM_log
    // @require      http://code.jquery.com/jquery-2.1.0.min.js
    // ==/UserScript==
    
    $(document).ready(function(){
    // Variable to check for the type of HIT.
    var my_var = $('h1:contains(caption)');
    var my_var2 =$(':contains(image)');
    var my_var3 =$(':contains(corresponding)');
    var my_var4 =$(':contains(identify)');
    if (my_var.length || my_var2.length || my_var3.length || my_var4.length)
    {
     window.focus();
     
        $("input[value='ImageCaption_UpperBetter'],input[value='ImageSimilarity_Left'],input[value='ShoppingImage_MatchesProduct'], input[value='Correct'],input[value='QueryImage_Unrelated'],input[value='ShoppingPage_ProductAvailable']").click();
    
     
     
        // Keybinds
        document.onkeydown = function(e) {
    
         
             //Submit
            if (e.keyCode === 13) { // Enter or NumpadEnter
                var button = document.getElementById("SubmitButton");
                if (confirm("Submit?")) button.click();
            }
        };
    }});
    
    Have fun and make lots of monies! :)
     
    Last edited: Nov 22, 2016
  2. Jagdpanzer

    Jagdpanzer Well-Known Member

    Messages:
    2,952
    Gender:
    Male
    Ratings:
    +3,366 / 7 / -58


    Hi ceedj,

    I noticed I have 2 "older versions" of this. Different code in each, but all 3 are version 1.0.1??
     
  3. ceedj

    ceedj Well-Known Member

    Messages:
    2,082
    Gender:
    Male
    Ratings:
    +4,126 / 3 / -0
    This should be 1.0.3, thanks! If I can figure out how to edit the thread, I'll fix it! :)

    EDIT: @ChrisTurk , can't seem to edit my opening post. Permissions issue? Thanks!
     
    • Useful / Informative Useful / Informative x 1
  4. Jagdpanzer

    Jagdpanzer Well-Known Member

    Messages:
    2,952
    Gender:
    Male
    Ratings:
    +3,366 / 7 / -58

    Could always post it again with an explanation.
     
  5. ChrisTurk

    ChrisTurk Administrator

    Messages:
    22,331
    Ratings:
    +55,788 / 105 / -2
    Fiddled with user group permissions, let me know if its fixed.
     
  6. ceedj

    ceedj Well-Known Member

    Messages:
    2,082
    Gender:
    Male
    Ratings:
    +4,126 / 3 / -0
    Edits accomplished! Thanks boss! :)
     
    • Like Like x 1
  7. Ana*

    Ana* Well-Known Member

    Messages:
    9,626
    Gender:
    Female
    Ratings:
    +12,228 / 11 / -0
    thanks for sharing the script guys. just wanted to work a bit today and that did it. hope you all had a good day even if there was barely any $$ to be made here.