Advertisement
Guest User

MMA Tycoon Org Page Hype/Pop Value

a guest
Mar 9th, 2016
771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. // ==UserScript==
  2. // @name MMA Tycoon Org Page Hype/Pop Value
  3. // @namespace http://www.tycoontoo...emonkey-scripts
  4. // @description This script shows the exact Hype/Pop value on the org's page.
  5. // @include http://www.mmatycoon.com/orgpublic.php*
  6. // @include http://mmatycoon.com/orgpublic.php*
  7. // @version 1.1
  8. // @copyright 2014
  9. // @require http://code.jquery.com/jquery-latest.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function() {
  14.  
  15. var hypeValue = $("td[background*='images/bargreen']").attr("width").replace("%", "");
  16. hypeValue = (hypeValue * 10).toFixed(0);
  17.  
  18. var popValue = $("td[background*='images/barblue']").attr("width").replace("%", "");
  19. popValue = (popValue * 10).toFixed(0);
  20.  
  21. $("td[background*='images/bargreen']").next().append('<div style="position:relative;"><span id="hype"></span></div>');
  22. $("td[background*='images/barblue']").next().append('<div style="position:relative;"><span id="pop"></span></div>');
  23.  
  24. $("#hype, #pop, #kt").css({
  25. "position": "absolute",
  26. "top": "-5px",
  27. "right": "3px",
  28. "font-size": "10px",
  29. "font-weight": "bold"
  30. });
  31.  
  32. $("#hype").html(hypeValue);
  33. $("#pop").html(popValue);
  34.  
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement