Skip to content

Instantly share code, notes, and snippets.

@coderanger
Created March 26, 2010 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderanger/344372 to your computer and use it in GitHub Desktop.
Save coderanger/344372 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Lifetime blues
// @namespace http://startrekonline.com/
// @include http://forums.startrekonline.com/showthread.php*
// ==/UserScript==
var snapAlt2 = document.evaluate("//table//td[@class='alt2']//span", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = snapAlt2.snapshotLength - 1; i >= 0; i--) {
var elm = snapAlt2.snapshotItem(i);
if(elm.style.color == 'rgb(104, 192, 240)') {
elm.style.color = 'inherit';
}
if(elm.innerHTML == 'Career Officer') {
elm.style.fontWeight = 'normal';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment