01/18 - Thataway Thursday!

Discussion in 'Daily mTurk HITs Threads' started by Melting Glacier, Jan 18, 2018.

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

    kelly Active Turker

    Messages:
    729
    Gender:
    Female
    Ratings:
    +808
    They're easy to do and they're better than nothing. I've done a lot of them the past couple of days.
     
    • 5/5 Pay 5/5 Pay x 1
  2. lefty

    lefty Survey Slinger

    Messages:
    18,930
    Gender:
    Female
    Ratings:
    +49,005
    upload_2018-1-18_20-24-59.png

    Well thanks, that brought back my scrollbar which disappeared for whatever reason, but the person I was trying to chat with was you @SilenceOfTheClams, get on chat lol
     
  3. cheyenne

    cheyenne Survey Slinger

    Messages:
    6,583
    Gender:
    Female
    Ratings:
    +7,691

    well at least you are out and about and being on the mend!
     
    • Love Love x 1
  4. Squatcobbler

    Squatcobbler Survey Slinger

    Messages:
    10,041
    Gender:
    Male
    Ratings:
    +11,818
    It's on my television thingy right now, so I'm aware of the score and how they've been doing lately. Yet I still think it's a bit premature to be pimping him for MVP.
     
  5. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    I wrote this one and shared it with @slothbear earlier today.

    https://greasyfork.org/en/scripts/36173-panda-crazy-helper-emulation

    PHP:
    var PandaCrazy = (function createPandaCrazy() {

        
    let _lastSentPingTime;
        
    let _lastReceivedPongTime;

        
    let _onlineSinceLastPing;

        
    let _pcListener;

        const 
    MAX_WAIT_FOR_PANDA_CRAZY_RESPONSE_MS 1000;

        function 
    ping() {
            
    _lastSentPingTime Date.now();
            
    localStorage.setItem("JR_message_ping_pandacrazy", `{"theTarget": "${Math.random()}"}`);
        }

        function 
    hasIndicatedOnlineSinceLastPing() {
            if(
    _lastSentPingTime !== undefined && _lastReceivedPongTime !== undefined) {
                return 
    _lastReceivedPongTime >= _lastSentPingTime;
            }
            else {
                return 
    undefined;
            }
        }

        function 
    online() {

            function 
    respondToStorage(resolverejecte) {

                if(
    e.key.includes("JR_message_pong") && Boolean(e.newValue)) {
                    
    _lastReceivedPongTime Date.now();
                    
    let pongData JSON.parse(e.newValue);
                    
    let lag Number(pongData.time) - Number(_lastReceivedPongTime);
                    if(
    hasIndicatedOnlineSinceLastPing()) {
                        
    resolve("online");
                    }
                }

            }

            
    let isOnlinePromise = new Promise((resolvereject) => {

                
    setTimeout(() => {reject("timeout");}, MAX_WAIT_FOR_PANDA_CRAZY_RESPONSE_MS);
                if(
    _pcListener) {window.removeEventListener("storage"_pcListener);}
                
    _pcListener respondToStorage.bind(windowresolvereject);
                
    window.addEventListener("storage"_pcListener);

            });

            
    ping();

            return 
    isOnlinePromise;
        }

        function 
    addJob(gidoncemetadata) {
            
    let commandString once "addOnceJob" "addJob";

            
    localStorage.setItem("JR_message_pandacrazy"JSON.stringify({
                
    timeDate.now(),
                
    commandcommandString,
                
    data: {
                    
    groupIdgid,
                    
    title: (metadata metadata.hitTitle || metadata.title undefined),
                    
    requesterName: (metadata metadata.requesterName undefined),
                    
    requesterId: (metadata metadata.requesterID || metadata.requesterId || metadata.rid undefined),
                    
    pay: (metadata metadata.hitValue || metadata.pay undefined),
                    
    duration: (metadata metadata.duration undefined),
                    
    hitsAvailable: (metadata metadata.hitsAvailable undefined)
                }
            }));
        }

        function 
    startJob(gid) {
            
    localStorage.setItem("JR_message_pandacrazy"JSON.stringify({
                
    timeDate.now(),
                
    command"startcollect",
                
    data: {
                    
    groupIdgid
                
    }
            }));
        }

        return {
            
    addJob,
            
    startJob,
            
    ping,
            
    online
        
    };
    })();
    You can @require it in a userscript, and then use PandaCrazy.addJob(), PandaCrazy.startJob(), and PandaCrazy.online() to check whether Panda Crazy is online and send it work.

    I guess I could probably add a PandaCrazy.start() method in there for sake of completeness, even though it'd basically just be opening Panda Crazy in a new window.

    Then again, that might be nice, because opening a script pro grammatically gives you a handle to that window that you can use to manipulate it. And opening it in a window means no "hey" messages. Hmm.
     
    • Today I Learned Today I Learned x 1
  6. GoldGuardian

    GoldGuardian Black Order

    Messages:
    8,005
    Gender:
    Male
    Ratings:
    +16,743
    [​IMG]
     
    • LOL LOL x 3
    • Today I Learned Today I Learned x 1
  7. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    Javascript arrow button keybinds that change its position. :emoji_imp:
     
  8. SilenceOfTheClams

    SilenceOfTheClams Active Turker

    Messages:
    704
    Gender:
    Female
    Ratings:
    +447

    What chat? There's a chat? [​IMG]
     
  9. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710
    [​IMG]
     
    • LOL LOL x 1
  10. GoldGuardian

    GoldGuardian Black Order

    Messages:
    8,005
    Gender:
    Male
    Ratings:
    +16,743
    [​IMG]
     
    • LOL LOL x 4
  11. slothbear

    slothbear Survey Slinger

    Messages:
    10,822
    Gender:
    Male
    Ratings:
    +22,072
    Are you sure you didn't share it with @ThisPoorGuy? I don't know that the panda crazy buttons would help me out too much ;)
     
  12. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    In keeping with the mTurk tradition, it's a closed qual that the requester @ChrisTurk no longer gives out.
     
    • LOL LOL x 2
    • 5/5 Pay 5/5 Pay x 1
  13. SilenceOfTheClams

    SilenceOfTheClams Active Turker

    Messages:
    704
    Gender:
    Female
    Ratings:
    +447

    [​IMG]
     
    • LOL LOL x 1
  14. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    Ah, that's right. ThisPoorGuy.

    It was someone on this forum who has an avatar, so I was close.
     
    • LOL LOL x 5
  15. lefty

    lefty Survey Slinger

    Messages:
    18,930
    Gender:
    Female
    Ratings:
    +49,005
    I literally went to go look for the link and it doesn't work :O
     
  16. lefty

    lefty Survey Slinger

    Messages:
    18,930
    Gender:
    Female
    Ratings:
    +49,005
    @ChrisTurk don't make me DM people, what is this, 1999?
     
    • LOL LOL x 1
  17. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    They called them PMs in 1999, so you're definitely at least still in the 2010s.
     
    • LOL LOL x 2
    • Today I Learned Today I Learned x 1
  18. lefty

    lefty Survey Slinger

    Messages:
    18,930
    Gender:
    Female
    Ratings:
    +49,005
    You are helpful yet so maddening at the same time.

    [​IMG]
     
    • LOL LOL x 3
  19. ChrisTurk

    ChrisTurk Administrator

    Messages:
    56,746
    Ratings:
    +163,330
    Sorry homie, that chat is cancer.. can't really remove it, but can't let it grow anymore either.
    This is my daily struggle.
     
    • LOL LOL x 4
  20. GoldGuardian

    GoldGuardian Black Order

    Messages:
    8,005
    Gender:
    Male
    Ratings:
    +16,743
    [​IMG]

    [​IMG]
     
    • LOL LOL x 2
    • Love Love x 1
Thread Status:
Not open for further replies.