faubiguy / Xkcd Forums Username Empinkener

// ==UserScript==
// @name         Xkcd Forums Username Empinkener
// @version      0.1
// @description  Empinkens uncoloured usernames at the xkcd forums
// @author       faubiguy
// @include      http://forums.xkcd.com/*
// @include      http://forums3.xkcd.com/*
// @include      http://fora.xkcd.com/*
// @include      http://echochamber.me/*
// @grant        none
// ==/UserScript==

links = document.getElementsByTagName('a')
for(var i=0;i<links.length;i++){
    link = links[i]
    if(link.href.indexOf('memberlist.php?mode=viewprofile') !== -1 && !link.classList.contains('username-coloured') && !link.classList.contains('postlink')){
        link.style.color = '#FF00BF'
        link.classList.add('username-coloured')
    }
}