Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ruddernation-Designs/19353f6beadef6cd70d28e9eb445a826 to your computer and use it in GitHub Desktop.
Save Ruddernation-Designs/19353f6beadef6cd70d28e9eb445a826 to your computer and use it in GitHub Desktop.
The code below is now redundant as Tinychat now allows all domains to use the login data and is saved in a cookie meaning you no longer need the Autoop or Prohash codes to be mod/pro in a chat room.
<script>(function(){
if (window.location.host != "tinychat.com") {
alert('Collecting required data from Tinychat, Please be patient.');
window.location = "chatroom-url";
} else {
if(document.body.innerHTML.search("autoop") > 0 && document.body.innerHTML.search("avatarhash") > 0 && document.body.innerHTML.search("account:")) {
var autoop = document.body.innerHTML.substr(document.body.innerHTML.search("autoop")+9,32);
var avatarhash = document.body.innerHTML.substr(document.body.innerHTML.search("avatarhash")+13,32);
var account = document.body.innerHTML.substr(document.body.innerHTML.search("account:")+10,30);
account = account.substr(0,account.search("avatarhash:")-3);
alert('Data collected successfully, Going back to your room');
window.location = "embedurl?autoop=" + autoop +"&avatarhash=" + avatarhash + "&account=" + account;
} else {
alert('data could not be collected, Make sure you are logged in!.');
}
}
})
();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment