Difference between revisions of "Less Detail"
| Line 1: | Line 1: | ||
| + | [[Category:GreaseMonkey]] | ||
==Overview== | ==Overview== | ||
Removes global daily stats from the page. | Removes global daily stats from the page. | ||
Revision as of 17:42, 17 February 2012
Overview
Removes global daily stats from the page.
Shows only users in the userlist variable.
Script
[javascript,n]
// ==UserScript==
// @name less-detail
// @namespace http://jamesdooley.us
// @description Removes extra junk from response chart and only shows enterprise staff.
// @include https://hd.int.liquidweb.com/stats/detail.mhtml
// ==/UserScript==
var userlist = new Array("jdooley","jscott","jschinkel","bnienhouse","aauble","bking","jtaylor","mgearhart","nhubbard","awilliams","bmata","mjung","tholloway","jbeckmeyer","pcrandall");
document.getElementsByTagName('h3')[0].style.display = "none" document.getElementsByTagName('table')[0].style.display = "none"
var trlist = document.getElementsByTagName('table')[1].getElementsByTagName('tr');
for (var i=1; i < trlist.length; i++) { var uname = trlist[i].getElementsByTagName('td')[0].innerHTML trlist[i].style.display = "none" for (var u=0; u < userlist.length; u++) { if (uname==userlist[u]) { trlist[i].style.display = "" } } }
What to change
userlist needs to be changed with the list of users you want to display.