Advertisement
Guest User

MMA Tycoon Fighter Hype/Pop Value

a guest
Aug 26th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 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. // @version 1.0
  10. // @copyright 2014
  11. // @require http://code.jquery.com/jquery-latest.js
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. $(document).ready(function() {
  16.  
  17. var hypeValue = $("td[background*='images/barred']").attr("width").replace("%", "");
  18. hypeValue = (hypeValue * 10).toFixed(0);
  19.  
  20. var popValue = $("td[background*='images/barblue']").attr("width").replace("%", "");
  21. popValue = (popValue * 10).toFixed(0);
  22.  
  23. //var energyValue = $("td[background*='images/barorange']").attr("width").replace("%", "");
  24. //energyValue = (energyValue).toFixed(0);
  25.  
  26. $("td[background*='images/barred']").next().append('<div style="position:relative;"><span id="hype"></span></div>');
  27. $("td[background*='images/barblue']").next().append('<div style="position:relative;"><span id="pop"></span></div>');
  28.  
  29. $("#hype, #pop").css({
  30. "position": "absolute",
  31. "top": "-5px",
  32. "right": "3px",
  33. "font-size": "10px",
  34. "font-weight": "bold"
  35. });
  36.  
  37. $("#hype").html(hypeValue);
  38. $("#pop").html(popValue);
  39.  
  40. //$("#pop").css("position", "fixed").css("top", "50px").css("left", 0).css("font-size", "36px").css("line-height", "1");
  41. //$("#pop").html(popValue);
  42.  
  43. //$("#energy").css("position", "fixed").css("top", "100px").css("left", 0).css("font-size", "36px").css("line-height", "1");
  44. //$("#energy").html(energyValue);
  45.  
  46.  
  47. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement