Show only recent messages.

Don Von Alpha Dom
by Don Von Alpha Dom · 3 posts
12 years ago in Messages Panel
Posted 12 years ago · Author
Replace 999 with how many messages you wish to show.

Code
<style type="text/css">
.msgWrap{display: none}
.msgWrap2 {display: block !important}
</style>
<script type="text/javascript">
max_msgs = 999;
msg_count=0;

msg=document.getElementById('messages_panel_body').getElementsByTagName('div');

for(i=0;i<msg.length && msg_count<max_msgs;i++) {
   z =msg[i].getElementsByTagName('div')[0];
   if(z && z.className == "msgWrap") {
      z.className = "msgWrap2";
      msg_count++;
   }
}
</script>
Posted 4 years ago
Hi,
Where do I put in this code in imvu?or it is just applicable for use in here?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT