duolingo auto practice

please download my other script [duohacker] for it to work properly. duolingo cheat, duolingo hack, duolingo farmer, duolingo xp.

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

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 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         duolingo auto practice
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  please download my other script [duohacker] for it to work properly. duolingo cheat, duolingo hack, duolingo farmer, duolingo xp.
// @author       0325skz      
// @copyright    0325skz   
// @match        https://www.duolingo.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// @run-at           document-end
// ==/UserScript==

const DEBUG = false;

let mainInterval;
const TIME_OUT = 250;

const TRIGGER_URL = "https://www.duolingo.com/learn"


/*
Make sure to start a language course before you run the farmer

Make sure that you have selected your language as your learning language on Duolingo,
otherwise it will cause an error and be stuck in an infinite loop trying to start a lesson
*/


function getLessonURL() {
    var redirect_url = "https://www.duolingo.com/practice"
    return redirect_url
}

function redirect(url) {
    window.location.replace(url);
    if (DEBUG) { console.log("Redirected to:" + window.location)}
}

function main() {
    if (DEBUG) { console.log("Running main")}

        var currentLocation = window.location;

        if (DEBUG) { console.log("Current location: " + currentLocation)}

        if (currentLocation == TRIGGER_URL) {
            if (DEBUG) { console.log("Calling redirect")}

            var new_lesson = getLessonURL();
            redirect(new_lesson);
        }
}

function start() {
    mainInterval = setInterval(main, TIME_OUT)
}

(start)();