Quizlet gravity game "helper"

The correct answer pops up in the browser console and the feedback button down left

12.10.2016 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Quizlet gravity game "helper"
// @namespace    Danielv123
// @version      1.3
// @description  The correct answer pops up in the browser console and the feedback button down left
// @author       You
// @match        https://quizlet.com/*/gravity
// @grant        none
// ==/UserScript==

selector = "#GravityGameTarget > div > div > div > div.ModeLayout-content > div > div.GravityGameplayView-inner > div:nth-child(5) > div > div > div > div > span > span";

setInterval(function() {
    console.log(words[document.querySelector(selector).innerHTML]);
    // update the feedback button with one of our AJAX words
    document.querySelector("#GravityGameTarget > div > div > div > div.ModeLayout-controls > div > div > div > div.ModeControls-main > div.ModeControls-actions > div.UIDiv.ModeControls-action.ModeControls-feedbackWrapper > a > span > span").innerHTML = words[document.querySelector(selector).innerHTML];
}, 100);
// load words using AJAX on load
words = {};
function loadXMLDoc(link) {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == XMLHttpRequest.DONE ) {
           if (xmlhttp.status == 200) {
               var element = document.createElement('div');
               element.insertAdjacentHTML('beforeend', xmlhttp.responseText);
               adsaf = element.querySelectorAll(".TermText");
               for(i=0;i<adsaf.length;i+=2){
                   words[adsaf[i].innerHTML] = adsaf[i+1].innerHTML;
               }
           }
        }
    };
    xmlhttp.open("GET", link, true);
    xmlhttp.send();
}
loadXMLDoc("https://quizlet.com/"+document.location.pathname.split("/")[1]+"/original?_pjax");