GLB Decimal Attributes

sdf

  1. // ==UserScript==
  2. // @name GLB Decimal Attributes
  3. // @namespace pbr_dec
  4. // @include http://goallineblitz.com/game/player.pl?player_id=*
  5. // @version 08.12.22
  6. // @description sdf
  7. // ==/UserScript==
  8.  
  9. /*
  10. *
  11. * pabst did this 11/2/08+
  12. *
  13. */
  14.  
  15. window.setTimeout( function() {
  16. main();
  17. }, 100);
  18.  
  19. function main() {
  20. var sb = document.getElementsByClassName("stat_value_tall_boosted");
  21. for (var i=0; i<sb.length; i++) {
  22. var v = parseFloat(sb[i].innerHTML);
  23. var div = sb[i].innerHTML.indexOf("<div");
  24. if (div != -1) {
  25. div = sb[i].innerHTML.slice(div);
  26. }
  27. else {
  28. div = "";
  29. }
  30. sb[i].innerHTML = v.toFixed(2)+""+div;
  31. }
  32.  
  33. var s = document.getElementsByClassName("stat_value_tall");
  34. for (var i=0; i<14-sb.length; i++) {
  35. var v = parseFloat(s[i].innerHTML);
  36. var div = s[i].innerHTML.indexOf("<div");
  37. if (div != -1) {
  38. div = s[i].innerHTML.slice(div);
  39. }
  40. else {
  41. div = "";
  42. }
  43. s[i].innerHTML = v.toFixed(2)+""+div;
  44. }
  45.  
  46. }
  47.