Difference between revisions of "Less Detail"
(Created page with "==Overview== Removes global daily stats from the page. Shows only users in the userlist variable. ==Script== <code>[javascript,n] // ==UserScript== // @name less-det...") |
|||
| Line 14: | Line 14: | ||
// ==/UserScript== | // ==/UserScript== | ||
| − | var userlist = new Array("jdooley","jscott","jschinkel","bnienhouse","aauble","bking","jtaylor","mgearhart","nhubbard","awilliams","bmata","mjung","tholloway"); | + | 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('h3')[0].style.display = "none" | ||
Revision as of 16:53, 24 January 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.