[Script] Worker.mturk Overwatch Script

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

Tags:
  1. Eisenpower

    Eisenpower Survey Slinger

    Messages:
    4,868
    Gender:
    Male
    Ratings:
    +11,870
    Nope. That's another reason why OW was essential for me. I hope to add that functionality in one day unless he beats me to it, but that's how it works as of now.
     
    • Today I Learned Today I Learned x 1
  2. leafs4_cup

    leafs4_cup Ugly Mug

    Messages:
    10,413
    Gender:
    Male
    Ratings:
    +31,260
    Hey @Ethraiel, in the part of OW that allows you to click the panda notification, and then have it open in a new tab; is there a way to check that new tab for a line of text, like "you are not qualified blah blah blah", and then close it if it does detect it?

    From what I understand, I can't write a standalone script to do this because it seems like you can only close a tab/window from within the script that it's created in. Since OW is the one creating this tab, is it possible?

    I know this is not exactly OW exclusive, so feel free to ignore as you see fit, lol.
     
  3. Ethraiel

    Ethraiel Well-Known Turker

    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,480
    There might be a way to do it, I haven't looked into what it takes to close a window (i probably should look into that :p)
    I think it'd be easier to just not show the notification if you're not qualified for the HIT.
    if you wanted to do that i can give you the code for it.
    ctrl+f in tampermonkey and find
    Code:
                if (Notification.permission === "granted") {
    
    Directly under that you'd add the line
    Code:
    if (hitObject.Qualified) {
    
    Dont forget the closing bracket '}' which will go after the set timeout line... It should look like the following after you're done.
    Code:
                if (Notification.permission === "granted") {
                   if (hitObject.Qualified) {
                    var dansWay = hitObject.PandA; //rdan likes it to panda but i dont like just making it easy for him :P
                    var url = hitObject.Preview;
                    notifications[(notifications.length - 1)] = new Notification(hitObject.Requester, {
                        body: hitObject.Title
                    });
                    notifications[(notifications.length - 1)].onclick = function() {
                        this.close();
                        GM_openInTab(url, true);
                    };
                    setTimeout(notifications[(notifications.length - 1)].close.bind(notifications[(notifications.length - 1)]), 6500);
                    }}
    else {
                    Notification.requestPermission();
                }
    
    That will make sure you're qualified for the HIT (according to amazon at least) before it shows the notification :)
     
    • Like Like x 1
    • Love Love x 1
  4. leafs4_cup

    leafs4_cup Ugly Mug

    Messages:
    10,413
    Gender:
    Male
    Ratings:
    +31,260
    Thank you so much!

    I should have known the answer was already in there somewhere. Every time I go to customize something in OW and run into a problem, I eventually find that you already had the problem and fixed it haha.
     
    • Love Love x 1
  5. Eisenpower

    Eisenpower Survey Slinger

    Messages:
    4,868
    Gender:
    Male
    Ratings:
    +11,870
    Why didn't I think of that? :emoji_thinking:
     
    • LOL LOL x 1
  6. Ethraiel

    Ethraiel Well-Known Turker

    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,480
    Im upset at myself for not putting it in from the start :p
     
  7. Eisenpower

    Eisenpower Survey Slinger

    Messages:
    4,868
    Gender:
    Male
    Ratings:
    +11,870
    I set it use the TTS and say whether I was qualified or not on each one. I don't know why I want to torture myself by keeping up with Requesters I don't qualify for lol. But, I was actually thinking of trying to have a check box or something like that, but this sounds way better and easier lmao.
     
    • Like Like x 1
  8. Ana*

    Ana* H&R Blockhead

    Messages:
    21,637
    Gender:
    Female
    Ratings:
    +27,162
    for a few days now OW keeps showing requesters that i haven't added like Foxtrot, Data Buff, Crowdsurf, etc. How can i fix this?
     
  9. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,622
    Gender:
    Male
    Ratings:
    +124,073
    Do you have the qual watcher turned on?
     
  10. Ana*

    Ana* H&R Blockhead

    Messages:
    21,637
    Gender:
    Female
    Ratings:
    +27,162
    i just turned it off after the reinstall
     
  11. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,622
    Gender:
    Male
    Ratings:
    +124,073
    If turning it off doesn't fix it you will have to wait for @Ethraiel to help you.
     
    • Like Like x 1
  12. Ana*

    Ana* H&R Blockhead

    Messages:
    21,637
    Gender:
    Female
    Ratings:
    +27,162
    will wait for a bit and see if that really did the trick
     
    • Like Like x 1
  13. Ethraiel

    Ethraiel Well-Known Turker

    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,480
    There will be a small update going up tonight, so any changes you may have made to the script will have to be re-applied.

    This should be the last update unless something breaks.
    1.01.07
    -Fixed blocklist (refresh no longer needed for effect).
    -Added worker.mturk requester page links (legacy links still work too).
    -Changed worker.mturk links to default for future users (current users should not be affected).
    -Minor TTS fix for US Female (google)
     
    • Like Like x 2
  14. Brone

    Brone Active Turker

    Messages:
    495
    Gender:
    Male
    Ratings:
    +440
    forgive me if I'm asking something that's already been answered/confirmed..

    I currently run pandacrazy (using the www.mturk) and hitfinder (using worker.mturk) so if I use this OW also, wouldn't that cause PREs on hitfinder, which would result in not noticing a new hit on either HF or OW?
     
  15. Ethraiel

    Ethraiel Well-Known Turker

    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,480
    yup they're in the same PRE pool. If you like using HF's include list than there's really no reason to add OW to your setup :)
     
  16. Brone

    Brone Active Turker

    Messages:
    495
    Gender:
    Male
    Ratings:
    +440
    yea, in the end, it all comes down to which tools I choose to use. no need to overkill anything.
     
    • Like Like x 1
  17. Ethraiel

    Ethraiel Well-Known Turker

    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,480
    There will be a small update going up tonight, figured out some things involving TTS recently so figured i'd fix something that's been bugging me a while. Just a reminder; any changes you may have made to the script will have to be re-applied.
    Also if you'd like me to tag you when i do this in the future please let me know. I know @jdzane likes their notifications to panda , and @Randomacts might've been editing the "non editable variables" recently. ;)

    1.01.08
    -Finally figured out how to select a TTS voice in "the legit way." ( Voices should all match their drop down descriptions now)
    -Added an "export to MTS/HF" button which will allow you to import your OW watchlist into Hit Finder. (Tested on HF and HF beta MTS v1.25.5)
    -Added a few variables up at the top of the script to change the watchlist CSS a little easier.
     
    • Like Like x 2
    • Today I Learned Today I Learned x 1
  18. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,622
    Gender:
    Male
    Ratings:
    +124,073
    I'm actually still on

    Code:
    /// @version      2
    // @description  bleh
    // @author       very tired Ethraiel
    
    :flail:
     
    • Like Like x 1
    • Love Love x 1
  19. Ethraiel

    Ethraiel Well-Known Turker

    Messages:
    660
    Gender:
    Male
    Ratings:
    +1,480
    ETA I fully expect a few bugs with TTS so message me if you notice anything.
     
    • Like Like x 1
    • Today I Learned Today I Learned x 1
  20. Uncaged

    Uncaged Turker

    Messages:
    85
    Gender:
    Male
    Ratings:
    +160
    Every time I close OW it seems that all of my watches disappear. Is this the way the program is designed or do I have some sort of setting wrong?