-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat.js
1 lines (1 loc) · 1.94 KB
/
chat.js
1
javascript:(function()%7B%22use%20strict%22%3B!function()%7Bvar%20n%3D0%2Ce%3D(document.body.style%3D%22height%3A%20100%25%3B%22%2Cdocument.getElementsByTagName(%22html%22)%5B0%5D.style%3D%22height%3A%20100%25%3B%22%2Cdocument.body.innerHTML%3D%22%22%2Cdocument.createElement(%22div%22))%2Ct%3D(e.style%3D%22display%3Aflex%3B%20%20%20%20%20height%3A%20100%25%3B%22%2Ce.id%3D%22app%22%2Ce.innerHTML%3D%22%5Cn%20%20%3Cdiv%20id%3D'sidebar'%20style%3D'background-color%3A%20black%3B%20width%3A%20150px%3B'%3E%3C%2Fdiv%3E%5Cn%20%20%3Cdiv%20id%3D'chat'%20style%3D'width%3A%20-webkit-fill-available%3B'%3E%5Cn%20%20%20%20%3Cdiv%20id%3D'chats'%20style%3D'width%3A%20100%25%3B%20padding%3A%208px%3B%20display%3A%20flex%3B%20flex-direction%3A%20column%3B%20justify-content%3A%20flex-end%3B%20height%3A%2090%25%3B'%3E%3C%2Fdiv%3E%5Cn%20%20%20%20%3Cdiv%20id%3D'chat-input-wrapper'%20style%3D'width%3A%20100%25%3Bbackground-color%3A%20%23d8b1d8%3Bpadding%3A%208px%3Bdisplay%3A%20flex%3Bjustify-content%3A%20center%3B'%3E%5Cn%20%20%20%20%20%20%3Cinput%20autofocus%20id%3D'chat-input'%20placeholder%3D'Type%20a%20chat...'%20style%3D'padding%3A%204px%208px%3B%20font-size%3A%201em%3B%20width%3A%2095%25%3B%20margin%3A%204px%3B'%3E%3C%2Finput%3E%5Cn%20%20%20%20%3C%2Fdiv%3E%5Cn%20%20%3C%2Fdiv%3E%5Cn%20%20%22%2Cdocument.body.appendChild(e)%2Cdocument.getElementById(%22chat-input%22))%2Cd%3Ddocument.getElementById(%22chats%22)%2Ci%3Dwindow.console%2Ce%3DObject.keys(i).reduce(function(e%2Ct)%7Breturn%20e%5Bt%5D%3Dfunction()%7Bvar%20e%3Ddocument.createElement(%22div%22)%3Be.style%3D%22font-family%3A%20sans-serif%3B%20padding%3A%202px%200px%3B%20%22%2B(n%252%3F%22background-color%3A%20%23ececec%3B%22%3A%22%22)%2Cn%2B%2B%2Ce.innerHTML%3Darguments%5B0%5D%2Cd.append(e)%2Ci%5Bt%5D.apply(window%2Carguments)%7D%2Ce%7D%2C%7B%7D)%3Bt.addEventListener(%22keyup%22%2Cfunction(e)%7B13%3D%3D%3De.keyCode%26%26(e.preventDefault()%2Cconsole.log(t.value)%2Ct.value%3D%22%22)%7D)%2Cwindow.console%3De%7D()%3B%7D)()