duohacker
duohacker copied to clipboard
Needs Update for Lessons
The code shows that it is used for https://www.duolingo.com/skill but now when you do anything on Duolingo it shows with this link: https://www.duolingo.com/lesson. Don't know how hard it would be to fix or if there is a way around this that I might be missing please share.
So part of the issue is that the script won't get triggered until you add the following:
// @match https://www.duolingo.com/lesson*
You'll also need to update the solveChallenge() code to detect a lesson URL:
if (/[sacl][klhe][ipes][lhcs][lako]/gi.test(window.location.href) == true) {
Mine is currently running OK. The main problem now is that they appear to have removed the challenge tests so you can't farm them any more using the redirector.
where do you add the code to detect a lesson url
im not really familiar with javascript haha
In Tampermoney (or whatever addin/extension you're running the script with) you'd open the duohacker script. The first section or block is "// ==UserScript==" which contains "// @match" lines which identify URLs that trigger the script.