Skip to content

Instantly share code, notes, and snippets.

  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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.
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