vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Separate Flagged Messages From Normal
Separate Flagged Messages From Normal - Posted By Michael (wrighty) on 4th Apr 08 at 11:39pm
This code will add a bar separating the flagged messages from those that aren't flagged!
<script>
/*Separate Flagged Messages From Normal.
Coded By Wrighty
No: Ripping, Reposting or Claiming*/
if(/action\/pm/.test(location.href)){
var d = get('tr','tag');
for(i=0;i<d.length;i++){
if(d[i].cells[0].className.match(/window(1|2)/) && d[i].cells[0].width == '2%' && d[i].cells[1].className.match(/window(1|2)/) && d[i].cells[1].firstChild.firstChild && d[i].cells[1].firstChild.firstChild.alt == '!' && d[i+1].cells[0].className.match(/window(1|2)/) && d[i+1].cells[1].className.match(/window(1|2)/) && !d[i+1].cells[1].innerHTML.match(/\!/)){
var r = document.createElement('tr');
var x = document.createElement('td');
x.colSpan = '5';
x.className = 'title1';
r.appendChild(x);
d[i+1].parentNode.insertBefore(r, d[i+1]);
break;
}
}
}
</script>
Main Footer