Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MMA Tycoon Org Page Hype/Pop Value
- // @namespace http://www.tycoontoo...emonkey-scripts
- // @description This script shows the exact Hype/Pop value on the org's page.
- // @include http://www.mmatycoon.com/orgpublic.php*
- // @include http://mmatycoon.com/orgpublic.php*
- // @version 1.1
- // @copyright 2014
- // @require http://code.jquery.com/jquery-latest.js
- // @grant none
- // ==/UserScript==
- $(document).ready(function() {
- var hypeValue = $("td[background*='images/bargreen']").attr("width").replace("%", "");
- hypeValue = (hypeValue * 10).toFixed(0);
- var popValue = $("td[background*='images/barblue']").attr("width").replace("%", "");
- popValue = (popValue * 10).toFixed(0);
- $("td[background*='images/bargreen']").next().append('<div style="position:relative;"><span id="hype"></span></div>');
- $("td[background*='images/barblue']").next().append('<div style="position:relative;"><span id="pop"></span></div>');
- $("#hype, #pop, #kt").css({
- "position": "absolute",
- "top": "-5px",
- "right": "3px",
- "font-size": "10px",
- "font-weight": "bold"
- });
- $("#hype").html(hypeValue);
- $("#pop").html(popValue);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement