Advertisement
Guest User

MMA Tycoon Fighter Hype/Pop Value

a guest
Feb 24th, 2016
1,042
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. // ==UserScript==
  2. // @name MMA Tycoon Fighter Hype/Pop Value
  3. // @namespace http://www.tycoontoo...emonkey-scripts
  4. // @description This script shows the exact Hype/Pop value on the fighter's profile page.
  5. // @include http://www.mmatycoon.com/fighterprofilemanager.php*
  6. // @include http://www.mmatycoon.com/fighterprofilepublic.php*
  7. // @include http://mmatycoon.com/fighterprofilemanager.php*
  8. // @include http://mmatycoon.com/fighterprofilepublic.php*
  9. // @include http://www.mmatycoon.com/orgpublic.php*
  10. // @version 1.1
  11. // @copyright 2014
  12. // @require http://code.jquery.com/jquery-latest.js
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. $(document).ready(function() {
  17.  
  18. var hypeValue = $("td[background*='images/barred']").attr("width").replace("%", "");
  19. hypeValue = (hypeValue * 10).toFixed(0);
  20.  
  21. var popValue = $("td[background*='images/barblue']").attr("width").replace("%", "");
  22. popValue = (popValue * 10).toFixed(0);
  23.  
  24.  
  25.  
  26.  
  27. //var energyValue = $("td[background*='images/barorange']").attr("width").replace("%", "");
  28. //energyValue = (energyValue).toFixed(0);
  29.  
  30. $("td[background*='images/barred']").next().append('<div style="position:relative;"><span id="hype"></span></div>');
  31. $("td[background*='images/barblue']").next().append('<div style="position:relative;"><span id="pop"></span></div>');
  32.  
  33. $("#hype, #pop, #kt").css({
  34. "position": "absolute",
  35. "top": "-5px",
  36. "right": "3px",
  37. "font-size": "10px",
  38. "font-weight": "bold"
  39. });
  40.  
  41. $("#hype").html(hypeValue);
  42. $("#pop").html(popValue);
  43.  
  44. if($("td[background*='images/barredkt']").attr("width").length > 0){
  45. var ktValue = $("td[background*='images/barredkt']").attr("width").replace("%", "");
  46. ktValue = (ktValue * 10).toFixed(0);
  47. $("td[background*='images/barredkt']").next().append('<div style="position:relative;"><span id="kt"></span></div>');
  48. $("#kt").html(ktValue);
  49. }
  50.  
  51. $("#kt").css({
  52. "position": "absolute",
  53. "top": "-5px",
  54. "right": "3px",
  55. "font-size": "10px",
  56. "font-weight": "bold"
  57. });
  58.  
  59.  
  60.  
  61. //$("#pop").css("position", "fixed").css("top", "50px").css("left", 0).css("font-size", "36px").css("line-height", "1");
  62. //$("#pop").html(popValue);
  63.  
  64. //$("#energy").css("position", "fixed").css("top", "100px").css("left", 0).css("font-size", "36px").css("line-height", "1");
  65. //$("#energy").html(energyValue);
  66.  
  67.  
  68. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement