duohacker icon indicating copy to clipboard operation
duohacker copied to clipboard

Needs Update for Lessons

Open Viper5579 opened this issue 2 years ago • 3 comments

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.

Viper5579 avatar Sep 01 '22 23:09 Viper5579

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.

br0k3nglass avatar Sep 04 '22 14:09 br0k3nglass

where do you add the code to detect a lesson url

im not really familiar with javascript haha

mealthyo avatar Mar 05 '23 04:03 mealthyo

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.

br0k3nglass avatar Mar 05 '23 10:03 br0k3nglass