Posted in Premium, but thought others might like it too...
Run the script below when viewing the Picks screen. It will tell you how much money you would get if your team wins based on current wages and potential total winnings at the bottom.
In Firefox, this can be done by going to Tools/Web Developer/Scratchpad. NOTE: YOU MAY NEED TO RECONNECT "BROKEN" LINES FIRST.
In Chrome, go to Tools/Javascript Console.
-----------------------
jq = document.createElement('script');
jq.onload = magic;
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
function magic () {
if (jQuery('.winnings').length) return;
jQuery('td.wager').after('<td class="winnings" rowspan="2" style="width:110px;font-size:small;color:white;background-color:maroon;"> </td> ');
jQuery('table.recordedit').append('<tr> <td id="potential" colspan="5" style="text-align:right;padding:15px;color:white;background-color:maroon;"> </td> </tr> ');
function update(winnings) {
wager = parseInt(jQuery(winnings).prev().find('input').val());
picked1 = jQuery(winnings).prev().prev().find('input').is(':checked');
picked2 = jQuery(winnings).parent().next().find('input').is(':checked');
waged1 = parseInt(jQuery(winnings).closest('.wagercontrol').prev().find('tr').eq(1).find('td').eq(1).html().replace('Wagers: $', ''));
waged2 = parseInt(jQuery(winnings).closest('.wagercontrol').prev().find('tr').eq(4).find('td').eq(1).html().replace('Wagers: $', ''));
if (picked1 && waged1 && wager)
total = Math.round(wager + waged2 * wager / waged1);
else if (picked2 && waged2 && wager)
total = Math.round(wager + waged1 * wager / waged2);
else
total = 0;
jQuery(winnings).html("$" + total.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","));
}
function updateTotal() {
potential = 0;
jQuery(".winnings").each(function () {
potential += parseInt(jQuery(this).text().replace(/\$|,/gi,""));
});
jQuery("#potential").html("Total potential winnings: $" + potential.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","));
}
jQuery(".winnings").each(function () {
update(this);
jQuery(this).prev().find('input').keyup(function () {
update(jQuery(this).parent().next());
updateTotal();
});
jQuery(this).prev().prev().find('input').change(function () {
if (jQuery(this).is(':checked')) {
update(jQuery(this).parent().parent().find('.winnings'));
updateTotal();
}
});
jQuery(this).parent().next().find('input').change(function () {
if (jQuery(this).is(':checked')) {
update(jQuery(this).parent().parent().prev().find('.winnings'));
updateTotal();
}
});
});
updateTotal();
}
[This message has been edited by rynning (edited 9/12/2013 1:04p).]