01/02 - First Monday of the Year is Suite!

Discussion in 'Daily mTurk HITs Threads' started by Kadauchi, Jan 2, 2017.

Thread Status:
Not open for further replies.
  1. Melting Glacier

    Melting Glacier PE: $30.01 - That's over $1.25/hour! ┬┴┤( ͡° ͜ʖ├┬┴

    Messages:
    6,157
    Gender:
    Male
    Ratings:
    +11,423
    Aha, I knew that way looked a little barren! I'm pretty sure that was the page I had bookmarked on my laptop. :nod:

    Ha! :lol: One of the best-kept secrets. :eyebrows:
     
    • Like Like x 3
  2. Kadauchi

    Kadauchi Administrator Former MTG MotM

    Messages:
    4,368
    Ratings:
    +8,597
    If anyone was interested in the code differences.

    jquery
    Code:
    document.addEventListener(`DOMContentLoaded`, function () {
      if ($(`#total_earnings_amount`).length) {
       DASHBOARD();
      }
    });
    
    function DASHBOARD () {
      const dash = {
       id : $(`.orange_text_right:contains(Your Worker ID: )`).text().split(`ID: `)[1],
       date : $(`a:contains(Today)`).length ? $(`a:contains(Today)`).prop(`href`).split(`encodedDate=`)[1] : null,
    
       earn_hits  : Number($(`#approved_hits_earnings_amount`).text().replace(/[^0-9.]/g, ``)) || 0,
       earn_bonus : Number($(`#bonus_earnings_amount`).text().replace(/[^0-9.]/g, ``)) || 0,
       earn_total : Number($(`#total_earnings_amount`).text().replace(/[^0-9.]/g, ``)) || 0,
       earn_trans : Number($(`#transfer_earnings`).text().replace(/[^0-9.]/g, ``)) || 0,
    
       total_sub : Number($(`.metrics-table-first-value:contains(HITs Submitted)`).next().text()) || 0,
       total_app : Number($(`.metrics-table-first-value:contains(... Approved)`).next().text()) || 0,
       total_rej : Number($(`.metrics-table-first-value:contains(... Rejected)`).next().text()) || 0,
       total_pen : Number($(`.metrics-table-first-value:contains(... Pending)`).next().text()) || 0,
    
       today_sub : Number($(`a:contains(Today)`).parent().next().text()) || 0,
       today_app : Number($(`a:contains(Today)`).parent().next().next().text()) || 0,
       today_rej : Number($(`a:contains(Today)`).parent().next().next().next().text()) || 0,
       today_pen : Number($(`a:contains(Today)`).parent().next().next().next().next().text()) || 0
      };
     
      chrome.storage.local.get(`dashboard`, function (data) {
       const loaded_dash = data.dashboard || {id: null, date: null, earn_hits: 0, earn_bonus: 0, earn_total: 0, earn_trans: 0, total_sub: 0, total_app: 0, total_rej: 0, total_pen: 0, today_sub: 0, today_app: 0, today_rej: 0, today_pen: 0}; 
       
       if (dash.date !== loaded_dash.date) {
         loaded_dash.today_sub = 0;
         loaded_dash.today_app = 0;
         loaded_dash.today_rej = 0;
         loaded_dash.today_pen = 0;
       }
       
       $(`.metrics-table-first-value:contains(... Pending)`).append(
         `<span style="color: orange;" title=""> (${((dash.total_rej - 0.01 * dash.total_sub) / -0.99 | 0)} ≥ 99%)</span>` +
         `<span style="color: red;"> (${((dash.total_rej - 0.05 * dash.total_sub) / -0.95 | 0)} ≥ 95%)</span>`
       ).next().next().html(
         `<div style="color: green;">${((dash.total_sub - dash.total_rej) / dash.total_sub * 100).toFixed(4)}%</div>` +
         `<div style="color: red;">${(dash.total_app / (dash.total_app + dash.total_rej + dash.total_pen) * 100).toFixed(4)}%</div>`
       );
    
       $(`.metrics-table-first-value:contains(... Approved)`).next().next().text(
         `${(dash.total_app / (dash.total_app + dash.total_rej) * 100).toFixed(4)}%`
       );
       
       $(`.metrics-table-first-value:contains(... Rejected)`).next().next().text(
         `${(dash.total_rej / (dash.total_app + dash.total_rej) * 100).toFixed(4)}%`
       );
    
       if (dash.earn_hits !== loaded_dash.earn_hits) {
         $(`#approved_hits_earnings_amount`).prev().append(
           `<span style="float: right;">+$${(dash.earn_hits - loaded_dash.earn_hits).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_bonus !== loaded_dash.earn_bonus) {
         $(`#bonus_earnings_amount`).prev().append(
           `<span style="float: right;">+$${(dash.earn_bonus - loaded_dash.earn_bonus).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_total !== loaded_dash.earn_total) {
         $(`#total_earnings_amount`).prev().append(
           `<span style="float:right;">+$${(dash.earn_total- loaded_dash.earn_total).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_trans < loaded_dash.earn_trans) {
         $(`#transfer_earnings`).prev().append(
           `<span style="float:right;">-$${(loaded_dash.earn_trans - dash.earn_trans).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_trans > loaded_dash.earn_trans) {
         $("#transfer_earnings").prev().append(
           `<span style="float:right;">+$${(dash.earn_trans - loaded_dash.earn_trans).toFixed(2)}</span>`
         );
       }
    
       if (dash.total_sub !== loaded_dash.total_sub) {
         $(`.metrics-table-first-value:contains(HITs Submitted)`).append(
           `<span style="float: right;">+${(dash.total_sub - loaded_dash.total_sub)}</span>`
         );
       }
    
       if (dash.total_app !== loaded_dash.total_app) {
         $(`.metrics-table-first-value:contains(... Approved)`).append(
           `<span style="float: right;">+${(dash.total_app - loaded_dash.total_app)}</span>`
         );
       }
    
       if (dash.total_rej !== loaded_dash.total_rej) {
         $(`.metrics-table-first-value:contains(... Rejected)`).append(
           `<span style="float: right;">+${(dash.total_rej - loaded_dash.total_rej)}</span>`
         );
       }
    
       if (dash.total_pen < loaded_dash.total_pen) {
         $(`.metrics-table-first-value:contains(... Pending)`).append(
           `<span style="float: right;">-${(loaded_dash.total_pen - dash.total_pen)}</span>`
         );
       }
    
       if (dash.total_pen > loaded_dash.total_pen) {
         $(`.metrics-table-first-value:contains(... Pending)`).append(
           `<span style="float: right;">+${(dash.total_pen - loaded_dash.total_pen)}</span>`
         );
       }
    
       if (dash.today_sub !== loaded_dash.today_sub) {
         $(`a:contains(Today)`).parent().next().append(
           `<span style="float: left;">+${(dash.today_sub - loaded_dash.today_sub)}</span>`
         );
       }
    
       if (dash.today_app !== loaded_dash.today_app) {
         $(`a:contains(Today)`).parent().next().next().append(
           `<span style="float: left;">+${(dash.today_app - loaded_dash.today_app)}</span>`
         );
       }
    
       if (dash.today_rej !== loaded_dash.today_rej) {
         $(`a:contains(Today)`).parent().next().next().next().append(
           `<span style="float: left;">+${(dash.today_rej - loaded_dash.today_rej)}</span>`
         );
       }
    
       if (dash.today_pen < loaded_dash.today_pen) {
         $(`a:contains(Today)`).parent().next().next().next().next().append(
           `<span style="float: left;">-${(loaded_dash.today_pen - dash.today_pen)}</span>`
         );
       }
    
       if (dash.today_pen > loaded_dash.today_pen) {
         $(`a:contains(Today)`).parent().next().next().next().next().append(
           `<span style="float: left;">+${(dash.today_pen - loaded_dash.today_pen)}</span>`
         );
       }
     
       chrome.runtime.sendMessage({msg: `dashboard`, data: dash});
      });
    }
    
    javascript
    Code:
    function DASHBOARD () { 
      const hit_status = document.getElementById(`user_activities.date_column_header.tooltip`).parentElement.nextElementSibling.children;
      const hit_totals = document.getElementById(`hit_totals.desc_dolumn_header.tooltop.1`).parentElement.parentElement.children;
     
      const dash = {
       id : document.getElementsByClassName(`orange_text_right`)[0].textContent.split(`ID: `)[1],
       date : hit_status[0].children[0].href.split(`encodedDate=`)[1],
    
       earn_hits  : +(document.getElementById(`approved_hits_earnings_amount`).textContent.replace(/[^0-9.]/g, ``)),
       earn_bonus : +(document.getElementById(`bonus_earnings_amount`).textContent.replace(/[^0-9.]/g, ``)),
       earn_total : +(document.getElementById(`total_earnings_amount`).textContent.replace(/[^0-9.]/g, ``)),
       earn_trans : +(document.getElementById(`transfer_earnings`).textContent.replace(/[^0-9.]/g, ``)),
    
       total_sub : +(hit_totals[1].children[1].textContent),
       total_app : +(hit_totals[2].children[1].textContent),
       total_rej : +(hit_totals[3].children[1].textContent),
       total_pen : +(hit_totals[4].children[1].textContent),
       
       today_sub : +(hit_status[1].textContent),
       today_app : +(hit_status[2].textContent),
       today_rej : +(hit_status[3].textContent),
       today_pen : +(hit_status[4].textContent),
      };
       
      chrome.storage.local.get(`dashboard`, function (data) {
       const loaded_dash = /*data.dashboard ||*/ {id: null, date: null, earn_hits: 0, earn_bonus: 0, earn_total: 0, earn_trans: 0, total_sub: 0, total_app: 0, total_rej: 0, total_pen: 0, today_sub: 0, today_app: 0, today_rej: 0, today_pen: 0}; 
       
       if (dash.date !== loaded_dash.date) {
         loaded_dash.today_sub = 0;
         loaded_dash.today_app = 0;
         loaded_dash.today_rej = 0;
         loaded_dash.today_pen = 0;
       }
       
       hit_totals[4].children[0].insertAdjacentHTML.innerHTML =
         `<span style="color: orange;" title=""> (${((dash.total_rej - 0.01 * dash.total_sub) / -0.99 | 0)} ≥ 99%)</span>` +
         `<span style="color: red;"> (${((dash.total_rej - 0.05 * dash.total_sub) / -0.95 | 0)} ≥ 95%)</span>`
       ;
       
       hit_totals[4].children[2].insertAdjacentHTML.innerHTML =
         `<div style="color: green;">${((dash.total_sub - dash.total_rej) / dash.total_sub * 100).toFixed(4)}%</div>` +
         `<div style="color: red;">${(dash.total_app / (dash.total_app + dash.total_rej + dash.total_pen) * 100).toFixed(4)}%</div>`
       ;
    
       hit_totals[2].children[2].textContent =
         `${(dash.total_app / (dash.total_app + dash.total_rej) * 100).toFixed(4)}%`
       ;
       
       hit_totals[3].children[2].textContent =
         `${(dash.total_rej / (dash.total_app + dash.total_rej) * 100).toFixed(4)}%`
       ;
    
       if (dash.earn_hits !== loaded_dash.earn_hits) {
         document.getElementById(`approved_hits_earnings_amount`).previousElementSibling.insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">+$${(dash.earn_hits - loaded_dash.earn_hits).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_bonus !== loaded_dash.earn_bonus) {
         document.getElementById(`bonus_earnings_amount`).previousElementSibling.insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">+$${(dash.earn_bonus - loaded_dash.earn_bonus).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_total !== loaded_dash.earn_total) {
         document.getElementById(`total_earnings_amount`).previousElementSibling.insertAdjacentHTML(`beforeend`,
           `<span style="float:right;">+$${(dash.earn_total- loaded_dash.earn_total).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_trans < loaded_dash.earn_trans) {
         document.getElementById(`transfer_earnings`).previousElementSibling.insertAdjacentHTML(`beforeend`,
           `<span style="float:right;">-$${(loaded_dash.earn_trans - dash.earn_trans).toFixed(2)}</span>`
         );
       }
    
       if (dash.earn_trans > loaded_dash.earn_trans) {
         document.getElementById(`transfer_earnings`).previousElementSibling.insertAdjacentHTML(`beforeend`,
           `<span style="float:right;">+$${(dash.earn_trans - loaded_dash.earn_trans).toFixed(2)}</span>`
         );
       }
    
       if (dash.total_sub !== loaded_dash.total_sub) {
         hit_totals[1].children[0].insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">+${(dash.total_sub - loaded_dash.total_sub)}</span>`
         );
       }
    
       if (dash.total_app !== loaded_dash.total_app) {
         hit_totals[2].children[0].insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">+${(dash.total_app - loaded_dash.total_app)}</span>`
         );
       }
    
       if (dash.total_rej !== loaded_dash.total_rej) {
         hit_totals[3].children[0].insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">+${(dash.total_rej - loaded_dash.total_rej)}</span>`
         );
       }
    
       if (dash.total_pen < loaded_dash.total_pen) {
         hit_totals[4].children[0].insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">-${(loaded_dash.total_pen - dash.total_pen)}</span>`
         );
       }
    
       if (dash.total_pen > loaded_dash.total_pen) {
         hit_totals[4].children[0].insertAdjacentHTML(`beforeend`,
           `<span style="float: right;">+${(dash.total_pen - loaded_dash.total_pen)}</span>`
         );
       }
    
       if (dash.today_sub !== loaded_dash.today_sub) {
         hit_status[1].insertAdjacentHTML(`beforeend`,
           `<span style="float: left;">+${(dash.today_sub - loaded_dash.today_sub)}</span>`
         );
       }
    
       if (dash.today_app !== loaded_dash.today_app) {
         hit_status[2].insertAdjacentHTML(`beforeend`,
           `<span style="float: left;">+${(dash.today_app - loaded_dash.today_app)}</span>`
         );
       }
    
       if (dash.today_rej !== loaded_dash.today_rej) {
         hit_status[3].insertAdjacentHTML(`beforeend`,
           `<span style="float: left;">+${(dash.today_rej - loaded_dash.today_rej)}</span>`
         );
       }
    
       if (dash.today_pen < loaded_dash.today_pen) {
         hit_status[4].insertAdjacentHTML(`beforeend`,
           `<span style="float: left;">-${(loaded_dash.today_pen - dash.today_pen)}</span>`
         );
       }
    
       if (dash.today_pen > loaded_dash.today_pen) {
         hit_status[4].insertAdjacentHTML(`beforeend`,
           `<span style="float: left;">+${(dash.today_pen - loaded_dash.today_pen)}</span>`
         );
       }
         
       chrome.runtime.sendMessage({msg: `dashboard`, data: dash});
      });
    }
    
    if (document.getElementById(`total_earnings_amount`)) {
      DASHBOARD();
    }
    
     
    • Today I Learned Today I Learned x 3
    • Like Like x 2
  3. lightningchad

    lightningchad Well-Known Turker

    Messages:
    710
    Gender:
    Male
    Ratings:
    +1,173
    you can always PM:ag:
     
    • Like Like x 1
    • Love Love x 1
  4. THFYM

    THFYM Survey Slinger Former MTG MotM

    Messages:
    8,887
    Gender:
    Male
    Ratings:
    +23,050
    [​IMG]
     
    • Like Like x 3
    • Love Love x 1
  5. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710

    Don't say I didn't warn you guys! :ban:

     
    • Like Like x 1
  6. lightningchad

    lightningchad Well-Known Turker

    Messages:
    710
    Gender:
    Male
    Ratings:
    +1,173
    [​IMG]
     
    • Like Like x 1
  7. TurkedOut

    TurkedOut Survey Slinger

    Messages:
    8,241
    Gender:
    Male
    Ratings:
    +14,450
    [​IMG]

    Or

    [​IMG] [​IMG]
     
    • Like Like x 1
    • Love Love x 1
  8. laby

    laby Survey Slinger Former MTG MotM TurkerView Masters

    Messages:
    14,768
    Gender:
    Female
    Ratings:
    +31,449
    Title: Listen to and interpret some English sentences | PANDA
    Requester: Frances Blanchette [A3D7RPCLOEO9HE] (TO)
    TO Ratings:
    [​IMG]
    ☢☢☢☢☢ 0.00 Communicativity
    ☢☢☢☢☢ 5.00 Generosity
    ☢☢☢☢☢ 5.00 Fairness
    ☢☢☢☢☢ 5.00 Promptness
    Number of Reviews: 1
    (Submit a new TO rating for this requester)

    Description: This survey asks you to listen to a series of English sentences spoken by different speakers, decide what they mean, and indicate how confident you are about the meaning you chose.
    Time: 45 minutes
    Hits Available: 1
    Reward: $2.50
    Qualifications: Masters has been granted
     
    • 5/5 Pay 5/5 Pay x 1
  9. TurkedOut

    TurkedOut Survey Slinger

    Messages:
    8,241
    Gender:
    Male
    Ratings:
    +14,450

    Qualifications: Masters has been granted

    :salt::salt::salt::salt::salt::salt::salt::salt:
     
    • Like Like x 1
  10. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710
    I mean. I am a bird after all!
     
    • Like Like x 1
  11. SurYapi

    SurYapi New Turker

    Messages:
    27
    Gender:
    Male
    Ratings:
    +17
    [​IMG]
     
    • Like Like x 1
  12. Jagdpanzer

    Jagdpanzer Survey Slinger

    Messages:
    2,960
    Gender:
    Male
    Ratings:
    +3,443

    Hey, I thought I saw my old buddy... :)

     
    • Like Like x 1
  13. TurkedOut

    TurkedOut Survey Slinger

    Messages:
    8,241
    Gender:
    Male
    Ratings:
    +14,450
    Time for a batch to show up so I can make it to $30 for the day.
     
    • Like Like x 1
  14. Randomacts

    Randomacts Survey Slinger

    Messages:
    94,624
    Gender:
    Male
    Ratings:
    +124,077

    I'll take a full queue of Robins please and thank you.
     
    • Like Like x 2
  15. TurkedOut

    TurkedOut Survey Slinger

    Messages:
    8,241
    Gender:
    Male
    Ratings:
    +14,450
    I went through and setup panda's for all 31. Have had them running for about two hours. Fingers crossed I can catch my first one before bed tonight
     
    • Like Like x 1
  16. Mechanical Jerk

    Mechanical Jerk New Turker

    Messages:
    26
    Gender:
    Male
    Ratings:
    +26
    Where did you find the 32 pandas?
     
  17. deansep

    deansep Well-Known Turker

    Messages:
    602
    Gender:
    Male
    Ratings:
    +586
    • Like Like x 2
  18. TurkedOut

    TurkedOut Survey Slinger

    Messages:
    8,241
    Gender:
    Male
    Ratings:
    +14,450
    • Like Like x 1
  19. TurkedOut

    TurkedOut Survey Slinger

    Messages:
    8,241
    Gender:
    Male
    Ratings:
    +14,450
    I should go to bed considering I have to be back to work tomorrow for the first time since before Christmas but to hell with that bring on the batches.
     
  20. deansep

    deansep Well-Known Turker

    Messages:
    602
    Gender:
    Male
    Ratings:
    +586
    Anyone know any basic web design tools? Is Joomla/weebly still any good?
     
Thread Status:
Not open for further replies.