[Script] Worker.mturk Overwatch Script

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

Tags:
  1. Ethraiel

    Ethraiel Well-Known Turker

    Joined:
    Nov 15, 2016
    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,482
    1.
    find both instances of
    Code:
    qual = "false";
    
    in the script, and change "false" to "true" for both of them (the quotes are needed)

    2. Short of going into the console and deleting the whole element by hand there's no way do that. The script also doesn't keep track of what HITs you actually do so it wouldn't be able to help in that way really at all that i can see.

    Do you mean the two main boxes, and by long you mean height? PM me with a screenshot or something.

    ii) sort of similar to what i said to @ricyan14 short of going into the console to delete them by hand no way to do that atm. Though now im thinking a little button or something with an "x" might be neat to just get rid of them when you want to :)
     
    • Love Love x 1
  2. ceedj

    ceedj Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    2,867
    Gender:
    Male
    Ratings:
    +6,404
    I haven't looked at the code yet, but do generated links have an ID? If not, could it?
     
  3. Ethraiel

    Ethraiel Well-Known Turker

    Joined:
    Nov 15, 2016
    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,482
    none of the <a> tags have ids, but you should be able to use the title i think? maybe... and then the containing divs all have ids (though they have more than one link in them)
    the a tags could have IDs :) just didn't do it to save on typing... what were you thinking?
     
  4. ceedj

    ceedj Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    2,867
    Gender:
    Male
    Ratings:
    +6,404
    Well, if the links generated have an ID, we have something to reference to remove them. :D
     
    • Like Like x 1
    Last edited: Dec 19, 2016
  5. Ethraiel

    Ethraiel Well-Known Turker

    Joined:
    Nov 15, 2016
    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,482
    :) the boxes for each HIT have their own id, (i was thinking something different :p) it's id="id"+GID. I would just use the inspect tool to get the id quickly.

    (so with jquery in the console this works to remove a single HIT)
    Code:
    $("#id3CF7EZI55RM3LPNCWTDVNVCXHT8LID").remove();
    
     
    • Like Like x 1
  6. turk_it

    turk_it Survey Slinger

    Joined:
    Nov 15, 2016
    Messages:
    3,728
    Gender:
    Male
    Ratings:
    +10,147
    Thanks for the response! Yeah that's exactly what I mean. To utilize the grey area.

    Screen Shot 2016-12-19 at 2.19.46 PM.png
     
    • Like Like x 1
  7. ceedj

    ceedj Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    2,867
    Gender:
    Male
    Ratings:
    +6,404
    Ok, I have some ideas for this, but I need to let it percolate a bit - all the <a> links are going right to the mTurk site, so maybe a button might work better. Gimme a day or two, might be a "hide" but keep in the db kind of thing, or remove it from the db altogether. Thanks! :arms:
     
    • Love Love x 1
  8. Ethraiel

    Ethraiel Well-Known Turker

    Joined:
    Nov 15, 2016
    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,482
    super jealous of a vertical screen :)
    i tried to do height based on window percentage but i couldn't get it to work (long time ago so maybe i should try again :))...
    adjusting the height on the dualWindow class should let you fine tune it (this is of course assuming you want it to stay that way) to your screen size.

    Code:
    .dualWindow{
            background: rgb(236, 236, 236);
    height: 695px;
           overflow-y: auto;
            float: left;
            transition: 2s;
            margin-left: 2%;
    }
    
    let me know if you have any problems
     
    • Like Like x 1
  9. ceedj

    ceedj Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    2,867
    Gender:
    Male
    Ratings:
    +6,404
    Ok this works, except if you have Persistent Display checked, in which case they would all come back - can confirm, since I removed about 50 and they all came back. Unchecking the box, saving and rechecking clears everything, so I need to get in and out of your db saving code to make this stick, correct?
     
  10. Ethraiel

    Ethraiel Well-Known Turker

    Joined:
    Nov 15, 2016
    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,482
    Persistent display has its own place in local storage, and i've been having issues with the saving of it... It saves the HTML of the #rightWindow as a string to localStorage, so logically speaking, deleting them, then saving shoooooould result in them not appearing (but i've seen some similar issues doing something else with persistent display)... so to answer your question, yeah it's in the saving :p but only a very specific part.
     
    • Like Like x 1
  11. lparga

    lparga New Turker

    Joined:
    Dec 9, 2016
    Messages:
    9
    Gender:
    Female
    Ratings:
    +3
    sorry wrong thread oops
     
  12. deansep

    deansep Well-Known Turker

    Joined:
    Nov 18, 2016
    Messages:
    602
    Gender:
    Male
    Ratings:
    +586
    Has anyone had an issue with overwatch not giving a logged out notification? Aside from the initial startup, I have never seen it since and have started missing things lately not realizing it is no longer working.
     
  13. Randomacts

    Randomacts Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    I know it a lame thing to ask.. but have you tried rebooting your computer? I had TTS break awhile ago and rebooting fixed it. :dunno:
     
  14. deansep

    deansep Well-Known Turker

    Joined:
    Nov 18, 2016
    Messages:
    602
    Gender:
    Male
    Ratings:
    +586
    Yep. The computer has restarted multiple times since then. I mean its not always a big deal, I just make sure to check worker whenever mturk expires out on me but there has been a few times I have missed something or don't realize overwatch isn't working properly.

    On a side note, does anyone know if worker and mturk share the same login timers? It seems some days I have to log into both individually but a lot of times whenever mturk expires and I relog the worker site hasn't expired.
     
  15. Randomacts

    Randomacts Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    They have the same timer for me. I log into both at the same time and then they expire at the same time whenever I forget to refresh it before it expires.
     
  16. Jagdpanzer

    Jagdpanzer Survey Slinger

    Joined:
    Nov 15, 2016
    Messages:
    2,960
    Gender:
    Male
    Ratings:
    +3,443
    A believe the timers are independent because logging into just one site will not allow the script to run as it sees you as still logged out on the other site.
     
  17. slothbear

    slothbear Survey Slinger

    Joined:
    Nov 15, 2016
    Messages:
    10,822
    Gender:
    Male
    Ratings:
    +22,072
    Hey @Ethraiel, is the length check on adding requester's id just to protect the user from adding wrong id's to OW?

    Came across a requester with a 21 character id, so went ahead and added that to idCheck's IF.
     
  18. Anath614

    Anath614 Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    2,160
    Gender:
    Female
    Ratings:
    +1,658
    Getting the 404 message when I go to the site.....help me
     
  19. Jagdpanzer

    Jagdpanzer Survey Slinger

    Joined:
    Nov 15, 2016
    Messages:
    2,960
    Gender:
    Male
    Ratings:
    +3,443
    Do you have TamperMonkey turned on/enabled. If TM is on, do you have the OW script switched to on inside of the TM dash board?
     
  20. Anath614

    Anath614 Survey Slinger

    Joined:
    Nov 16, 2016
    Messages:
    2,160
    Gender:
    Female
    Ratings:
    +1,658
    Tampermonkey is turned on an enabled.....yes I do have OW script on