Right Click Blocker That Wont Block You

Don Von Alpha Dom
by Don Von Alpha Dom · 3 posts
12 years ago in General
Posted 12 years ago · Author
Replace YOURAVATARNAMEHERE with your IMVU account name.

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

var vName='';
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==1 && vName== owner_aviname)){
   document.oncontextmenu= function blockrightclick(){return false;} ;
}
</script>
Posted 9 years ago
Nice codes don,but where does these code get installed? Where to add them?
Posted 9 years ago
Sita wrote:
Nice codes don,but where does these code get installed? Where to add them?


Put it an the custom html section of any of your homepage panels.

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