Archive for glbscripts.myfreeforum.org Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 



       glbscripts.myfreeforum.org Forum Index -> Original Scripts
SNAITF

Player Compare

I've written a player comparison script that can be found here:

http://userscripts.org/scripts/show/29445

It allows you to pin(remember) a player whose stats you can see.  When visiting another players page (whose stats you can see) it provides a link(blue and yellow arrow icon) that will open a popup with the pinned players Player Attributes and Special Abilities.

Please post any problems/suggestions here.
Wrath Of Conor

I installed this script and tested it. I have 2 bugs/suggestions.

When I 'compared' on the second player's screen, the close button just whited out the compare window but left it there covering up half of the page.

Also, the compare window didn't retain the blue numbers which represent atty's that have been upped by EQ. All of the stats were black. Likewise for the SA trees, it didn't retain which tree was upgraded from custom EQ.
SNAITF

Wrath Of Conor wrote:
I installed this script and tested it. I have 2 bugs/suggestions.

When I 'compared' on the second player's screen, the close button just whited out the compare window but left it there covering up half of the page.

Also, the compare window didn't retain the blue numbers which represent atty's that have been upped by EQ. All of the stats were black. Likewise for the SA trees, it didn't retain which tree was upgraded from custom EQ.


the colored stats(EQ boosted), ya, I didn't try to persist that

when you say

"When I 'compared' on the second player's screen, the close button just whited out the compare window but left it there covering up half of the page."

does it do this everytime? what version of firefox and greasemonkey are you using?

could you include a screenshot? Very Happy

this is what mine looks like open

m1k3

Thanks for filling  my request Very Happy!!!
Wrath Of Conor

SNAITF wrote:
Wrath Of Conor wrote:
I installed this script and tested it. I have 2 bugs/suggestions.

When I 'compared' on the second player's screen, the close button just whited out the compare window but left it there covering up half of the page.

Also, the compare window didn't retain the blue numbers which represent atty's that have been upped by EQ. All of the stats were black. Likewise for the SA trees, it didn't retain which tree was upgraded from custom EQ.


the colored stats(EQ boosted), ya, I didn't try to persist that

when you say

"When I 'compared' on the second player's screen, the close button just whited out the compare window but left it there covering up half of the page."

does it do this everytime? what version of firefox and greasemonkey are you using?

could you include a screenshot? Very Happy

this is what mine looks like open



Sure, I see that window fine, it's when I click on the close link in the window, the window doesn't disappear, it stays, but whites out the image. I am using Firefox 3.0 and Greasemonkey 0.8.20080609.0

Here's my screen shot:[/img]
SNAITF

wrath, what other scripts do you have installed?  I don't need a list of all scripts, just the script that apply to the player page, to discover this, go to a player page (like the one in your screen shot) and right click the greasemonkey icon, it should list the scripts that are in effect for that page.

like this:



the reason I ask this is I think this is caused by a conflict with another script and I want to try to narrow it down.
Wrath Of Conor

SNAITF wrote:
wrath, what other scripts do you have installed?  I don't need a list of all scripts, just the script that apply to the player page, to discover this, go to a player page (like the one in your screen shot) and right click the greasemonkey icon, it should list the scripts that are in effect for that page.

like this:



the reason I ask this is I think this is caused by a conflict with another script and I want to try to narrow it down.


Sure, here they are:
Wrath Of Conor

I just disabled all of them one by one and kept refreshing each time and kept getting the white block. Then I disabled all scripts except the player compare and I still get the white block.

Any idea what other settings may be affecting it?
Wrath Of Conor

Never mind!

Apparently I had an older version of the script. I re-installed it and the block goes away.
Wrath Of Conor

Wrath Of Conor wrote:
Never mind!

Apparently I had an older version of the script. I re-installed it and the block goes away.



Actually I take that back. I'm not sure what happened, but it has suddenly stopped working altogether even if it is the only script enabled.

I get the pin player image, but it does nothing when I click to pin a player.

Any ideas?
SNAITF

If you go to other player pages does it repeat this behavior?  Also remember, if you go to the page of the pinned player the comparison icon/link won't be displayed. Very Happy

If it repeats this behavior, not sure to tell the truth, one thing I have noticed though is, with all scripts in general, there are times that the script just doesn't work or it works but only after an extended period of time.  I write that off as it being the nature of the beast.  

I guess what I am saying is greasemonkey is not a perfect thing and that at times it just doesn't work as it is expected.
grigser

The problem I'm having is the click here to pin this player is grayed out.  I've uninstalled the script, reinstalled, restarted firefox, cleaned out firefox, disabled the scouting report numbers and verified that all scripts work but nothing I do makes this one work.


mw54finest

can you click on the gray?  Mine is gray too, but you can click on it.   Once you click on it, your pinned player name will populate in the box.
SNAITF

same for me, it looks greyed out, but, if I click on it it then pins the player, and if you mouse over the red pin it should be animated (it moves a little Very Happy)

this is what mine looks like without anyone pinned.



if you click it and nothing happens, one thing you can do is to go to the error log to see if there are any error messages.

On the firefox menu click on "Tools" and then Error Log or you can hit Ctrl+Shift+J to open it.  When you first open it clear it (we want to make sure to get the correct messages), then go back and try to pin a player.  Then go back to the error log, click on "All" and list any error messages listed there.
grigser

I move across the pin and it moves slightly but nothing else happens.  I click it and nothing, move to the grey area and click it nothing happens.

This is on two different computers, one at home and one at work.  They both have FF 3 and greasemonkey 0.8.2008.0609.0.  The computer at home only has this script on it.

I'll try getting rid of monkey and doing some more stuff.
grigser

grigser wrote:
I move across the pin and it moves slightly but nothing else happens.  I click it and nothing, move to the grey area and click it nothing happens.

This is on two different computers, one at home and one at work.  They both have FF 3 and greasemonkey 0.8.2008.0609.0.  The computer at home only has this script on it.

I'll try getting rid of monkey and doing some more stuff.


Same thing happens after getting rid of it and adding it back in.
SNAITF

grigser wrote:
grigser wrote:
I move across the pin and it moves slightly but nothing else happens.  I click it and nothing, move to the grey area and click it nothing happens.

This is on two different computers, one at home and one at work.  They both have FF 3 and greasemonkey 0.8.2008.0609.0.  The computer at home only has this script on it.

I'll try getting rid of monkey and doing some more stuff.


Same thing happens after getting rid of it and adding it back in.


hmm, very odd, I wonder if this is being blocked by some type of popup blocker, I would think not but not sure where else to go.

Oh, also, can you look in your Error log to see if there is anything related to this script.

On the firefox menu click on "Tools" and then Error Log or you can hit Ctrl+Shift+J to open it.  When you first open it clear it (we want to make sure to get the correct messages), then go back, refresh the player page and try to pin a player.  Then go back to the error log, click on "All" and look for any error messages listed there that pertain to the player compare script.
grigser

Sorry, I meant to do that and forgot.

I don't get an error when I refresh but I do get an error when I go click on the grey box.

Error: playerName is not defined
Source File: file:///C:/Documents%20and%20Sett...781%7D/components/greasemonkey.js
Line: 515

ETA - I forgot I had Adblock Plus but disabling it didn't change anything.
Wrath Of Conor

grigser wrote:
I move across the pin and it moves slightly but nothing else happens.  I click it and nothing, move to the grey area and click it nothing happens.

This is on two different computers, one at home and one at work.  They both have FF 3 and greasemonkey 0.8.2008.0609.0.  The computer at home only has this script on it.

I'll try getting rid of monkey and doing some more stuff.


This is what is happening to me now. I swear it worked once and now I can't pin any player even when I click on the button. Very odd...
m1k3

Works perfect for me
gehrig44

Does nothing for me as well.  On both my PC's.
SNAITF

shift+ctrl J will open the error console, clear it, reload the player page and then post any errors listed in the error console here
RickeyHelsel

I get two errors:

Error: newmsg[1] is undefined
Source File: file:///C:/Documents%20and%20Sett...781%7D/components/greasemonkey.js
Line: 384

Error: playerName is not defined
Source File: file:///C:/Documents%20and%20Sett...781%7D/components/greasemonkey.js
Line: 515
SNAITF

The error playerName is not defined is from mine.  It sounds like it can't find your player name in the code. At the top of the script code it should look like this:

Code:

var pinnedPlayer = GM_getValue("pinnedPlayer", null);

// find the current player info
var url = window.location.href;
var currentId = url.substring(url.indexOf('_id=')+4, url.length);
var playerHeader = getElementsByClassName('big_head subhead_head', document);
var playerName = playerHeader[0].innerHTML


notice playerName is being created from the first element with the class name 'big_head subhead_head'.  Which leads me to believe that it isn't finding that element for some reason.

so two things, first, if your code doesn't look like this at the top, then you have an older version and you should update it by uninstalling it, and installing the newest version from here:

http://userscripts.org/scripts/show/29445

2nd, could you go to one of your players, right click on the page and from the right click context menu select "view source".  This should show you the code for the page. If you could copy the section that has your player name here that would be helpful. It should look something like this:

Code:

         <div id="toolbar"><a href="/game/home.pl" class="toolbar_item">Home</a>
<a href="/game/leagues.pl" class="toolbar_item">Leagues</a>
<a href="/game/search.pl" class="toolbar_item">Search</a>
<a href="/game/forum_main.pl" class="toolbar_item">Forum</a>
<a href="/game/inbox.pl" class="toolbar_item">Inbox</a>
<a href="/game/flex_points.pl" class="toolbar_item">Flex Points</a>
<a href="/faq.html" class="toolbar_item">FAQ</a>
<a href="/guides.html" class="toolbar_item">Guides</a>
<a href="/game/support.pl" class="toolbar_item">Support</a>
<a href="/game/logout.pl" class="toolbar_item" id="logout">Log Out</a>
</div>
         <div id="content">


<link rel="stylesheet" type="text/css" href="/css/game/player.css?2" />




<div class="big_head subhead_head">Cletus Slackjaw</div>

<div class="subhead_link_bar">
   <a href="/game/player.pl?player_id=611092">Profile</a> |
   <a href="/game/player_awards.pl?player_id=611092">Awards</a>
   
   | <a href="/game/team.pl?team_id=1235">Team</a>


notice my players name is in there, it's:

Code:
<div class="big_head subhead_head">Cletus Slackjaw</div>


If fact, could you post the whole source for your page here? It will be large but it will let me see what's going on.  Remember when posting code like that you have to put it inside the code tags.

I'm gone for the 4th weekend so I won't be back until sunday to check back on this.
RickeyHelsel

I updated versions, still to no avail. Here is the source that you requested:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
   <head>
      <title>Goal Line Blitz - Beta - American Football MMORPG</title>
      <LINK rel="stylesheet" type="text/css" href="/css/main.css" />
      <LINK rel="stylesheet" type="text/css" href="/css/toolbar.css" />
      
      <link rel="stylesheet" type="text/css" href="/css/game/scouting_reports.css" />
      <link rel="stylesheet" type="text/css" href="/css/game/player_attributes.css" />
      <link rel="stylesheet" type="text/css" href="/css/game/skill_tree.css" />

      <link rel="stylesheet" type="text/css" href="/css/game/player.css?2" />
      <link rel="stylesheet" type="text/css" href="/css/tooltip.css" />
      <script type="text/javascript" src="/javascript/utility.js"></script>
      <script type="text/javascript" src="/javascript/mouse.js"></script>
      <script type="text/javascript" src="/javascript/tooltip.js"></script>
   </head>
   <body>

      <div id="contexMenuContainer"></div>
      <div id="body_container">
         <div id="body_shadow">&nbsp;</div>
         <div id="header">&nbsp;</div>
         <div id="toolbar"><a href="/game/home.pl" class="toolbar_item">Home</a>
<a href="/game/leagues.pl" class="toolbar_item">Leagues</a>
<a href="/game/search.pl" class="toolbar_item">Search</a>
<a href="/game/forum_main.pl" class="toolbar_item">Forum</a>

<a href="/game/inbox.pl" class="toolbar_item">Inbox</a>
<a href="/game/flex_points.pl" class="toolbar_item">Flex Points</a>
<a href="/faq.html" class="toolbar_item">FAQ</a>
<a href="/guides.html" class="toolbar_item">Guides</a>
<a href="/game/support.pl" class="toolbar_item">Support</a>
<a href="/game/logout.pl" class="toolbar_item" id="logout">Log Out</a>
</div>
         <div id="content">


<link rel="stylesheet" type="text/css" href="/css/game/player.css?2" />




<div class="big_head subhead_head">chris  boykins</div>

<div class="subhead_link_bar">
   <a href="/game/player.pl?player_id=336579">Profile</a> |
   <a href="/game/player_awards.pl?player_id=336579">Awards</a>
   
   | <a href="/game/team.pl?team_id=3253">Team</a>

   
   
   | <a href="/game/equipment.pl?player_id=336579">Equipment</a>
   
   
   |
   <a href="/game/skill_points.pl?player_id=336579">Skill Points (0)</a> |
   <a href="/game/offers.pl?player_id=336579">Contract Offers (0)</a> |
   <a href="/game/player_tactics.pl?player_id=336579">Tactics</a> |
   <a href="/game/retire_player.pl?player_id=336579">Retirement Options</a>

   
   
   
   | <a href="/game/make_offer.pl?player_id=336579">Renegotiate Contract</a>
   | <a href="/game/cut_player.pl?player_id=336579">Release Player</a>
   
   
   
</div>

<div class="medium_head">Profile</div>
<div id="player" class="content_container">
   <div id="player_photo"><img src="/game/player_pic.pl?player_id=336579" width="75" height="75"></div>
   <div id="upload_image">(<a href="/game/player_pic_upload.pl?player_id=336579">upload</a>)</div>

   <div id="player_name">(FB) chris  boykins</div>
   <table cellspacing="0" cellpadding="0" id="player_vitals">
      <tr>
         <td class="vital_head">Height:</td>
         <td class="vital_data">75in. (6'3")</td>
         <td class="vital_divider">&nbsp;</td>
         <td class="vital_head">Weight:</td>

         <td class="vital_data">235lbs</td>
         <td class="vital_divider">&nbsp;</td>
      </tr>
      
      <tr>
         <td class="vital_head">Created:</td>
         <td class="vital_data" colspan="5">Season 2, day 9 (May 4, 2008)</td>
      </tr>

      
      
      <tr>
         <td class="vital_head">Contract:</td>
         <td class="vital_data" colspan="5">$84,640.00/yr - Exp. season 4, Day 23</td>
      </tr>
      
      <tr>
         <td class="vital_head">Team:</td>
         <td class="vital_data" colspan="5"><a href="/game/team.pl?team_id=3253">Hungary Hungry Hippos</a></td>

      </tr>
      <tr>
         <td class="vital_head">Agent:</td>
         <td class="vital_data" colspan="5"><a href="/game/home.pl?user_id=88268">rickeyhelsel</a></td>
      </tr>
   </table>
   <div id="player_current_stats"><table cellspacing="0" cellpadding="0" id="player_current_stats_table">
   <tr>

      <td class="current_stats_head">Level</td>
      <td class="current_stats_head">Rush Yds</td>
      <td class="current_stats_head">Yds/Game</td>
      <td class="current_stats_head">TD</td>
   </tr>
   <tr>
      <td class="current_stats_value">17</td>

      <td class="current_stats_value">210</td>
      <td class="current_stats_value">19.1</td>
      <td class="current_stats_value">10</td>
   </tr>
</table>
</div>
   <div id="player_scouting_report"><div class="small_head">Scouting Report</div><div class="rating">
   <div class="rating_head">Overall</div>

   <div class="rating_bar"><div class="rating_bar_fill rating_bar_fill_40" style="width: 27px">&nbsp;</div></div>
</div>
<div class="rating">
   <div class="rating_head">Rushing</div>
   <div class="rating_bar"><div class="rating_bar_fill rating_bar_fill_40" style="width: 27px">&nbsp;</div></div>
</div>
<div class="rating">
   <div class="rating_head">Blocking</div>
   <div class="rating_bar"><div class="rating_bar_fill rating_bar_fill_40" style="width: 33px">&nbsp;</div></div>
</div>

</div>
</div>
<br>



<div id="player_stats">
   <div class="medium_head">Player Attributes</div>
      <table cellspacing="0" cellpadding="0" class="player_stats_table">
      <tr class="nonalternating_color">
         <td colspan="2">Physical Attributes</td>

         <td>&nbsp;</td>
         <td colspan="2">Football Skills</td>
      </tr>
      <tr class="alternating_color1">
         <td class="stat_head">Strength:</td>
         <td class="stat_value_boosted">40</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Blocking:</td>
         <td class="stat_value_boosted">38.13</td>
      </tr>
      <tr class="alternating_color2">
         <td class="stat_head">Speed:</td>
         <td class="stat_value_boosted">30.97</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Tackling:</td>
         <td class="stat_value">13.2</td>
      </tr>
      <tr class="alternating_color1">
         <td class="stat_head">Agility:</td>
         <td class="stat_value_boosted">33</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Throwing:</td>
         <td class="stat_value">8</td>
      </tr>
      <tr class="alternating_color2">
         <td class="stat_head">Jumping:</td>
         <td class="stat_value">7</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Catching:</td>
         <td class="stat_value_boosted">24.98</td>
      </tr>
      <tr class="alternating_color1">
         <td class="stat_head">Stamina:</td>
         <td class="stat_value_boosted">33.99</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Carrying:</td>
         <td class="stat_value_boosted">31.69</td>
      </tr>
      <tr class="alternating_color2">
         <td class="stat_head">Vision:</td>
         <td class="stat_value">21.33</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Kicking:</td>
         <td class="stat_value">8</td>
      </tr>
      <tr class="alternating_color1">
         <td class="stat_head">Confidence:</td>
         <td class="stat_value">15.83</td>
         <td class="stat_divider">&nbsp;</td>

         <td class="stat_head">Punting:</td>
         <td class="stat_value">10</td>
      </tr>
   </table>
   <table cellspacing="0" cellpadding="0" class="player_stats_table">
      <tr class="nonalternating_color">
         <td colspan="2">Current Energy and Morale</td>

      </tr>
      <tr class="alternating_color2">
         <td>
            <div class="rating">
               <div class="rating_head">Energy:</div>
               <div class="rating_bar"><div class="rating_bar_fill rating_bar_fill_100" style="width: 99px">99</div></div>
            </div>
            <div class="rating">

               <div class="rating_head">Morale:</div>
               <div class="rating_bar"><div class="rating_bar_fill rating_bar_fill_100" style="width: 98px">98</div></div>
            </div>
         </td>
      </tr>
   </table>
   <table cellspacing="0" cellpadding="0" class="player_stats_table">
      <tr class="nonalternating_color">

         <td colspan="5">Experience/Skill Points and Cash</td>
      </tr>
      <tr class="alternating_color1">
         <td class="stat_head">Level:</td>
         <td class="stat_value">17</td>
         <td class="stat_divider">&nbsp;</td>
         <td class="stat_head">XP:</td>

         <td class="stat_value">512/1000</td>
      </tr>
      <tr class="alternating_color2">
         <td class="stat_head">Skill Points:</td>
         <td class="stat_value">0</td>
         <td class="stat_divider">&nbsp;</td>
         <td colspan="2"></td>

      </tr>
      <tr class="alternating_color1">
         <td class="stat_head">Money:</td>
         <td class="stat_value">$30388</td>
         <td class="stat_divider" colspan="3">&nbsp;</td>
      </tr>
      <tr class="alternating_color2">
            <td class="stat_head">Daily Salary:</td>

            <td class="stat_value">$2116</td>
            <td class="stat_divider" colspan="3">&nbsp;</td>
      </tr>
   </table>
</div>
<div id="player_skill_trees">
   <div class="medium_head">Special Abilities</div>
   <div id="skill_trees_box" class="content_container">
      <div id="skill_trees_content">

      
         <div class="subhead">Blocking Abilities</div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/hands.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Hands</span><br><br>This player is very good at using his hands to block and getting away with it.  The Hands skill reduces the chance a holding penalty will be called.<br><br>This skill is important for all blockers, but especially when they are overmatched.<br><br><b>Additional Levels:</b><br>Reduces chance of holding calls by even more.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_hands">0</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/lead_block.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Lead Block</span><br><br>This FB is adept at leading a rusher through the line.  The Lead Block skill gives him a bonus to blocking and pushing defenders when he is lead blocking.<br><br>This skill is very important for players on teams that rush a lot, and the HB is not particulary fast.<br><br><b>Additional Levels:</b><br>Increases the bonus to blocking when lead blocking.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_lead_block">0</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/spot_blitz.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Spot Blitz</span><br><br>This FB is adept at spotting blitzing players.  The Spot Blitz skill gives him a bonus to blocking blitz plays.<br><br>This skill is important when playing against teams that blitz a lot.<br><br><b>Additional Levels:</b><br>Increases the bonus towards blocking blitz plays.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_spot_blitz">0</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>

         
            <div class="skill_button" style="background-image: url(/images/game/skills/strong_arm.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Strong Arm</span><br><br>The Strong Arm skill allows this player to use his brute strength to push a defender back and stand his ground.<br><br>This skill works best when used by players with high strength.<br><br><b>Additional Levels:</b><br>Increases the chance of the skill working, and increases the bonus to pushing the defender away.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_strong_arm">0</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/pancake.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Pancake</span><br><br>Nothing is as demoralizing to a defender as being knocked on his backside by a blocker.  The Pancake skill increases the blocker\'s chance of knocking a defender over.<br><br>This skill is important for strong blockers.  It will take defenders out of the play.<br><br><b>Additional Levels:</b><br>Increases the chance of executing a pancake block.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_pancake">0</div></div>
            
         
         <div style="clear: both;"></div>
      
         <div class="subhead">Offensive Abilities</div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/cover_up.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Cover Up</span><br><br>Cover Up helps the player protect the ball.  He will hug it close to his body, making it harder to cause a fumble.<br><br>This skill is very important for power rushers and players who will be playing against hard hitting LBs.<br><br><b>Additional Levels:</b><br>Fumble protection boost is increased.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_cover_up">1</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>

         
            <div class="skill_button" style="background-image: url(/images/game/skills/sticky_hands.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Sticky Hands</span><br><br>This player has exceptional catching abilities, as if his hands were covered in glue.  The Sticky Hands skill gives the player a bonus to catching passes, including interceptions.<br><br>This skill seems to work even better in clutch situations, like 3rd and long plays, or in the last two minutes of the game.<br><br><b>Additional Levels:</b><br>Increases the bonus to catching passes.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_sticky_hands">1</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/power_through.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Power Through</span><br><br>The runner puts his head and shoulders down and drives his body through defenders.  This skill allows the players to break through tackles.<br><br>This skill depends on strength and size to be effective.  For a strong rusher, it can break a lot of tackles.<br><br><b>Additional Levels:</b><br>Increases the chance of using the skill successfully, and increases the bonus to break tackles.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_power_through">2</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/cut.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Quick Cut</span><br><br>Gives the player the ability to change direction quickly without losing much speed.<br><br>This skill is very important for quick players who rely on speed and agility to avoid tackles.<br><br><b>Additional Levels:</b><br>The angle at which the player can make the cut increases, while the speed lost in making the cut decreases.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_cut">1</div></div>
            <div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>
         
            <div class="skill_button" style="background-image: url(/images/game/skills/dive.gif);" onmouseover="set_tip('<div class=\'skill_tip\'><span class=\'skill_name\'>Dive for Yardage</span><br><br>The Dive for Yardage ability gives the ball carrier to stretch out and dive for that extra 1 or 2 yards while being tackled.<br><br>This skill is very important for players who rush a lot.  You will find you get that first down a little more often.<br><br><b>Additional Levels:</b><br>Increases the chance of being able to perform the skill.</div>', 0, 1, 1, 1)" onmouseout="unset_tip()"><div class="skill_level" id="skill_level_dive">1</div></div>

            
         
         <div style="clear: both;"></div>
      
      </div>
   </div>
</div>
<div id="player_links">
   <div class="medium_head">Options</div>
   <div id="player_links_box" class="content_container">
      <div id="player_links_content">
         <div class="button"><a href="/game/skill_points.pl?player_id=336579">Spend Skill Points</a></div>

         <div class="button"><a href="/game/equipment.pl?player_id=336579">Edit Equipment</a></div>
         <div class="button"><a href="/game/buy_equipment.pl?player_id=336579">Buy Equipment</a></div>
         <div class="button"><a href="/game/offers.pl?player_id=336579">Contract Offers</a></div>
         <div class="button"><a href="/game/player_tactics.pl?player_id=336579">Advanced Tactics</a></div>
         <div class="button"><a href="/game/xp_history.pl?player_id=336579">XP History</a></div>
         <div class="small_head">Attribute Sharing Option</div>

         <div>
         <form method="POST">
         <input type="hidden" name="player_id" value="336579">
         <select name="allow_manager_view">
            <option value="0">Hide attributes from all</option>
            <option value="1">Team owner can view</option>
            <option value="2" SELECTED>Team members can view</option>

            <option value="3">Everyone can view</option>
         </select>
         <div style="margin-top: 6px;"><input type="submit" name="action" value="Update"></div>
         </form>
         </div>
      </div>
   </div>
</div>
<div id="player_training_tactics">

<div id="player_training">
   <div class="medium_head">Training Settings</div>
   <div id="player_training_box" class="content_container">
      <div id="player_training_content">
      
         <form method="POST">
         <input type="hidden" name="player_id" value="336579">
         <div class="fieldheading">Training Focus:</div>
         <div class="field"><select name="training_focus" id="training_focus">

               <option value="">None (zero XP given/+18 en)</option>
            
               <option value="agility">Agility (+0.18/day)</option>
            
               <option value="blocking">Blocking (+0.16/day)</option>
            
               <option value="carrying">Carrying (+0.19/day)</option>
            
               <option value="catching">Catching (+0.25/day)</option>
            
               <option value="confidence">Confidence (+0.35/day)</option>

            
               <option value="jumping">Jumping (+0.5/day)</option>
            
               <option value="kicking">Kicking (+0.48/day)</option>
            
               <option value="punting">Punting (+0.44/day)</option>
            
               <option value="speed" SELECTED>Speed (+0.22/day)</option>
            
               <option value="stamina">Stamina (+0.18/day)</option>
            
               <option value="strength">Strength (+0.15/day)</option>

            
               <option value="tackling">Tackling (+0.39/day)</option>
            
               <option value="throwing">Throwing (+0.48/day)</option>
            
               <option value="vision">Vision (+0.28/day)</option>
            
            </select></div>
         <br>
         <div class="fieldheading">Training Intensity:</div>
         <div class="field"><select name="training_intensity" id="training_intensity">

               <option value="relaxed" SELECTED>Relaxed ($170/day, +15 en.)</option>
               <option value="normal">Normal ($1275/day, +9 en.)</option>
               <option value="hard">Intense ($3400/day, +3 en.)</option>
            </select></div>
         <input type="submit" name="action" value="Update Training" class="submit_button">
         </form>
   
      </div>

   </div>
</div>
<div id="player_tactics">
   <div class="medium_head">Tactical Settings</div>
   <div id="player_tactics_box" class="content_container">
      <div id="player_tactics_content">
      
         <form method="POST">
         <input type="hidden" name="player_id" value="336579">
         <div class="fieldheading">Play Intensity:</div>

         <div class="field"><select name="play_intensity" id="play_intensity">
               <option value="hard" SELECTED>Hard</option>
               <option value="normal">Normal</option>
               <option value="relaxed">Relaxed</option>
            </select></div>
         <br>
         <input type="submit" name="action" value="Update Tactics" class="submit_button">

         </form>
         <br>
         <a href="/game/player_tactics.pl?player_id=336579">Go To Advanced Tactics</a>
      
      </div>
   </div>
</div>
</div>
<div style="clear: both;">&nbsp;</div>


<div class="medium_head">Career Stats - Regular Season</div>

<div class="tab"><a href="/game/player.pl?player_id=336579&playoffs=0">Regular Season</a></div>
<div class="tab"><a href="/game/player.pl?player_id=336579&playoffs=1">Playoff Stats</a></div>
<div class="tab"><a href="/game/full_player_stats.pl?player_id=336579&playoffs=0">Full Season Stats</a></div>
<div class="tab"><a href="/game/full_player_stats.pl?player_id=336579&playoffs=1">Full Playoff Stats</a></div>
<div class="tab"><a href="/game/player_game_log.pl?player_id=336579">Game Log</a></div>
<div class="clear">&nbsp;</div>
<table id="career_stats" cellspacing="0" cellpadding="0">
   <tr class="nonalternating_color">
      <td>&nbsp;</td>
      <td align="center" colspan="5" class="career_stat_head">Rushing</td>

      <td align="center" colspan="6" class="career_stat_head">Receiving</td>
      <td align="center" colspan="2" class="career_stat_head">Fumbles</td>
   </tr>
   <tr class="nonalternating_color2">
      <td>Season</td>
      
      <td align="right">Rush</td>
      <td align="right">Yds</td>

      <td align="right">Y/G</td>
      <td align="right">Avg</td>
      <td align="right">TD</td>
      
      <td align="right">Rec</td>
      <td align="right">Yds</td>
      <td align="right">Y/G</td>

      <td align="right">Avg</td>
      <td align="right">YAC</td>
      <td align="right">TD</td>
      
      <td align="right">Fumb</td>
      <td align="right">FumbL</td>
   </tr>

   
   <tr class="alternating_color1">
      <td>2</td>
      
      <td align="right">57</td>
      <td align="right">183.5</td>
      <td align="right">15.3</td>
      <td align="right">3.2</td>

      <td align="right">1</td>
      
      <td align="right">4</td>
      <td align="right">10</td>
      <td align="right">0.8</td>
      <td align="right">2.5</td>
      <td align="right">2.6</td>

      <td align="right">0</td>
      
      <td align="right">1</td>
      <td align="right">1</td>
   </tr>
   
   <tr class="alternating_color2">
      <td>3</td>
      
      <td align="right">52</td>

      <td align="right">210</td>
      <td align="right">19.1</td>
      <td align="right">4</td>
      <td align="right">9</td>
      
      <td align="right">8</td>
      <td align="right">22.5</td>

      <td align="right">2</td>
      <td align="right">2.8</td>
      <td align="right">3.4</td>
      <td align="right">1</td>
      
      <td align="right">2</td>
      <td align="right">0</td>

   </tr>
   
   <tr class="alternating_color1">
      <td>Career</td>
      
      <td align="right">109</td>
      <td align="right">393.5</td>
      <td align="right">17.1</td>
      <td align="right">3.6</td>

      <td align="right">10</td>
      
      <td align="right">12</td>
      <td align="right">32.5</td>
      <td align="right">1.4</td>
      <td align="right">2.7</td>
      <td align="right">3.1</td>

      <td align="right">1</td>
      
      <td align="right">3</td>
      <td align="right">1</td>
   </tr>
   
</table>

</div>
         <div style="clear: both;">&nbsp;</div>

         <div id="footer"><div style="color: #959595; font-size: 11px; position: absolute; left: 5px; top: 0px; width: 1000px;">Copyright &copy; 2008 GoalLineBlitz.com, all rights reserved.  Goal Line Blitz is not affiliated with the NFL or any other professional football league. <a href="/tos.html">Terms of Use</a> | <a href="/privacy.html">Privacy Policy</a></div></div>
      </div>
   </body>
</html>


Hope this helps.
gehrig44

Script is up to date....

Here is my Page Source info.

Code:
// ==UserScript==
// @name           GLB Player Compare
// @namespace      KHMI - Greasemonkey
// @description    Compare other players with your own pinned player.
// @include        http://goallineblitz.com/game/player.pl?player_id=*
// ==/UserScript==
 
var timeout = 0;
 
window.setTimeout( function() {
   // see if a pinned player exists
   var pinnedPlayer = GM_getValue("pinnedPlayer", null);

   // find the info for the current player page
   var url = window.location.href;
   var currentId = url.substring(url.indexOf('_id=')+4, url.length);
   var playerHeader = getElementsByClassName('big_head subhead_head', document);
   var playerName = playerHeader[0].innerHTML

   // strip out any commas found in player names, comma = BAD :D
   playerName = playerName.replace(/,/g, "");

   // create the various HTML parts and add them to the subhead_link_bar
   var subhead = getElementsByClassName('subhead_link_bar',document);

   // create the pin
   var pin = document.createElement('span');
   pin.setAttribute("class","pin");
   pin.setAttribute("title","click here to pin this player");
   pin.innerHTML = "&nbsp;";
   pin.addEventListener('click', pinplayer, false);
   subhead[0].appendChild(pin);

   // create the pin field
   var pinField = document.createElement('span');
   pinField.setAttribute("id","ppin");
   pinField.addEventListener('click', pinplayer, false);
   subhead[0].appendChild(pinField);  

   // create the compare link
   var compareLink = document.createElement('span');
   compareLink.setAttribute("id","cplayer");
   compareLink.setAttribute("title","click to compare to your pinned player");
   compareLink.innerHTML = "&nbsp;";
   compareLink.addEventListener('click', createComparisons, false);

   // create the unpin field
   var unpinField = document.createElement('span');
   unpinField.setAttribute("title","click to un-pin this player");
   unpinField.setAttribute("id","unpin");
   unpinField.innerHTML = "&nbsp;";
   unpinField.addEventListener('click', unpinplayer, false);
   subhead[0].appendChild(unpinField);

   // modify the parts according to the pinned player state
   if(pinnedPlayer == undefined || pinnedPlayer == ""){
      pinField.setAttribute("class","playerpin");
      pinField.innerHTML = "click here to pin this player";
      unpinField.setAttribute("class","hide");
      compareLink.setAttribute("class","hide");
   }else{
      var stats = pinnedPlayer.split(",");
      pinField.setAttribute("class","playerpinned");
      pinField.innerHTML = stats[0];
      unpinField.setAttribute("class","unpin");
      // don't show compare link if on pinned player's page
      if(currentId != stats[1]) compareLink.setAttribute("class","comparePlayers");
   }

   // create the popup
   var popUpDiv = document.createElement('div');
   popUpDiv.setAttribute("id","popUpDiv");
   popUpDiv.setAttribute("style","display:none;background-color:#FBFBF8;");
   popUpDiv.addEventListener('click', toggle, false);

   // add compare link and popup only if stats are present
   var attTable = getElementsByClassName('player_stats_table',document);
   if(attTable.length > 0){
      var medhead = getElementsByClassName('medium_head',document);
      // must insert compare element before "Player Attributes" for float to work correctly
      medhead[1].childNodes[0].parentNode.insertBefore(compareLink, medhead[1].childNodes[0]);
      medhead[1].childNodes[0].parentNode.insertBefore(popUpDiv, medhead[1].childNodes[0]);
   }
    
   // wall of CSS
   var css = 'span.playerpin {cursor:pointer;padding:3px;font-weight:700;line-height:2em;height:25px;background-color:#D' +
      'CDCDC;color:white;float:right;text-align:center;border:1px solid #A0A0A0;}' +
      'span.playerpinned {cursor:pointer;padding:3px;font-weight:700;line-height:2em;height:25px;background-color:#DCDCD' +
      'C;color:blue;float:right;text-align:center;border:1px solid #A0A0A0;}' +
      'span.unpin{border:1px solid #A0A0A0;cursor:pointer;background-color:#DCDCDC;float:right;width:12px;height:12px;ba' +
      'ckground-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAK3RFWHRDcmVhdGlvbiBUaW1l' +
      'AEZyaSA0IE5vdiAyMDA1IDEyOjE2OjIzIC0wNTAwfRDJhgAAAAd0SU1FB9ULBBE1NZ/zTqgAAAAJcEhZcwAACvAAAArwAUKsNJgAAAAEZ0FNQQAAs' +
      'Y8L/GEFAAABfUlEQVR42mM8cPIkw5M7gldPvzdxs/f0ZICBg9u3MxzZxaBtyqCiwpzg6Sh1eJXE+wu/L169wc6loKoJUrFuHcO8aSqnV31/+viPpC' +
      'pzoY6cxPuTQq62rI9ufL548w678MM7d4AqdD+cZuVg57z14AmvNOOBbdsEV82U4XggpK3w7uilO9/FGX4wqHy8LMTO8PTDrzsSTgz5+Yz///8/uH0' +
      'd56pZKj9uCUnwvTv/mOHnT6gKASeGvDT7oCCG/2AANO+kv8Vbe6H/EVL/7bmf6LMesLAACkJkmeDeAdoCNIPh+Ucgk/P1bwZkADJm7doD/u5vLbgh' +
      'ZryVYvgvxfCEgeGAuztQCqiA2dHcHOSXl0eg7uA0fsUvw3fnifg/ht93737++PGhsDBzgrwoMDzEeZihfikvZ7C3f/XqDVCFKgNI3UtRURZgmD69a' +
      'vzt0tlnek4McWmQQD/IwPAM6MSDO5/Zu3OZmjKCouXOk2+nD3O5oUfLt127uExtGVRkANofwzYUjV/0AAAAAElFTkSuQmCC)}' +
      'span.comparePlayers {width:25px;height:18px;cursor:pointer;float:right;background-image:url(data:image/gif;base64' +
      ',R0lGODlhGQASAIcAAAAAAACE/+/WQv//////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////yH5BAAAAP8ALAAAAAAZABIAAAhsAAcIHAhgoMGDCA8CKJiwIUIAARg6nAgx4sKLGC82rBigo8ePHiUa5AiyZEeRA' +
      'kmaLLnw4cqVAASgHMAxo82FAmS6jJizp8+fOhXyBEo050ycRYseTUp0Js2bGXs6nUjQKFWKQa9unKo1JcKAADs=);}' +
      'span.hide {display:none;}' +
      'span.pin:hover { background-position: 0 -24px; }' +
      '#popUpDiv {padding:5px;border:1px solid #A0A0A0;position:absolute;top:100px;background-color:#eeeeee;width:800px;' +
      'height:235px;z-index: 9002;}' +
      'span.pin{cursor:pointer;position:relative;top:-15px;left:-7px;float:right;width:18px;height:24px;background-image' +
      ':url(data:image/gif;base64,R0lGODlhEgAwAIcAAEoQCFoxIWMAAGMICGMQEGMhEGMpIWsAAGsACGs5KWtjWnMAAHMIAHMICHMxOXNKSnNjY3' +
      'sAAHsACHsIAHsICHsYEHs5KXtCEHtSOYQAAIQICIRCQoRaQowACIwIAIwICIwYGIwpIYxaUpQACJQIAJQICJQIEJRKOZRjGJRjSpSUlJwICJwQEJw' +
      'YGJwhGJwhIZwxKZw5MZxSQqUICKUQCKUYIaUhEKUhGKUpKaVCOaVSQq0QEK0YCK0YEK0hEK0hGK1CMa1KOa1SOa1SQq1aQq1jSrUYGLUhGLUhIbUp' +
      'IbU5KbVCObVSQrVaQrVaSrVjSrV7Wr0hKb0pEL0pGL0xMb1SQr1aSr1jSr1rWr2EY8YhGMYpGMYpIcYxGMZKOcZrUsZzWsZ7Y84xIc45Ic6Ma9YxI' +
      'dY5IdZCIdZaUv//9/////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////' +
      '////////////////////////////////////////////////v7+CH5BAMAAP8ALAAAAAASADAAAAj/AP8JHEiwoEGCAQ5QANHiRYiDBBsI0HDkx4s' +
      'gMSAKrNCAixkzRn4sYaKRwAGPH42wqOJE44EpZs6cEdPjxpUiBlGQOPDjTJcpU7j0AALGYAEBJpBQUWJjRQ8WGp4MtLDggAYJU1hE8ZLkBoEGFL4I' +
      'FCFAwIcIP8Z8KMECDZkvOoaEEUghgpgxLLiM+VEiggMoWchkGfih5xkuiH98OCDjIAgfMqf0UPkBxBWIdsec6dFipJOWBzd8qJgVx+cmGgc8LbFiR' +
      'IYDMDT+U5DjhYYIBxaIhahCoIETQ4pg0AhBgezjyJMrX868+cA0yxMubPhQtkSKFjHK5ogy5MiSJz+Ch1wJ2uCFlzFn1rxC5ODOnj+DDi1aEABSpU' +
      'ydQpUqsEDVq1ltlUQNAxzQwG4PlHVWWmu1BUURJ+iABV2Z5bVXXwZggEEKHBBmGGJcKHbACY5BdoZklFmG2V2bdcbEZxA5MNoPpZ2mkQCrtfZabBo' +
      'pEINtuC1wGW8CAWCBDEUk4NySTDbp5HIBAQA7);}';
    
   // add wall of CSS to the page
   addGlobalStyle(css);
},timeout);
 
function createComparisons(){
   var popUpDiv = document.getElementById("popUpDiv");
   if ( popUpDiv.style.display == 'none' ){  
      // get the pinned player stats
      var pinnedPlayer = GM_getValue("pinnedPlayer", null);
      var ppStats = pinnedPlayer.split(",");
      
      // build the comparison table  
      popUpDiv.innerHTML = '<div><table style="width:100%;background-color:white;" cellspacing="5" cellpadding="0">' +
         '<tr><td style="text-align:center;" colspan="2">'+ ppStats[0] +'</td></tr>' +
         '<tr>' +
         '<td style="width:40%;" valign="top">'+ createStatsTable(ppStats) +'</td>' +
         '<td style="width:60%;" valign="top">'+ createTree(ppStats) +'</td>' +
         '</tr>' +
         '</table></div>';      
      
      // create the close popup link
      var closePopup = document.createElement('a');
      closePopup.setAttribute("href","#");
      closePopup.setAttribute("style","float:right;");
      closePopup.innerHTML = "click anywhere on this pop up to close";
      closePopup.addEventListener('click', toggle, false);
      var div = document.createElement('div');
      div.appendChild(closePopup);
      popUpDiv.appendChild(div);
   }
  
   toggle();
}
 
function pinplayer(){
   var stats = [];
   // add the player's stats to the array for storage
   stats["playerName"] = playerName;
   stats["playerId"] = currentId;
   var attTable = getElementsByClassName('player_stats_table',document);
   if(attTable.length > 0){
      // get attributes
      var re = /<td class="(stat_value|stat_value_boosted)">(.+)<\/td>/g;
      var statValue = attTable[0].innerHTML.match(re);  
      stats.push(playerName);
      stats.push(currentId);
      for(var i=0;i<statValue.length;i++) {
         stats.push(statValue[i].replace(re, "$2"));
      }
      
      // get tree data
      var tree = getElementsByClassName('subhead',document);
      stats.push(tree[0].innerHTML);
      stats.push(tree[1].innerHTML);
      
      // get tree skill levels
      var skillLevel = getElementsByClassName('skill_level',document);
      for(var i=0;i<skillLevel.length;i++) {
         stats.push(skillLevel[i].innerHTML);
      }
      
      // get tree skills
      var skillTrees = document.getElementById('skill_trees_content');
      var re2 = /\/images\/game\/skills\/(.+)\.gif/g;
      var skillButtons = skillTrees.innerHTML.match(re2);
      for(var i=0;i<skillButtons.length;i++) {
         stats.push(skillButtons[i].replace(re2, "$1"));
      }

      GM_setValue("pinnedPlayer", stats.join());
    
      // change the player pin
      var ppin = document.getElementById("ppin");
      ppin.className = "playerpinned";
      ppin.innerHTML = playerName;
    
      var unpin = document.getElementById("unpin");
      unpin.className = "unpin";
   }else{
      alert("Cannot pin a player whose stats you cannot see.");
   }
}

function unpinplayer(){
   // clear the pinned player
   GM_setValue("pinnedPlayer", "");
 
   // change the player pin
   var ppin = document.getElementById("ppin");
   ppin.className = "playerpin";
   ppin.innerHTML = "click here to pin this player";
 
   var unpin = document.getElementById("unpin");
   unpin.className = "hide";
      
   var cplayer = document.getElementById("cplayer");
   cplayer.className = "hide";
}

function toggle() {  
   var popUpDiv = document.getElementById("popUpDiv");
   if ( popUpDiv.style.display == 'none' ){
      popUpDiv.style.display = 'block';
   }else{
      popUpDiv.innerHTML = '&nbsp;';
      popUpDiv.style.display = 'none';
   }
}

function getElementsByClassName(classname, par){
  var a=[];  
  var re = new RegExp('\\b' + classname + '\\b');      
  var els = par.getElementsByTagName("*");
  for(var i=0,j=els.length; i<j; i++){      
    if(re.test(els[i].className)){  
      a.push(els[i]);
    }
  }
  return a;
};
 
function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

function createStatsTable(stats){
      var attTable = '<table cellspacing="0" cellpadding="0">' +
      '<tr class="nonalternating_color">' +
      '   <td colspan="2">Physical Attributes</td>' +
      '   <td>&nbsp;</td>' +
      '   <td colspan="2">Football Skills</td>' +
      '</tr>' +
      '<tr class="alternating_color1">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Strength:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[2]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Blocking:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[3]+'</td>' +
      '</tr>' +
      '<tr class="alternating_color2">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Speed:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[4]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Tackling:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[5]+'</td>' +
      '</tr>' +
      '<tr class="alternating_color1">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Agility:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[6]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Throwing:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[7]+'</td>' +
      '</tr>' +
      '<tr class="alternating_color2">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Jumping:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[8]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Catching:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[9]+'</td>' +
      '</tr>' +
      '<tr class="alternating_color1">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Stamina:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[10]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Carrying:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[11]+'</td>' +
      '</tr>' +
      '<tr class="alternating_color2">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Vision:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[12]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Kicking:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[13]+'</td>' +
      '</tr>' +
      '<tr class="alternating_color1">' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Confidence:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[14]+'</td>' +
      '   <td class="stat_divider">&nbsp;</td>' +
      '   <td class="stat_head" style="color:black;font-weight:400;">Punting:</td>' +
      '   <td class="stat_value" style="color:black;font-weight:700;">'+stats[15]+'</td>' +
      '</tr>' +
   '</table>';
  
   return attTable;
}

function createTree(stats){
   var tree = '<div id="skill_trees_box" class="content_container">' +
      '<div id="skill_trees_content">' +
      '<div class="subhead">'+ stats[16] +'</div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[28] +'.gif);"><div class="skill_level">'+ stats[18] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[29] +'.gif);"><div class="skill_level">'+ stats[19] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[30] +'.gif);"><div class="skill_level">'+ stats[20] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[31] +'.gif);"><div class="skill_level">'+ stats[21] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[32] +'.gif);"><div class="skill_level">'+ stats[22] +'</div></div>' +
      '<div style="clear: both;"></div>' +
      '<div class="subhead">'+ stats[17] +'</div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[33] +'.gif);"><div class="skill_level">'+ stats[23] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[34] +'.gif);"><div class="skill_level">'+ stats[24] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[35] +'.gif);"><div class="skill_level">'+ stats[25] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[36] +'.gif);"><div class="skill_level">'+ stats[26] +'</div></div>' +
         '<div class="skill_arrow"><img src="/images/game/skill_arrow.gif"></div>' +
         '<div class="skill_button" style="background-image: url(/images/game/skills/'+ stats[37] +'.gif);"><div class="skill_level">'+ stats[27] +'</div></div>' +
      '<div style="clear: both;"></div>' +
   '</div></div>';
  
   return tree;
}
SNAITF

thanks guys! I have been able to reproduce the same problem you are having, I will let you know here when I've solved it.
SNAITF

I think I found what the issue was, I've updated it and uploaded it to the userscripts.org site.  

http://userscripts.org/scripts/show/29445

make sure to uninstall the version you currently have installed, then go to the page above and install.  Please let me know if this solves your issues.
gehrig44

Nice.  Works like a charm now.  Thanks a lot!
RickeyHelsel

Wow... works great now, thanks!
grigser

Awesome.  Thank you!
RandomBeast

just curious what the issue was?
SNAITF

RandomBeast wrote:
just curious what the issue was?


I was capturing the player name when the script/page first loaded(ie as a global variable) and for some reason it wasn't in scope for the click event.  I also I changed how I grabbed the name.  Originally I grabbed it from the "big_head subhead_head" element.  This was the element I used in my player navigation script.  Thinking this may collide a bit I have it capturing the name from "player_name" element instead.
RandomBeast

Just noticed this script doesn't work for kickers (or punters I assume) because they only have one SA tree.
auron341

RandomBeast wrote:
Just noticed this script doesn't work for kickers (or punters I assume) because they only have one SA tree.


doesn't work me either.
SNAITF

RandomBeast wrote:
Just noticed this script doesn't work for kickers (or punters I assume) because they only have one SA tree.


ah that's interesting, I don't own a kicker so I didn't know that, I'll see what I can do
okole

update?

i was wondering if this would get an update.

now that the player attributes section has changed, this script is no longer working.

(sad, because it's one of the most useful ones out there)
pabst

This version fixes it.  http://userscripts.org/scripts/show/33921

       glbscripts.myfreeforum.org Forum Index -> Original Scripts
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum