Meta Reviews Counter

Adds an the number of meta reviews left from the name of this queue

  1. // ==UserScript==
  2. // @name Meta Reviews Counter
  3. // @version 1.0
  4. // @description Adds an the number of meta reviews left from the name of this queue
  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. // @include *://*mathoverflow.net/review
  13. // @exclude *://meta.stackexchange.com/review
  14. // @grant none
  15. // @namespace https://greatest.deepsurf.us/users/9713
  16. // ==/UserScript==
  17. $(".dashboard-count:last").addClass("mrq")
  18. $(".mrq").load("http://meta."+location.href.split("/")[2]+"/review .dashboard-num",function(){
  19. var mrc=0;
  20. $(".mrq > .dashboard-num").each(function(){
  21. mrc+=parseInt($(this).text());
  22. })
  23. $(".mrq").html('<div class="dashboard-num">'+mrc+'</div><div class="dashboard-unit">items</div>')
  24. })