Batter preferences all on one page

May 20, 2010

strat-o-matic online

About a year ago SportingNews Strat-o-Matic Online introduced a new “Pitcher prefs” page.  This page allows you to set all of your pitcher’s individual settings in one convenient place.  Unfortunately, there’s not a “Batter prefs” page at the moment but I learned from Sporting News Member Services that a batter’s preference page is coming.

Until we get a “Batter Prefs” page, I have written a GreaseMonkey script that will show all of your batter’s individual settings on the bottom of the team page.  Unlike the “Pitcher prefs” page, though, the “Batter prefs” information that the script produces is read only.  GreaseMonkey does not allow changes to be submitted (with a Submit button) so the check boxes generated by the script are just for display purposes (read only).  At least you will now be able to see individual settings for all batters on your team on the same page rather than opening each card on the team.

One of the reasons why I wrote this script was to ensure I have the “Don’t steal” setting turned on for all batters that have rolls where they might get picked off.  Take J.D. Drew, for example, he has an 8-10 roll where he might be picked off.  My understanding of the rules is if I have the “Don’t steal” setting turned on, J.D. Drew has less of a chance of getting picked off.

Steal ratings

Another reason to write a script is that it’s a bit tedious to load each individual card to check their individual ratings each day.  There might be times where I’m facing an opponent in a hitters ballpark where I don’t want anyone on my team to attempt to steal.  In this type of situation I might turn on “don’t steal” for all batters in the starting lineup.  If I do this, I’ll likely need to revert back to my previous settings for the next game.  Rather than having to remember which players have a pick off roll I wrote the script to warn me (with a red ‘x’ placed next to the check box) when the “Don’t Steal” rating is unchecked for such a player.  See below:

Batter Preferences

I was thinking about adding warnings for some of the other settings but I really rarely use any of these other individual player settings.  I could probably have the script add warnings if the “Don’t hit and run” settings is off for players of a certain salary.  If I have Albert Pujols on my team, for instance,  I probably don’t want him involved in any hit and runs.

Behavior of the script

The script was written in a way that will cause the team page to refresh whenever a player’s individual strategy settings are updated.  So, if you update a player’s strategy settings and then refresh the team page (or click on a team page link) you will notice the page refresh a couple times.  This is necessary to make sure the “Batter prefs” data reflects the new change that was made.

Please let me know if there’s something you’d like to add to the script.

Sign up and start a new team and then download the script here: http://userscripts.org/scripts/show/77200 .

http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/digg_32.png http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/delicious_32.png http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/blinklist_32.png http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/blogmarks_32.png http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/technorati_32.png http://baseballsimulator.com/blog/wp-content/plugins/sociofluid/images/google_32.png

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>