derat/duoleavemealone

Skip legendary (crown) screens

Opened this issue · 7 comments

Please add following new pages to bypass
Screen Shot 2021-11-02 at 11 35 51
Screen Shot 2021-11-02 at 11 37 15
Screen Shot 2021-11-02 at 11 38 34
Screen Shot 2021-11-02 at 12 41 27

derat commented

Some notes for myself:

You can get to the start screen for this by clicking on a skill in the tree and then clicking the "Legendary" button:

Screenshot 2021-11-02 08 27 31

The "Start" button is hopefully easy to identify using its data-test and href attributes:

<a class="_3HhhB _2NolF _275sd _1ZefG _1M1mb _26QYy" aria-disabled="false" data-test="cta-button" href="/skill/es/Intro/1">START</a>

After that, there's a Plus upsell that seems like it'd be hard to automatically skip:

Screenshot 2021-11-02 08 31 12

Then another screen at e.g. https://www.duolingo.com/skill/es/Intro/1 with a "Continue" button with a data-test="player-next" attribute.

After that, there's a Plus upsell that seems like it'd be hard to automatically skip:

This guy managed to skip this page, though by mistake :)

ToranSharma/Duo-Strength#202

derat commented

I think it's easy to skip if I e.g. use the text in the button or use its (automatically-generated?) CSS classes to identify it, but I've been reluctant to do that so far since it seems likely to break in different languages or when Duolingo makes changes.

Like you said in that bug, I'm also not sure if it's a good idea to automatically click the button, since users may not expect to be charged lingots for it. (Although I suspect that people who use the extension probably have enough lingots that this isn't a big deal... and this isn't even getting into the lingots vs. gems mess.)

derat commented

Most of these screens should be skipped in 0.25. The one exception that I'm aware of is the blue/purple screen for starting a legendary lesson. I'm not sure if it makes sense to skip it, since these lessons cost lingots for non-Plus, non-classroom users. I guess it could be behind an option, but I'm not in a rush to add off-by-default options.

Hi, the 20 XP page is not skipped

derat commented

I wonder if they're running an experiment. I went through a few of the legendary exercises without seeing the page about getting 20 XP, but then I turned off the extension and still didn't see it.

Yeh, at first there was no middle page. It appeared after one of the updates. May be you'll get it soon.