// ==UserScript== // @name GLB Game Log Totals // @namespace pbr // @include http://goallineblitz.com/game/player_game_log.pl?*player_id=* // @include http://glb.warriorgeneral.com/game/player_game_log.pl?*player_id=* // @copyright 2009, pabst // @license (CC) Attribution Share Alike; http://creativecommons.org/licenses/by-sa/3.0/ // @version 13.12.29 // @description Show stat totals on the GLB Player Log page by team, by score, and by game type. // @downloadURL none // ==/UserScript== var blowout = 55; var titles = ["Scrim","Seas","Post","Diff <"+blowout,"Diff >"+blowout]; window.setTimeout( function() { game_log_main(); }, 500 ); function game_log_main() { var table = document.getElementById("career_stats"); table.style.display = "none"; tableSetup(); getStats(); var table = document.getElementById("career_stats"); table.style.display = ""; } function Game() { this.week = null; this.team = null; this.teamLink = null; this.res = null; this.diff = null; this.stats = new Array(); this.toString = function() { return (this.week+" : "+this.team+"("+this.teamLink.href.split("=")[1]+" vs. "+this.oppLink.href.split("=")[1]+") -"+this.res+"- "+this.diff+" -- "+this.stats.toString()); } } function getStats() { var games = new Array(); var table = document.getElementById("career_stats"); for (var i=2; i