Advertisement
Game_Logic

TikTok Dev Console

May 21st, 2024
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. function openttdevconsole () { var maindiv = document.createElement("p"); document.body.appendChild(maindiv); maindiv.outerHTML=`<input id='tiktokdevconsole' placeholder='|' style='position:fixed;top:10%;left:3%;z-index:10000;background:#555555;padding-left:5px;color:white;width:200px;height:30px;border-style:solid;border-width:1px;border-color:white;'><dyv id="tiktokdcoutput" style="position:fixed;top:14%;left:3%;z-index:10000;background:#555555;padding-left:5px;padding-top:5px;color:white;width:400px;height:200px;border-style:solid;border-width:1px;border-color:white;"><p style="font-size:18px;">Output:</p><textarea style="resize:none;background: rgb(85, 85, 85); color: white; width: 100%; height: 164px;" id="dcoutputmain" disabled=""></textarea></dyv>`; document.getElementById("dcoutputmain").value="TikTok Developer Console Unlocked"; document.getElementById("tiktokdevconsole").addEventListener("keydown",runcmdifondev,false); function runcmdifondev(evt) { if (evt.keyCode == "13") { runttcmd() }; }; }; function runttcmd() { var dcinput = document.getElementById("tiktokdevconsole").value; if (dcinput == "help" || "clear" || "autolike off" || "autolike on") { if (dcinput == "help") { document.getElementById("dcoutputmain").value=document.getElementById("dcoutputmain").value+"\nhelp - shows all commands\nclear - clears the console\nautolike [on/off] - automatically likes LIVEs\n----------------------";document.getElementById("tiktokdevconsole").value="";} if (dcinput == "clear") { document.getElementById("dcoutputmain").value="";document.getElementById("tiktokdevconsole").value=""; } if (dcinput == "autolike on") { document.getElementById("tiktokdevconsole").value=""; document.getElementById("dcoutputmain").value=document.getElementById("dcoutputmain").value+"\nLIVE AutoLike: ON\n----------------------"; const ttautolikex = setInterval(function(){document.getElementsByClassName("tiktok-4ldqvw-DivLikeBtnWrapper ebnaa9i2")[0].click()},0,false); const ttautolikey = setInterval(function(){document.getElementsByClassName("tiktok-4ldqvw-DivLikeBtnWrapper ebnaa9i2")[0].click()},0,false); } if (dcinput == "autolike off") { document.getElementById("tiktokdevconsole").value=""; document.getElementById("dcoutputmain").value=document.getElementById("dcoutputmain").value+"\nLIVE AutoLike: OFF\n----------------------"; clearInterval(ttautolikex); clearInterval(ttautolikey); }; } else { document.getElementById("dcoutputmain").value=document.getElementById("dcoutputmain").value+"\nERROR: Unknown command."; document.getElementById("tiktokdevconsole").value=""; }; };
  2.  
  3. document.getElementsByTagName("input")[0].oninput=`if (document.getElementsByTagName('input')[0].value == 'tiktok-admin> open_dev_console') { openttdevconsole(); };`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement