Quizlet micromatch bot

Win micromatch in < 100 seconds!

As of 2016-10-12. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Quizlet micromatch bot
// @namespace    Danielv123
// @version      1.1
// @description  Win micromatch in < 100 seconds!
// @author       You
// @match        https://quizlet.com/*/micro*
// @grant        none
// ==/UserScript==

// this script died when microscatter turned into micromatch, but it still works albeit badly.
function eventFire(el, etype){
  if (el.fireEvent) {
    el.fireEvent('on' + etype);
  } else {
    var evObj = document.createEvent('Events');
    evObj.initEvent(etype, true, false);
    el.dispatchEvent(evObj);
  }
}

setInterval(function() {
dwfg = Math.floor(Math.random() * 16)
/*console.log(document.getElementById("cells").childNodes[dwfg].getAttribute("data-type"));*/
if(document.getElementById("cells").childNodes[dwfg].className == "cell long touching correct"){
} else {
eventFire(document.querySelector("#cells").childNodes[dwfg], "click")
}
}, 1)