03/25 - Sinister Saturday

Discussion in 'Daily mTurk HITs Threads' started by Vanyanka, Mar 25, 2017.

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

    Fullofbooks Active Turker

    Messages:
    547
    Gender:
    Female
    Ratings:
    +1,221
    o0oh. I never noticed that. I am a bad turker. Do I just add names of requesters? Does it make a different noise than regular hit finder notification? I just added "pinterest". XD
     
  2. Kadauchi

    Kadauchi Administrator Former MTG MotM

    Messages:
    4,368
    Ratings:
    +8,598
    Decided to make the export code cleaner since I'm working with it already.

    Instead of having two different templates, one for the forum to copy to the clipboard and one to send directly to the forums like so.
    Code:
    const forumTemplate =
      `[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]\n` +
      `[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]\n` +
      `[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])\n` +
      `[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}\n` +
      `[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}\n` +
      `[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}\n` +
      `[b]Time:[/b] ${hit.time}\n` +
      `[b]HITs Available:[/b] ${hit.avail}\n` +
      `[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]\n` +
      `[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}\n` +
      `[/td][/tr][/table]`
    ;
    
    const directTemplate =
      `<p>[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]</p>` +
      `<p>[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]</p>` +
      `<p>[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])</p>` +
      `<p>[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}</p>` +
      `<p>[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}</p>` +
      `<p>[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}</p>` +
      `<p>[b]Time:[/b] ${hit.time}</p>` +
      `<p>[b]HITs Available:[/b] ${hit.avail}</p>` +
      `<p>[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]</p>` +
      `<p>[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}[/td][/tr]</p>` +
      `<p>[tr][td][center][size=2]HIT exported from [url=http://mturksuite.com/]Mturk Suite[/url] v${chrome.runtime.getManifest().version}[/size][/center][/td][/tr][/table]</p>`
    ;
    
    switch (hitExport.info.type) {
      case `forum`: hitExport.copyToClip(forumTemplate); break;
      case `thDirect`: hitExport.thDirect(directTemplate); break;
      case `mtcDirect`: hitExport.mtcDirect(directTemplate); break;
    }
    
    I made it an array, and then remove the mts line in the copy to clipboard export, and join them with either a line break or <p> element depending on what was needed.
    Code:
    const exportTemplate = [
      `[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]`,
      `[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]`,
      `[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])`,
      `[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}`,
      `[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}`,
      `[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}`,
      `[b]Time:[/b] ${hit.time}`,
      `[b]HITs Available:[/b] ${hit.avail}`,
      `[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]`,
      `[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}[/td][/tr]`,
      `[tr][td][center][size=2]HIT exported from [url=http://mturksuite.com/]Mturk Suite[/url] v${chrome.runtime.getManifest().version}[/size][/center][/td][/tr]`,
      `[/table]`
    ];
    
    switch (hitExport.info.type) {
      case `forum`:
        exportTemplate.splice(10, 1);
        hitExport.copyToClip(exportTemplate.join(`\n`));
        break;
      case `thDirect`:
        hitExport.thDirect(`<p>${exportTemplate.join(`</p><p>`)}</p>`);
        break;
      case `mtcDirect`:
        hitExport.mtcDirect(`<p>${exportTemplate.join(`</p><p>`)}</p>`);
        break;
    }
    
     
    • Like Like x 1
  3. hvnnvr

    hvnnvr Survey Slinger

    Messages:
    4,589
    Gender:
    Male
    Ratings:
    +6,132
    • LOL LOL x 1
  4. TuMadre

    TuMadre Survey Slinger

    Messages:
    1,132
    Gender:
    Female
    Ratings:
    +1,428
    Just helped euthanize a cat who was a dead ringer for my cat who passed 3 years ago this morning.......
    Fucking DONE for the day

    [​IMG]
     
    • Love Love x 4
  5. WimpLo

    WimpLo Survey Slingin' Batch Masta Former MTG MotM

    Messages:
    35,368
    Gender:
    Female
    Ratings:
    +76,693
  6. SAJ

    SAJ Survey Slinger

    Messages:
    27,503
    Gender:
    Male
    Ratings:
    +51,497
    :hug:
     
    • Like Like x 2
  7. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710
  8. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710
    [​IMG]

    Big Hug!
     
    • Like Like x 3
  9. CorvusSapiens

    CorvusSapiens Survey Slinger

    Messages:
    6,777
    Gender:
    Male
    Ratings:
    +9,896
    It's usually best to search the requester ID instead of just the name, since searching the name will pop hits that have that in the title as well. Enter the requester ID in the 'term' box. Put the requester name (or a nickname that you'll recognize) in the 'name' box.
     
  10. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
  11. hvnnvr

    hvnnvr Survey Slinger

    Messages:
    4,589
    Gender:
    Male
    Ratings:
    +6,132
    :hug:
     
    • Like Like x 1
  12. hvnnvr

    hvnnvr Survey Slinger

    Messages:
    4,589
    Gender:
    Male
    Ratings:
    +6,132
  13. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    It does TTS alerts just like overwatch does. I'm not sure of the exact details to set it up though
     
  14. gurlondrums

    gurlondrums Cracker of the Step Whip

    Messages:
    27,160
    Gender:
    Female
    Ratings:
    +76,023
    working pins?!?!?
     
    • Love Love x 1
  15. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077
    shh don't tell anyone about them yet.. I am enough people
     
    • LOL LOL x 1
  16. SAJ

    SAJ Survey Slinger

    Messages:
    27,503
    Gender:
    Male
    Ratings:
    +51,497
    Title: Participate in an experiment | PANDA
    Worker: Preview | Accept | Requester
    Requester: Edward M. Husband [A15BV7M0O70TMB] (Contact)
    TO: [Pay: 4.60] [Fair: 5.00] [Comm: 1.50] [Fast: 4.67] [Reviews: 9] [ToS: 0]
    Description:
    Participate in an experiment where you will read some passages and make some judgments about them. (Please have your Worker ID available.)
    Time: 3 hours
    HITs Available: 1
    Reward: $6.00
    Qualifications: Total approved HITs GreaterThanOrEqualTo 100; HIT approval rate (%) GreaterThanOrEqualTo 95; Location In US;
    HIT exported from Mturk Suite v1.18.2
     
    • Nom Nom Nom! Nom Nom Nom! x 6
  17. TurkingMaster

    TurkingMaster Survey Slinger

    Messages:
    3,337
    Gender:
    Male
    Ratings:
    +4,285
    $6 hit...

    [​IMG]
     
    • LOL LOL x 1
  18. gurlondrums

    gurlondrums Cracker of the Step Whip

    Messages:
    27,160
    Gender:
    Female
    Ratings:
    +76,023
    okay, mum's the word...
     
    • LOL LOL x 1
  19. humbleturker

    humbleturker Survey Slinger

    Messages:
    5,697
    Gender:
    Male
    Ratings:
    +11,133
    :eek::eek::eek::eek:
    I was wondering what happened to you.
     
    • LOL LOL x 1
  20. hvnnvr

    hvnnvr Survey Slinger

    Messages:
    4,589
    Gender:
    Male
    Ratings:
    +6,132
    Yea, don't mind the 45+ other of us...
     
    • LOL LOL x 2
Thread Status:
Not open for further replies.