Advertisement
MeKLiN2

Untitled

Jan 28th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. window.onresize=()=>{StumbleChat.Userlist.Menu.Hide();StumbleChat.Videos.Menu.Hide();StumbleChat.Userlist.Resize();StumbleChat.Chat.Resize();Modal.Center();StumbleChat.Videos.Update();};if(!CheckCompatibility.WebSocket()||!CheckCompatibility.Device())return Modal.Create(1);if(CheckCompatibility.Storage())StumbleChat.Chat.Settings.SaveEnabled=true;StumbleChat.Userlist.Resize();StumbleChat.Chat.Settings.RoomVolume=parseStorage('RoomVolume',100);StumbleChat.Chat.Sounds.public_message.volume=(StumbleChat.Chat.Settings.RoomVolume/100);StumbleChat.Chat.Sounds.private_message.volume=(StumbleChat.Chat.Settings.RoomVolume/100);StumbleChat.Chat.Settings.isMobile=CheckCompatibility.MouseSupport("touchend");document.addEventListener("contextmenu",(e)=>{if(e.target.id=="userlist"||e.target.id=="embeddedvideos"||e.target.id=="videos"||e.target.id=="regularvideos ")e.preventDefault();});document.querySelector(".RoomVolume").setAttribute("value",StumbleChat.Chat.Settings.RoomVolume);StumbleChat.Userlist.Menu.Element=document.querySelector("#user-menu");StumbleChat.Userlist.Menu.State=0;StumbleChat.Videos.Menu.Element=document.querySelector("#video-menu");StumbleChat.Videos.Menu.State=0;document.getElementById("textarea").addEventListener("keypress",Message.send,{passive:false});window.addEventListener("keypress",(event)=>{if(event.defaultPrevented)return;if(event.key=="Enter"||event.code=="Enter"){switch(StumbleChat.Chat.Status.ModalOpened){case 0:saveBroadcast();break;case 5:App.ChangeNick();break;case 6:Modal.Destroy();StumbleChat.Videos.Password=document.querySelector("#modal-text-input").value;if(document.querySelector("#modal-text-hidden").value==0){requestBroadcast(StumbleChat.Videos.Password);}else if(document.querySelector("#modal-text-hidden").value==1){requestScreenshare(StumbleChat.Videos.Password);}
  2.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement