Review progress for today

Adds your review progress for today

  1. // ==UserScript==
  2. // @name Review progress for today
  3. // @version 1.01
  4. // @description Adds your review progress for today
  5. // @author nicael
  6. // @include *://*.stackexchange.com/review/*
  7. // @include *://*stackoverflow.com/review/*
  8. // @include *://*serverfault.com/review/*
  9. // @include *://*superuser.com/review/*
  10. // @include *://*askubuntu.com/review/*
  11. // @include *://*stackapps.com/review/*
  12. // @grant none
  13. // @namespace https://greasyfork.org/users/9713
  14. // ==/UserScript==
  15.  
  16. setInterval(function(){
  17. if($("smp").length===0){$("#badge-progress-count").prepend("<tm style='display:none'></tm><smp>...</smp> <div class='meter' style='display:inline-block;width:100px;height:9px;margin-top:1.3px;margin-right:5px;margin-left:5px;'><div style='background-color:#8fc77e;width:0%;' class='prg'></div></div> | ");}
  18. var sz = 0;$("tm").load(location.href.replace(location.href.split("/")[5], "") + "/stats .review-stats-count:first", function () {
  19. sz = parseInt($("tm > a").text().replace(/,/, ""));
  20. sz = sz > 1000 ? 40 : 20;
  21. $("tm").remove();
  22. $("smp").load(location.href.replace(location.href.split("/")[5], "") + "/stats .review-stats-count-current-user:first", function() {
  23. $("smp > td").removeClass("review-stats-count-current-user");
  24. $("smp > td").css({
  25. "display": "inline"
  26. });
  27. $(".prg").css({
  28. "width": parseInt($("smp").text())/sz*100 + "%"
  29. });
  30. $("smp").text($("smp").text()+" / "+sz);
  31. });
  32. });
  33. },500)