QUOTE(varst @ Sep 11 2012, 23:48)

Well you know, you should suggest this god damn good idea to the HVSTAT team. Seriously. (IMG:[
invalid]
style_emoticons/default/smile.gif)
Haha, thanks for the encouragement, but I took a look at the Git repository and their method is completely different.
I can't think of any way to add such color-changing functionality without sacrificing speed.
And since they're currently focused on making things faster, I'd rather not bother them for a trivial change (IMG:[
invalid]
style_emoticons/default/smile.gif)
CODE
function showMonsterNumber() {
var targets = document.querySelectorAll('.btmi'), i = targets.length;
while (i-- > 0) targets[i].parentNode.appendChild(document.createElement('div')).innerHTML = (i+1)%10;
var style = '.btmi {display:none;} .btmi + div {height:25px; font-size:1.6em; font-family:HentaiVerse; color:black; padding-top:0.4em;}';
var style2 = document.createElement('style');
style2.innerHTML = style;
document.head.appendChild(style2);
}
//isShowMonsterNumber stolen from HV Lite, and added by Ilirith
Final edit (version 3) updated in the first post:
- Took a page out of the HVSTAT book and reduced selector specificity (smaller CSS file) + applied to entire domain (for random encounters)
- Added monster 'J', aka number '0'. (Missed that, since I'm rather low-level and rarely get 10 monsters at once)
- Tested in Firefox 3.0 + Stylish 1.0.9 (Yep, ancient versions for an ancient computer)
Double-checked the code to make sure nothing's missing/wrong so that this thread can rest peacefully.
Thanks for sticking around. (IMG:[
invalid]
style_emoticons/default/cool.gif)