Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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.
if ( != "") {
alert('Collecting required data from Tinychat, Please be patient.');
window.location = "chatroom-url";
} else {
if("autoop") > 0 &&"avatarhash") > 0 &&"account:")) {
var autoop = document.body.innerHTML.substr("autoop")+9,32);
var avatarhash = document.body.innerHTML.substr("avatarhash")+13,32);
var account = document.body.innerHTML.substr("account:")+10,30);
account = account.substr(0,"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!.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment