MicroScatter Cheater Script

Press C on micromatch to win

  1. // ==UserScript==
  2. // @name MicroScatter Cheater Script
  3. // @namespace none
  4. // @version 0.1
  5. // @description Press C on micromatch to win
  6. // @author shadow_plays
  7. // @match https://quizlet.com/*/micromatch
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. var cheatTime = 0;
  13. window.setCheatTime = function(mils) {
  14. cheatTime = mils;
  15. };
  16. var $ = window.jQuery;
  17. var cheat = function() {
  18. var ids = [];
  19. var checkhasid = function(id) {
  20. for(var i in ids) {
  21. if(ids[i] == id) {
  22. return true;
  23. }
  24. }
  25. return false;
  26. };
  27. setTimeout(function() {
  28. $('.cell').each(function(index){
  29.  
  30. if(checkhasid($(this).attr("data-id"))) $('[data-id="' + $(this).attr("data-id") + '"]').trigger("click")
  31. if(!checkhasid($(this).attr("data-id"))) ids.push($(this).attr("data-id"));
  32.  
  33. });
  34. }, cheatTime);
  35. };
  36. window.startWithTime = function(mils) {
  37. setCheatTime(mils);
  38. $('#start').trigger("click");
  39. cheat();
  40. };
  41. var z = 0;
  42. $('*').keyup(function(e) {
  43. if(e.keyCode == 67 && z == 0 && $('#cells').hasClass("started")) {z = 1; cheat();}
  44. });
  45. })();