Advertisement
Mdbook

SuperTeacherTools Speedmatch Exploit

Oct 26th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. 1) install https://chrome.google.com/webstore/detail/panda-styler-emoji/bogdgcfoocbajfkjjolkmcdcnnellpkb
  2.  
  3. 2) Go to the website, open the extension (click the extension icon), and put the following code into the Javascript section. Then refresh the page.
  4.  
  5.  
  6. /*for input length:
  7. for (var i in document.getElementsByTagName('input')){
  8. document.getElementsByTagName('input')[i].maxLength = 10000;
  9. }
  10. */
  11. //exploit made by Michael Burke
  12. var inter;
  13. var i = 1;
  14. var start = document.createElement('button');
  15. start.style = "display:block;z-index:999;position:fixed;right:60px;top:40%;font-size:30px;width:300px;height:120px;text-align:center;word-wrap:break-word;line-height:12px;";
  16. start.innerHTML = "START HACK<b style='font-size:12px;'><br>Click the Play Now button,<br>Answer the first question to start the timer,<br>and then click me</b>";
  17. start.addEventListener('click', function(){
  18. hack();
  19. });
  20. document.body.appendChild(start);
  21. function hack() {
  22. inter = setInterval(function(){
  23. if (i <= 20){
  24. $("#square" + i).hide();
  25. rightcount++;
  26. myAudio.play();
  27. if(rightcount < qcount){
  28. $("#gamestatus").html(rightcount + " / " + qcount);
  29. };
  30. if(rightcount == 1){
  31. sec = 0;
  32. //$('#instructions').fadeOut("fast").delay(2000);
  33.  
  34. $("#secondtop").hide();
  35.  
  36. $('#gameinfobox').fadeIn("slow");
  37.  
  38. $("#topsection").hide().delay(500);
  39. $('html, body').css({
  40. 'overflow': 'hidden',
  41. 'height': '100%'
  42. })
  43.  
  44. }
  45. if(rightcount == 2){
  46. $('#gametop').animatescroll();
  47. }
  48. if(rightcount >= qcount){
  49. $('#gameinfobox').fadeOut("fast");
  50. $('#gametime').val(sec);
  51. $('#answerbox').fadeIn("slow").delay( 3000 );
  52. seconds = pad(++sec%60);
  53. minutes = pad(parseInt(sec/60,10));
  54. $('#gamedone').html("You correctly matched " + rightcount + " items in " + minutes + " minutes, " + seconds + " seconds!");
  55.  
  56. //Restore scrolling
  57. $("#secondtop").show();
  58. $("#gameinfobox").hide();
  59. $("#targetbox").hide();
  60.  
  61. $('html, body').css({
  62. 'overflow': 'auto',
  63. 'height': 'auto'
  64. })
  65.  
  66. $("#squarebox").fadeOut("fast");
  67.  
  68. //Highscore?
  69. if(sec <= bestevertime || sec <= besttodaytime){
  70. //alert('That is a high score!');
  71. $('#submitbox').fadeIn("slow").delay( 3000 );
  72. }
  73. else{
  74. $('#gamedone2').html("You correctly matched " + rightcount + " items in " + minutes + " minutes, " + seconds + " seconds!");
  75. }
  76. }
  77. $( this )
  78. .slideFadeToggle();
  79. i++;
  80. } else {
  81. clearInterval(inter);
  82. }
  83.  
  84. }, 100);
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement