Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Needs Update for Lessons #11

Open
Viper5579 opened this issue Sep 1, 2022 · 3 comments
Open

Needs Update for Lessons #11

Viper5579 opened this issue Sep 1, 2022 · 3 comments

Comments

@Viper5579
Copy link

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.

@br0k3nglass
Copy link

br0k3nglass commented Sep 4, 2022

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.

@mealthyo
Copy link

mealthyo commented Mar 5, 2023

where do you add the code to detect a lesson url

im not really familiar with javascript haha

@br0k3nglass
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants