04/09 - So this is Saturday

Status
Not open for further replies.

YAHU

YAHUUUUUUU
Contributor
Joined
Jan 11, 2016
Messages
8,514
Reaction score
27,954
Points
1,264
Code:
// ==UserScript==
// @name       HIT Return & Accept
// @namespace  http://ericfraze.com
// @version    0.2
// @description  This userscript returns your current mTurk then accepts a new one. It also checks the "accept next hit" box.
// @include    https://www.mturk.com/mturk/accept*
// @include    https://www.mturk.com/mturk/submit*
// @include    https://www.mturk.com/mturk/previewandaccept*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// @copyright  2014+, Eric Fraze
// ==/UserScript==

//Wait for page to load fully
$(document).ready(function() {
    // Make sure the hit has been accepted
    if ( ( $("a[id*='pipeline.submit.iframes.tooltip']").length>0 ) || ( $("input[name='/submit']").length>0 ) ) {
        // Make sure the return button exits
        if ( $("a[href*='mturk/return']").length>0 ) {
            // Select each return button
            $("a[href*='mturk/return']").each(function() {
                // Add custom text next to return button text
                $(this).parents(':eq(2)').children(":first-child").append('<td><img src="/media/spacer.gif" width="20" height="8" border="0"></td>');
                $(this).parents(':eq(2)').children(":first-child").append('<td align="center" nowrap="">Return & Accept?</td>');
                // Add custom button next to return button
                $(this).parents(':eq(1)').append('<td><img src="/media/spacer.gif" width="20" height="1" border="0"></td>');
                $(this).parents(':eq(1)').append('<td><a id="returnAccept" href="#"><img src="/media/skip_hit.gif" alt="" border="0" width="68" height="22"></a></td>');
            });
        }

        // Check the auto accept box
        $("input[name='autoAcceptEnabled']").prop('checked', true);

        // If custom button is clicked
        $("#returnAccept").click(function() {
            // Get URL parameters
            var url = window.location.href.split("?");

            // Return the HIT with Ajax then accept new hit
            $.ajax({
                // Return the hit
                url: $("a[href*='mturk/return']").attr("href"),
                context: document.body
            }).done(function() {
                // Accept new hit
                window.location.replace("/mturk/previewandaccept?" + url[1]) + "&";
            });
        });
    }
});
does anyone know what key I'm supposed to press to return a hit and accept a new one by using this script?
I think its button only? ahhh RIP in peace magnilucent

Does anyone know if Racenotes go the full 3 day AA?
Can't find anything on TO, sorry. I know they have their own TO with like no reviews, but I was looking for the other account
 
  • Like
Reactions: Deleted member 526

Babadooba

Active Member
Contributor
Joined
Jan 12, 2016
Messages
841
Reaction score
1,387
Points
468
Age
35
Gender
Male
Maury should've been canceled immediately for that? *tips desk over* PEACHY GETTING ANGRY. ohhhh look at Janet Jackson's tittaaayyy in 2001. blah blah blah. FCC. FCC. FCC. what? FUCk You FCC. but peaches getting dismembered on public television? FUCK U TV
where's the love button?
 

lobo925

CEO of Pizza
Contributor
Joined
Jan 13, 2016
Messages
8,054
Reaction score
18,324
Points
1,163
Location
Internet
Gender
Male
Maury should've been canceled immediately for that? *tips desk over* PEACHY GETTING ANGRY. ohhhh look at Janet Jackson's tittaaayyy in 2001. blah blah blah. FCC. FCC. FCC. what? FUCk You FCC. but peaches getting dismembered on public television? FUCK U TV
I don't see GenericPear @GenericPear making such a fuss about things
 

TissueHime

Thread Maker Extraordinaire
Threaderator
Joined
Jan 12, 2016
Messages
5,630
Reaction score
7,645
Points
813
Age
35
Location
Seattle
Gender
Male
1 hour left for dibs!
 
Status
Not open for further replies.