Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:(function(){!function(){let e="",t=[],n="";(function(){function e(e,t){return document.querySelector("#containerBoard > div.containerToolbar > div.containerColorbox > div:nth-child("+e+") > div:nth-child("+t+")")}let t={white:e(1,1),silver:e(1,2),red:e(1,3),orange:e(1,4),yellow:e(1,5),lime:e(1,6),sky:e(1,7),blue:e(1,8),purple:e(1,9),pink:e(1,10),tan:e(1,11),black:e(2,1),gray:e(2,2),maroon:e(2,3),scarlet:e(2,4),gold:e(2,5),green:e(2,6),teal:e(2,7),navy:e(2,8),plum:e(2,9),mauve:e(2,10),brown:e(2,11)}})(),function(){function e(e){return document.querySelector("#containerBoard > div.containerToolbar > div.containerTools > div:nth-child("+e+")")}let t={pen:e(1),eraser:e(2),fill:e(3)}}(),function(){function e(e){return document.querySelector("#containerBoard > div.containerToolbar > div.containerBrushSizes > div:nth-child("+e+") > div > div")}let t={1:e(1),2:e(2),3:e(3),4:e(4)}}();var o=function(){let e=document.querySelector("#buttonClearCanvas");return function(){e.click()}}(),r=function(){let e=document.querySelector("#votekickCurrentplayer");return function(){e.click()}}(),i=function(){let e={good:document.querySelector("#rateDrawing > div:nth-child(1) > div"),bad:document.querySelector("#rateDrawing > div:nth-child(2) > div")};return function(t){e[t].click()}}();!function(){let e=document.createElement("canvas");document.body.appendChild(e),e.width=window.innerWidth,e.height=window.innerHeight,e.style.position="absolute",e.style.backgroundColor="transparent",e.style.zIndex=10,e.style.top=0,e.style.left=0,e.style.pointerEvents="none";let t=e.getContext("2d"),n=[0,1,12,11,21,13,10,14,2,3,15,4,5,16,18,17,7,6,19,8,20,9],o=n.length,r=360/o,i=e.width,l=e.height,a={x:0,y:0},c={x:0,y:0},d=!1,u=0;function s(){let e=(450-180*Math.atan2(c.x-a.x,c.y-a.y)/Math.PI)%25360;u=Math.floor(e/r),t.clearRect(0,0,i,l),t.shadowBlur=50,t.shadowColor="black",t.beginPath(),t.fillStyle=document.getElementsByClassName("colorItem")[n[u]].style.backgroundColor,t.arc(a.x,a.y,180,0,2*Math.PI),t.lineTo(a.x,a.y),t.closePath,t.fill();for(let e=0;e<o;e++)t.shadowBlur=5,t.shadowColor="black",t.beginPath(),t.moveTo(a.x,a.y),t.fillStyle=document.getElementsByClassName("colorItem")[n[e]].style.backgroundColor,t.arc(a.x,a.y,160,Math.PI/180*e*r,Math.PI/180*e*r+Math.PI/180*r),t.lineTo(a.x,a.y),t.closePath(),t.fill(),t.stroke();t.shadowBlur=40,t.shadowColor="white",t.beginPath(),t.moveTo(a.x,a.y),t.fillStyle=document.getElementsByClassName("colorItem")[n[u]].style.backgroundColor,t.arc(a.x,a.y,200,Math.PI/180*u*r,Math.PI/180*u*r+Math.PI/180*r),t.lineTo(a.x,a.y),t.closePath(),t.fill(),t.stroke()}document.addEventListener("mousedown",function(t){2==t.button&&(d=!0,e.width=window.innerWidth,i=e.width,e.height=window.innerHeight,l=e.height,s())},!1),document.addEventListener("mouseup",function(e){d&&(d=!1,t.clearRect(0,0,i,l),document.getElementsByClassName("colorItem")[n[u]].click())},!1),document.addEventListener("mousemove",function(e){e.target.getBoundingClientRect();d?(c.x=e.pageX,c.y=e.pageY,s()):(a.x=e.pageX,a.y=e.pageY)},!1),document.addEventListener("contextmenu",function(e){return e.preventDefault(),!1},!1)}(),function(){let l=JSON.parse(localStorage.getItem("wordList")||"[]"),a=!0,c=!0;function d(){let e={},t=l.filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)});l=t.sort()}window.addEventListener("unload",function(){d(),localStorage.setItem("wordList",JSON.stringify(l))},!1);let u=document.querySelector("#overlay > div > div.text");new MutationObserver(function(){let e=u.innerText;a&&e.startsWith("The word was: ")&&(l.push(e.replace("The word was: ","")),d())}).observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0});let s=document.querySelector("#overlay > div > div.wordContainer");function h(){var o;o=document.querySelector("#currentWord").innerText,e=new RegExp("^"+o.split("_").join("[A-Za-z]")+"$"),t=[];for(let n of l)e.test(n)&&t.push(n.toLowerCase());n=t.length>0?"Possible words:
- "+t.join(", "):"No matches found in your database!",y.innerText=n}new MutationObserver(function(){a&&(l.push(s.children[0].innerText),l.push(s.children[1].innerText),l.push(s.children[2].innerText),d())}).observe(s,{attributes:!0,childList:!0,characterData:!0,subtree:!0});let y=document.createElement("P");y.appendChild(document.createTextNode("")),document.querySelector("#screenGame").appendChild(y),y.style.margin="4px",y.style.background="white",new MutationObserver(e=>{h(),"none"==document.querySelector("#containerBoard > div.containerToolbar").style.display&&c?y.style.display="initial":y.style.display="none"}).observe(document.querySelector("#currentWord"),{attributes:!0,childList:!0,characterData:!0,subtree:!0}),function(){let e=document.querySelector("#inputChat"),n=document.querySelector("#currentWord");setInterval(function(){let o=e.value.toLowerCase();var r;(r=n.innerText,new RegExp("^"+r.split("_").join("[A-Za-z]")+"$")).test(o)&&o.length?t.includes(o)?e.style.backgroundColor="lime":e.style.backgroundColor="#80FF80":e.style.backgroundColor="white"},1e3/60)}(),document.addEventListener("keydown",function(e){e.altKey&&("l"==e.key?c?(c=!1,y.style.display="none"):(c=!0,y.style.display="initial"):"s"==e.key?a?(alert("Stopped saving words to database!"),a=!1):(alert("Resumed saving words to database!"),a=!0):"c"==e.key?o():"g"==e.key?i("good"):"b"==e.key?i("bad"):"v"==e.key&&r())},!1)}()}();})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement