I know it's possible to make a color change with each refresh using JS, but is there any way to apply this to a username maybe?
Last edited by Derp-chan on August 17th 2015, 5:03 pm; edited 1 time in total
$(function() {
var users = {
'u1' : ['style_1', 'style_2', 'style_3'],
'u2' : ['style_3'],
'u3' : ['style_1', 'style_2']
},
a = document.getElementsByTagName('A'), i = 0, j = a.length, k;
for (; i < j; i++) for (k in users) if ($(a[i]).attr('href') == '/' + k) a[i].className += ' ' + users[k][Math.floor(Math.random() * users[k].length)]
});
.style_1, .style_1 > span { color:red !important }
.style_2, .style_2 > span { color:green !important }
.style_3, .style_3 > span { color:blue !important }