Advertisement
Guest User

MMA Tycoon Org Fighter Hype/Pop Extractor

a guest
Aug 26th, 2015
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. // ==UserScript==
  2. // @name MMA Tycoon Org Fighter Hype/Pop Extractor
  3. // @namespace http://www.tycoontools.com/greasemonkey-scripts
  4. // @description This script shows the exact hype and popularity values of fighters in your org, on the Fighter List and Full Fighter List pages.
  5. // @include http://www.mmatycoon.com/orgfighterlistpublic.php*
  6. // @include http://mmatycoon.com/orgfighterlistpublic.php*
  7. // @include http://www.mmatycoon.com/orgfighterlist.php*
  8. // @include http://mmatycoon.com/orgfighterlist.php*
  9. // @include http://www.mmatycoon.com/orgfighterlistfull.php*
  10. // @include http://mmatycoon.com/orgfighterlistfull.php*
  11. // @version 1.1
  12. // @copyright 2010
  13. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
  14. // ==/UserScript==
  15.  
  16. function Main() {
  17. // add the header to each weight-level table
  18. jQuery("strong:contains('Hype')").parent("td").after("<td><strong>Hype + Pop Value</strong></td>");
  19.  
  20. // for each hype&pop bar, get the value & add the column with it as the value
  21. jQuery("td[background*='images/bar']")
  22. .each(
  23. function () {
  24. var hypeValue = jQuery(this).attr("width").replace("%", "");
  25. hypeValue = (hypeValue * 10).toFixed(2);
  26. jQuery(this).parent("tr").parent("tbody").parent("table").parent("td").after("<td>" + hypeValue + "</td>");
  27. }
  28. );
  29. }
  30.  
  31. Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement