Difference between revisions of "Side Bar Color Fixer"

From James Dooley's Wiki
Jump to: navigation, search
 
Line 9: Line 9:
 
==Script==
 
==Script==
  
<code>[javascript,n]
+
<source lang='bash'>
 
// ==UserScript==
 
// ==UserScript==
 
// @name          HD Link Color
 
// @name          HD Link Color
Line 35: Line 35:
  
  
</code>
+
</source>
  
 
==What to change==
 
==What to change==

Latest revision as of 14:34, 25 March 2014

Overview

Changes the link colors to something more readable and removes link underlines.

Also shrunk the text down to fit inside the frame for Nate's sidebar.

Removed search boxes since nobody uses them anyway.

Script

// ==UserScript==
// @name           HD Link Color
// @namespace      http://jamesdooley.us
// @description    Change HD Status Links to more visible colors
// @include        https://hd.int.liquidweb.com/stats/acd/support/vertsearch.mhtml
// ==/UserScript==

GM_addStyle("A { color: #FFF; text-decoration: none}");
GM_addStyle(".numbers { float: right;}");
GM_addStyle(".header { font-size: 10px; }");
GM_addStyle(".stats { font-size: 10px; }");
GM_addStyle(".statsred { font-size: 10px; }");
GM_addStyle(".statsgreen { font-size: 10px; }");


tablerows = document.getElementsByTagName('tr');

for (i=9; i<=14; i++)
{
        tablerows[i].style.display = "none";
}

document.getElementsByTagName('p')[0].style.display = "none";

What to change

To change the link color

color: <hex>


To enable link underlines remove

text-decoration: none