Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MMA Tycoon Org Fighter Hype/Pop Extractor
- // @namespace http://www.tycoontools.com/greasemonkey-scripts
- // @description This script shows the exact hype and popularity values of fighters in your org, on the Fighter List and Full Fighter List pages.
- // @include http://www.mmatycoon.com/orgfighterlistpublic.php*
- // @include http://mmatycoon.com/orgfighterlistpublic.php*
- // @include http://www.mmatycoon.com/orgfighterlist.php*
- // @include http://mmatycoon.com/orgfighterlist.php*
- // @include http://www.mmatycoon.com/orgfighterlistfull.php*
- // @include http://mmatycoon.com/orgfighterlistfull.php*
- // @version 1.1
- // @copyright 2010
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
- // ==/UserScript==
- function Main() {
- // add the header to each weight-level table
- jQuery("strong:contains('Hype')").parent("td").after("<td><strong>Hype + Pop Value</strong></td>");
- // for each hype&pop bar, get the value & add the column with it as the value
- jQuery("td[background*='images/bar']")
- .each(
- function () {
- var hypeValue = jQuery(this).attr("width").replace("%", "");
- hypeValue = (hypeValue * 10).toFixed(2);
- jQuery(this).parent("tr").parent("tbody").parent("table").parent("td").after("<td>" + hypeValue + "</td>");
- }
- );
- }
- Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement