Advertisement
BenSyt

Breakout edu hacks

Jun 11th, 2023 (edited)
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //copy start
  2. var e,t,n;let o=(e=!1,t=0,n=0,{create:function(o){var s,r=document.createElement("div");r.className="popup-menu",r.visible=true,r.style.position="fixed",r.style.fontSize="125%",r.style.top="50%",r.style.left="50%",r.style.transform="translate(-50%, -50%)",r.style.background="#ffffff",r.style.padding="10px",r.style.border="1px solid #cccccc",r.style.borderRadius="5px",r.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.3)",r.style.zIndex="9999",r.style.cursor="move",(s=r).addEventListener("mousedown",(function(o){e=!0,t=o.clientX-s.offsetLeft,n=o.clientY-s.offsetTop,document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.MozUserSelect="none",document.body.style.msUserSelect="none"})),document.addEventListener("mousemove",(function(o){e&&(s.style.left=o.clientX-t+"px",s.style.top=o.clientY-n+"px")})),document.addEventListener("mouseup",(function(){e=!1,document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.MozUserSelect="",document.body.style.msUserSelect=""}));var c=document.createElement("ol");function l(){for(;c.firstChild;)c.firstChild.remove();o.forEach((function(e){var t=document.createElement("li");t.textContent=e,c.appendChild(t)}))}return l(),r.appendChild(c),document.body.appendChild(r),{editList:function(e){o=e,l()},toggle:function(){r.visible=!r.visible;r.style.display=r.visible?"block":"none";}}}});let url = window.location.href.split("/");url[3]="game-with-locks";url[4]="play";fetch(url.join("/")).then(response=>response.json()).then(data=>{let json = data.payload;let ans = [];json.gameLocks.forEach(function(r){ans.push(r.ans);});o=o.create(ans);});document.addEventListener("keyup",function(e){if(e.keyCode==16){o.toggle();}});
  3. //copy end
  4. //INSTRUCTIONS FOR USE:
  5. //use the bookmark on any breakout edu, will show you the answers. press shift to hide menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement