Only show messages with Gifts

Don Von Alpha Dom
by Don Von Alpha Dom · 4 posts
13 years ago in Messages Panel
Posted 13 years ago · Author
I saw this code and thought it was neat. It makes it look like people should not message you without a gift.

Replace YOURNAMEHERE with your IMVU account name.

Code
<script type="text/javascript">
owner_aviname = "YOURNAMEHERE";

var olStatus=0;
if(document.getElementById("mininav-avname")) {
 allTags=document.getElementById('mininav-avname').innerHTML;
 olStatus=1;
 if(allTags.indexOf("Guest") == 0) {
  vName = allTags.substring(6, (allTags.length));
 }
  else vName=allTags;
}

if(olStatus==0 || vName!= owner_aviname)){

   msg=document.getElementById('messages_panel_body').getElementsByTagName('div');
   for(var i=0;i<msg.length;i++) {
      z =msg[i].getElementsByTagName('div')[0];
      if(z && z.className == "msgWrap") {
            if(z.getElementsByTagName('div').length == 5){
               z.style.display = "none";
            }
      }
   
   }
}
</script>
Posted 13 years ago
Very fun thank you :)
Posted 13 years ago
Lol this would be funny letting everyone thinking that you only get messages with gifts :P

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