11/04 - Fascinating Friday!

Status
Not open for further replies.

SquishyFluffkin

Well-Known Member
Contributor
Joined
Jan 18, 2016
Messages
3,067
Reaction score
6,909
Points
838
Age
35
Location
Walton KY
Gender
Male
If someone posts this smiley:eyeroll:in reply whenever someone makes a bragging PE post I'll add your button. Also I will like your posts. Also I will send you a PM with all of my super secret batches.

Log in or register now. to view Spoiler content!

Bonus points if you also :eyeroll:all $30 a day posts.

Extra bonus points if you :eyeroll:whenever someone posts a wiktor export.

...I should learn how to make a bot.
I'm not even playing, but I'll do my duty!
 
  • Like
Reactions: TSolo315

aveline

Well-Known Member
Administrator
Champion
Joined
Jan 10, 2016
Messages
36,577
Reaction score
104,546
Points
2,088
Location
Las Vegas
Gender
Female
Extra bonus points if you :eyeroll:whenever someone posts a wiktor export.
Wiktor doesn't even post, though. Like maybe once every couple of weeks there will be a batch that you can make $20 on, but it's hardly worth hating on. And I believe that goes for both of the wiktor quals.
 

Roscoe E Goldchain

Hood Haiku Specialist
Contributor
HIT Poster
Joined
Jan 25, 2016
Messages
11,770
Reaction score
28,998
Points
1,438
Location
VA
Gender
Male

Jaded

The real themildone
Administrator
Joined
Jan 10, 2016
Messages
46,637
Reaction score
123,874
Points
1,414
Age
124
Gender
Female
I don't think that one has weekly, unless it's been updated since I last tried it out.
I have no idea how to get the link, so here's the code.
Code:
// ==UserScript==
// @name        mmmturkeybacon Expected Earnings - Projected Earnings This Week
// @author      mmmturkeybacon
// @description Shows projected earnings for the current week assuming all HITs are approved. If you complete a HIT after the HIT's status page has been processed by this script it will not be shown in the total until cookies are cleared and the total is recalculated by processing all of the pages again. Bonuses are also not shown in the total. The start of the week is determined by the setting in mmmturkeybacon Seven Days Dashboard and Weekly Total; the default value is Sunday.
// @namespace   http://userscripts.org/users/523367
// @match       https://www.mturk.com/mturk/dashboard
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @version     1.26
// @grant       GM_xmlhttpRequest
// ==/UserScript==

var DATE_LIST_DELAY = 500;
var STATUSDETAIL_DELAY = 500;
var MPRE_DELAY = 2000;
var STATUSDETAIL_BASE_URL = '/mturk/statusdetail?encodedDate=';
var PROJECTED_EARNINGS_WEEK_DIV_TEXT = 'Projected Earnings This Week ';

var global_run = false;
var statusdetail_loop_finished = false;
var resume_date = 0;
var resume_page = 0;
var page_total = 0;
var subtotal = 0;
var page_num = 1;

var projected_earnings_week_div = document.createElement('DIV');
var projected_earnings_week_field = document.createElement('TD');

//var amazon_timezone_offset = -25200000; //PDT:-25200000, PST:-28800000
var amazon_timezone_offset = parseInt(getCookie('mmmturkeybacon_seven_days_dashboard_amazon_timezone_offset'), 10);
if (!amazon_timezone_offset)
{
    GM_xmlhttpRequest(
    {
        method: 'GET',
        url: 'https://maps.googleapis.com/maps/api/timezone/json?location=47.6097,-122.3331&timestamp='+(new Date()).getTime()/1000+'&sensor=false',
        synchronous: true,
        onload: function (results)
        {
            var rdata = $.parseJSON(results.responseText);
            amazon_timezone_offset = rdata['dstOffset']*1000 + rdata['rawOffset']*1000;
            setCookie('mmmturkeybacon_seven_days_dashboard_amazon_timezone_offset', amazon_timezone_offset, 1);
        }
    });
}

var amazon_time_ms = (new Date()).getTime() + amazon_timezone_offset;

if (localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week') == null)
{
    localStorage.setItem('mmmturkeybacon_seven_days_dashboard_start_of_week', '0');  // '0' for Sunday, '1' for Monday, etc.
}

if (localStorage.getItem('mmmturkeybacon_projected_earnings_this_week_start_of_week') != localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week'))
{
    clearCookies();
    localStorage.setItem('mmmturkeybacon_projected_earnings_this_week_start_of_week', localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week'));
}

function set_progress_report(text, force)
{
    if (global_run == true || force == true)
    {
        projected_earnings_week_div.innerHTML = text;
    }
}

function wait_until_finished()
{
    if (global_run == true)
    {
        if (statusdetail_loop_finished == true)
        {
            /* The page_total isn't added to subtotal before it is saved because the last page
             * might not be a full page. It's easier to rescrape the entire last page than to
             * remember the position of the last HIT scraped on a page. Additionally since HITs
             * are often worked on in an order different than they were accepted there might be
             * a HIT that gets inserted before the last HIT we scraped. */
            setCookie('mmmturkeybacon_projected_earnings_week_total', subtotal+page_total, 7);
            setCookie('mmmturkeybacon_projected_earnings_week_subtotal', subtotal, 7);
            setCookie('mmmturkeybacon_projected_earnings_week_resume_page', page_num, 7);

            global_run = false;
            projected_earnings_week_div.innerHTML = PROJECTED_EARNINGS_WEEK_DIV_TEXT;
            projected_earnings_week_field.innerHTML = '$' + ((subtotal+page_total)/100).toFixed(2);
        }
        else
        {
            setTimeout(function(){wait_until_finished();}, 500);
        }
    }
}

function scrape($src)
{
    var $reward = $src.find('td[class="statusdetailStatusColumnValue"]:not(:contains("Rejected"))').siblings('td[class="statusdetailAmountColumnValue"]');
    page_total = 0;

    for (var j = 0; j < $reward.length; j++)
    {
        // I'm worried if I use parseFloat errors will accumulate because floats are inexact
        page_total += parseInt($reward.eq(j).text().replace(/[^0-9]/g,''), 10);             
    }
}

function statusdetail_loop(next_URL)
{
    if (global_run == true)
    {
        if (next_URL.length != 0)
        {
            $.get(next_URL, function(data)
            {
                var $src = $(data);
                var maxpagerate = $src.find('td[class="error_title"]:contains("You have exceeded the maximum allowed page request rate for this website.")');
                if (maxpagerate.length == 0)
                {
                    subtotal += page_total;
                    setCookie('mmmturkeybacon_projected_earnings_week_subtotal', subtotal, 7);
                    setCookie('mmmturkeybacon_projected_earnings_week_resume_page', page_num, 7);

                    var date_header = $src.find('td[class="white_text_14_bold"]:contains("HITs You Worked On For")').text().replace(/HITs You Worked On For|\(What\'s this\?\)/g, '').trim();
                    set_progress_report('Processing ' + date_header + ' - page ' + page_num);

                    scrape($src);

                    $next_URL = $src.find('a[href^="/mturk/statusdetail"]:contains("Next")');
                    next_URL = ($next_URL.length != 0) ? $next_URL.attr('href') : '';

                    if (next_URL != 0)
                    {
                        page_num++;
                        next_URL = $next_URL.attr('href');
                    }
                    else
                    {
                        next_URL = '';
                    }

                    setTimeout(function(){statusdetail_loop(next_URL);}, STATUSDETAIL_DELAY);
                }
                else
                {
                    setTimeout(function(){statusdetail_loop(next_URL);}, MPRE_DELAY);
                }
            });
        }
        else
        {
            statusdetail_loop_finished = true;
        }
    }
}

function date_list_loop(date_URLs)
{
    if (global_run == true)
    {
        if (date_URLs.length != 0)
        {
            if (statusdetail_loop_finished == true)
            {
                page_num = 1;
                statusdetail_loop_finished = false;

                var date_URL = date_URLs.pop();
                var mmddyyyy = date_URL.replace(STATUSDETAIL_BASE_URL, '');
                var yyyymmdd = mmddyyyy.substring(4) + mmddyyyy.substring(0,4);
                setCookie('mmmturkeybacon_projected_earnings_week_resume_date', yyyymmdd, 7);

                var next_URL = date_URL + '&sortType=All&pageNumber=1';
                if (yyyymmdd == resume_date)
                {
                    page_num = resume_page;
                    next_URL = date_URL + '&sortType=All&pageNumber='+resume_page;
                }

                statusdetail_loop(next_URL);

                setTimeout(function(){date_list_loop(date_URLs);}, DATE_LIST_DELAY);
            }
            else
            {
                setTimeout(function(){date_list_loop(date_URLs);}, DATE_LIST_DELAY);
            }
        }
        else
        {
            wait_until_finished();
        }
    }
}


function draw_interface()
{
    var new_row = document.createElement('TR');
    new_row.id = 'projected_earnings_week';

    var projected_earnings_week_clear_cookies_div = document.createElement('DIV');
    projected_earnings_week_clear_cookies_div.innerHTML = '<font color="red">x</font>';
    projected_earnings_week_clear_cookies_div.title = 'Click to clear and recalculate.';
    projected_earnings_week_clear_cookies_div.style.cssText = 'display: inline; cursor: pointer';
    projected_earnings_week_clear_cookies_div.onclick = function(){clearCookies(); start_running();};

    projected_earnings_week_div.title = 'Click to calculate/stop.';
    projected_earnings_week_div.style.cssText = 'display: inline; cursor: pointer';
    projected_earnings_week_div.onclick = function(){start_running();};
    projected_earnings_week_div.onmouseover = function(){var d = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']; this.title = 'Click to calculate/stop.' + ' Week starts on ' + d[Number(localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week'))] + '.'};

    var projected_earnings_week_div_cell = document.createElement('TD');
    projected_earnings_week_div_cell.className = 'metrics-table-first-value';
    projected_earnings_week_div_cell.style.paddingLeft = '3px';
    projected_earnings_week_div_cell.appendChild(projected_earnings_week_clear_cookies_div);
    projected_earnings_week_div_cell.appendChild(document.createTextNode(' '));
    projected_earnings_week_div_cell.appendChild(projected_earnings_week_div);

    new_row.appendChild(projected_earnings_week_div_cell);
    new_row.appendChild(projected_earnings_week_field);

    var $expected_earnings_header = $('tr[id="expected_earnings_row"]');
    if ($expected_earnings_header.length > 0)
    {

        // Approved, Pending, Projected Month, Projected Week, Projected Today
        var $projected_earnings_today_row = $('tr[id="projected_earnings_today"]');
        if ($projected_earnings_today_row.length > 0)
        {
            $projected_earnings_today_row.before(new_row);
        }
        else
        {
            $expected_earnings_header.nextAll('tr').last().after(new_row);
        }
        $expected_earnings_header.nextAll('tr').each(function(index)
        {
            $(this).attr('class', ((index % 2 == 0) ? 'odd' : 'even'));
        });
    }
    else
    {
        var $transfer_earnings_row = $('a[href="/mturk/transferearnings"]:contains("Transfer Earnings")').parent().parent();
        $transfer_earnings_row.after('<tr id="expected_earnings_row" class="metrics-table-header-row"><th class="metrics-table-first-header">Expected Earnings</th><th>Value</th></tr>');
        $expected_earnings_header = $('tr[id="expected_earnings_row"]');
        new_row.className = 'odd';
        $expected_earnings_header.after(new_row);
    }


    projected_earnings_week_div.innerHTML = PROJECTED_EARNINGS_WEEK_DIV_TEXT;
    projected_earnings_week_field.innerHTML = '$?.??';
    var saved_total = parseInt(getCookie('mmmturkeybacon_projected_earnings_week_total'), 10);
    if (saved_total)
    {
        projected_earnings_week_field.innerHTML = '$' + (saved_total/100).toFixed(2);
    }

}

function start_running()
{
    if (localStorage.getItem('mmmturkeybacon_projected_earnings_this_week_start_of_week') != localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week'))
    {
        clearCookies();
        localStorage.setItem('mmmturkeybacon_projected_earnings_this_week_start_of_week', localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week'));
    }

    if (global_run == false)
    {
        global_run = true;
        statusdetail_loop_finished = true;
        page_total = 0;
        page_num = 1;

        resume_date = getCookie('mmmturkeybacon_projected_earnings_week_resume_date');
        subtotal = parseInt(getCookie('mmmturkeybacon_projected_earnings_week_subtotal'), 10);
        resume_page = parseInt(getCookie('mmmturkeybacon_projected_earnings_week_resume_page'), 10);

        resume_date = (resume_date) ? resume_date : 0;
        subtotal = (subtotal) ? subtotal : 0;
        resume_page = (resume_page) ? resume_page : 1;

        projected_earnings_week_div.innerHTML = PROJECTED_EARNINGS_WEEK_DIV_TEXT;
        projected_earnings_week_field.innerHTML = '$?.??';

        $.get('/mturk/status', function(data)
        {
            var $src = $(data);
            var maxpagerate = $src.find("td[class='error_title']:contains('You have exceeded the maximum allowed page request rate for this website.')");
            if (maxpagerate.length == 0)
            {
                var week_start = new Date(amazon_time_ms);
                week_start.setUTCDate(week_start.getUTCDate() - ((7 - Number(localStorage.getItem('mmmturkeybacon_seven_days_dashboard_start_of_week')) + week_start.getUTCDay()) % 7));

                //http://stackoverflow.com/questions/3605214/javascript-add-leading-zeroes-to-date
                var week_start_date =  week_start.getUTCFullYear() + ('0' + (week_start.getUTCMonth()+1)).slice(-2) + ('0' + week_start.getUTCDate()).slice(-2);

                var begin_date = resume_date;
                if (resume_date < week_start_date)
                {
                    begin_date = week_start_date;
                    clearCookies();
                    resume_date = 0;
                    subtotal = 0;
                    resume_page = 1;
                }

                var date_URLs = new Array();
                $src.find('a[href^="/mturk/statusdetail"]').filter(function()
                {
                    var mmddyyyy = $(this).attr('href').substring(32);
                    var yyyymmdd = mmddyyyy.substring(4) + mmddyyyy.substring(0,4);
                    return (yyyymmdd >= begin_date);
                }).each(function(){date_URLs.push($(this).attr('href'));});

                date_list_loop(date_URLs);
            }
        });
    }
    else
    {
        global_run = false; // this will stop scraping pages prematurely
        projected_earnings_week_div.innerHTML = PROJECTED_EARNINGS_WEEK_DIV_TEXT + '- stopped! ';
        projected_earnings_week_field.innerHTML = '$?.??';
    }
}


//
//  Cookie functions copied from http://www.w3schools.com/JS/js_cookies.asp
//

function setCookie(c_name,value,exdays)
{
   var exdate=new Date();
   exdate.setDate(exdate.getDate() + exdays);
   var c_value=escape(value) + ((exdays==null) ? '' : '; expires='+exdate.toUTCString());
   document.cookie=c_name + '=' + c_value;
}


function getCookie(c_name)
{
   var i,x,y,ARRcookies=document.cookie.split(';');
   for (i=0;i<ARRcookies.length;i++)
   {
      x=ARRcookies[i].substr(0,ARRcookies[i].indexOf('='));
      y=ARRcookies[i].substr(ARRcookies[i].indexOf('=')+1);
      x=x.replace(/^\s+|\s+$/g,'');
      if (x==c_name)
      {
         return unescape(y);
      }
   }
}

function clearCookies()
{
   setCookie('mmmturkeybacon_projected_earnings_week_resume_date', 0, 7);
   setCookie('mmmturkeybacon_projected_earnings_week_total', 0, 7);
   setCookie('mmmturkeybacon_projected_earnings_week_subtotal', 0, 7);
   setCookie('mmmturkeybacon_projected_earnings_week_resume_page', 1, 7);
   setCookie('mmmturkeybacon_seven_days_dashboard_amazon_timezone_offset', 0, 1);
   return true;
}

draw_interface();
 

Zuk011

A master of karate, and friendship, for everyone.
Contributor
Joined
Mar 25, 2016
Messages
52
Reaction score
102
Points
308
Gender
Female
Has anybody picked up any Are These Receipts The Same Zings today? I've been running a panda for the last 3 hours and haven't grabbed any.
same here. none
 
  • Like
Reactions: ...

kryss

carburante al fuoco
Former Admin
Joined
Jan 10, 2016
Messages
20,910
Reaction score
61,580
Points
1,488
If someone posts this smiley:eyeroll:in reply whenever someone makes a bragging PE post I'll add your button. Also I will like your posts. Also I will send you a PM with all of my super secret batches.

Log in or register now. to view Spoiler content!

Bonus points if you also :eyeroll:all $30 a day posts.

Extra bonus points if you :eyeroll:whenever someone posts a wiktor export.

...I should learn how to make a bot.
Title: Decide if a Video is about a Topic | PANDA
Requester: Sergey Schmidt [A4IJUXTMQNS4J] (TO)
TO Ratings:

☢☢☢☢☢ 0.00 Communicativity
☢☢☢☢☢ 3.50 Generosity
☢☢☢☢☢ 5.00 Fairness
☢☢☢☢☢ 5.00 Promptness
Number of Reviews: 6
(Submit a new TO rating for this requester)
Description: Given a video and a topic, decide how well the topic is fitting for the video, using a fixed scale.
Time: 5 minutes
Hits Available: 358
Reward: $0.10
Qualifications: Location is US; wiktor-centrality has been granted

Today's Projected Earnings: $295
Log in or register now. to view Spoiler content!
 

aveline

Well-Known Member
Administrator
Champion
Joined
Jan 10, 2016
Messages
36,577
Reaction score
104,546
Points
2,088
Location
Las Vegas
Gender
Female
Has anybody picked up any Are These Receipts The Same Zings today? I've been running a panda for the last 3 hours and haven't grabbed any.
same here. none
I don't have it, but they changed the panda. They also decreased the timer to six minutes.
 

SquishyFluffkin

Well-Known Member
Contributor
Joined
Jan 18, 2016
Messages
3,067
Reaction score
6,909
Points
838
Age
35
Location
Walton KY
Gender
Male
Title: Decide if a Video is about a Topic | PANDA
Requester: Sergey Schmidt [A4IJUXTMQNS4J] (TO)
TO Ratings:

☢☢☢☢☢ 0.00 Communicativity
☢☢☢☢☢ 3.50 Generosity
☢☢☢☢☢ 5.00 Fairness
☢☢☢☢☢ 5.00 Promptness
Number of Reviews: 6
(Submit a new TO rating for this requester)
Description: Given a video and a topic, decide how well the topic is fitting for the video, using a fixed scale.
Time: 5 minutes
Hits Available: 358
Reward: $0.10
Qualifications: Location is US; wiktor-centrality has been granted

Today's Projected Earnings: $295
Log in or register now. to view Spoiler content!
:eyeroll:
 

Roscoe E Goldchain

Hood Haiku Specialist
Contributor
HIT Poster
Joined
Jan 25, 2016
Messages
11,770
Reaction score
28,998
Points
1,438
Location
VA
Gender
Male
Title: Decide if a Video is about a Topic | PANDA
Requester: Sergey Schmidt [A4IJUXTMQNS4J] (TO)
TO Ratings:

☢☢☢☢☢ 0.00 Communicativity
☢☢☢☢☢ 3.50 Generosity
☢☢☢☢☢ 5.00 Fairness
☢☢☢☢☢ 5.00 Promptness
Number of Reviews: 6
(Submit a new TO rating for this requester)
Description: Given a video and a topic, decide how well the topic is fitting for the video, using a fixed scale.
Time: 5 minutes
Hits Available: 358
Reward: $0.10
Qualifications: Location is US; wiktor-centrality has been granted

Today's Projected Earnings: $295
Log in or register now. to view Spoiler content!
relax...
 

TSolo315

SnapNCrackle
Administrator
Joined
Jan 12, 2016
Messages
5,000
Reaction score
16,977
Points
2,538
Gender
Male
Wiktor doesn't even post, though. Like maybe once every couple of weeks there will be a batch that you can make $20 on, but it's hardly worth hating on. And I believe that goes for both of the wiktor quals.
I'm just personally :salt: about that one because when I took the qual test I got the same score as others who got the qual but didn't get it :rage:
 

Squatty

.
Contributor
Crowd Pleaser
HIT Poster
Joined
Mar 17, 2016
Messages
21,286
Reaction score
44,989
Points
2,538
Age
36
Gender
Female
Title: Product Survey and Trade Survey(~ 15 minutes) | PANDA
Requester: Jane Lawrence Sumner [ADRO8L0XETWV6] (Contact)
(TO): [Pay: 4.27] [Fair: 5.00] [Comm: 5.00] [Fast: 4.89]
Description:
This HIT contains one survey about marketing and one survey about trade.
Time: 30 minutes
HITs Available: 1
Reward: $1.00
Qualifications: Total approved HITs is not less than 100; Exc: [802577-25035] has not been granted; HIT approval rate (%) is not less than 80; Location is one of: US;
 

aveline

Well-Known Member
Administrator
Champion
Joined
Jan 10, 2016
Messages
36,577
Reaction score
104,546
Points
2,088
Location
Las Vegas
Gender
Female
That's a bummer. I love doing those at work because I don't have to actively do anything while they queue up for an hour.
Yeah, with a six minute timer, I won't even attempt them. It doesn't exactly leave much time to do anything else while you wait for them to queue. There are far better things that I could be doing than sitting here watching pennies slowly trickle in.
 

Zuk011

A master of karate, and friendship, for everyone.
Contributor
Joined
Mar 25, 2016
Messages
52
Reaction score
102
Points
308
Gender
Female
I don't have it, but they changed the panda. They also decreased the timer to six minutes.
bitches... I can't wander off anymore.
 
  • Like
Reactions: kryss

ducky

good brain, good life
Mentor
Contributor
Joined
Jul 19, 2016
Messages
8,709
Reaction score
23,680
Points
1,013
Gender
Female
If someone posts this smiley:eyeroll:in reply whenever someone makes a bragging PE post I'll add your button. Also I will like your posts. Also I will send you a PM with all of my super secret batches.

Log in or register now. to view Spoiler content!

Bonus points if you also :eyeroll:all $30 a day posts.

Extra bonus points if you :eyeroll:whenever someone posts a wiktor export.

...I should learn how to make a bot.
i dont post my PE anymore, what do i get?
 
Status
Not open for further replies.