Best Case Scenario by ThirdClassInternationalMasterTurker

Discussion in 'Scripts' started by jojofroyo, Feb 26, 2013.

  1. jojofroyo

    jojofroyo User

    Joined:
    Feb 12, 2013
    Messages:
    285
    Likes Received:
    0
    I dont know if any of you use this script but I love it.
    http://userscripts.org/scripts/show/145810

    One thing I noticed is that the number of HITs required to hit 99% is always been a little off, it got way worse after a batch of rejects...
    so I went into the code and figured out how to get a more accurate number of required hits to reach 99%.

    I use Tampermonkey so it was really easy to change.

    The code as downloaded is:

    if (RATE_GOOD > approved_p) {
    var p = 1.0 - RATE_GOOD/100;
    var x = (rejected-(p*submitted))/p;
    row.cells[0].innerHTML += "<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:" + COLOUR_GOOD + "\">(~" + Math.round(x) + " accepts => " + RATE_GOOD + "%)</span>";
    }
    if (RATE_OK > approved_p) {
    var p = 1.0 - RATE_OK/100;
    var x = (rejected-(p*submitted))/p;
    row.cells[0].innerHTML += "<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:" + COLOUR_OK + "\">(~" + Math.round(x) + " accepts => " + RATE_OK + "%)</span>";
    }


    Replace that section with this:


    if (RATE_GOOD > approved_p) {
    var p = 1.0 - RATE_GOOD/100;
    var x = (rejected-(p*approved))/p;
    row.cells[0].innerHTML += "<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:" + COLOUR_GOOD + "\">(~" + Math.round(x) + " accepts => " + RATE_GOOD + "%)</span>";
    }
    if (RATE_OK > approved_p) {
    var p = 1.0 - RATE_OK/100;
    var x = (rejected-(p*approved))/p;
    row.cells[0].innerHTML += "<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:" + COLOUR_OK + "\">(~" + Math.round(x) + " accepts => " + RATE_OK + "%)</span>";
    }



    It will now display the exact number of HITs you need approved to reach 99%. It made a difference of almost a 1000 HITs on how many I need approved before I can reach 99% again.

    Just thought I'd share what I had came up with, hope it helps.

    Good turkin'
     
    #1 jojofroyo, Feb 26, 2013
    Last edited by a moderator: Feb 26, 2013

Share This Page