By Zuo
—
Last update
Sep 4, 2008
—
Installed
39 times.
// ==UserScript==
// @name Woweurope Forums - Zuo!
// @namespace Woweurope Forums - Zuo!
// @description Helps you notice posts from the person you love <3
// @include *wow-europe.com/*
// ==/UserScript==
// Color options
var custom_color = 0;
var _r = 128, _g = 255, _b = 128;
// Stop here is no element tags exist on the page
if(!document.getElementsByTagName) {
return;
}
// Custom colors on or off
if(custom_color == 1) {
var _cust = ' style="color:rgb('+_r+','+_g+','+_b+')"';
} else {
var _cust = '';
}
// Parse all tags and to what you have to!
var tr = document.getElementsByTagName("tr");
for(var i=0;i<tr.length;i++) {
var k = tr[i];
var ks = tr[i].innerHTML + "";
if(k.getAttribute("id")) {
var val = k.getAttribute("id") + "";
if(val.match(/body(.*)\_switch(.*)/g)) {
if(ks.match(/Guide to Macros\:/g)) {
k.setAttribute("style","color:rgb("+_r+","+_g+","+_b+")");
var na = ks.replace(/\<div class\=\"message\-format\"\>/g,'<div class="message-format">') + "";
var nb = na.replace(/\<span class\=\"\"\>/g,'<span class="mvp" '+_cust+'>');
k.innerHTML = nb;
}
}
}
}