Skip to content

Commit

Permalink
Update class names after 2020-08-17 change
Browse files Browse the repository at this point in the history
Fixes #6.
  • Loading branch information
CyberShadow committed Aug 25, 2020
1 parent f7084f1 commit 1a7e2de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions More_keyboard_hotkeys.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @author Vladimir Panteleev <https://thecybershadow.net/>
// @include https://www.duolingo.com/*
// @include https://preview.duolingo.com/*
// @version 7
// @version 8
// @grant none
// @run-at document-start
// ==/UserScript==
Expand All @@ -15,9 +15,9 @@
var keys = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ';

// React/Duolingo obfuscated class names
var classNameButton = '_1HcF0'; // Button representing a word or letter
var classNameDisabled = '_2OVuy'; // Additional button class for used words
var classNameExercise = '_3Mkmw'; // Div enclosing all controls of an exercise
var classNameButton = '_1O290'; // Button representing a word or letter
var classNameDisabled = '_2UUiS'; // Additional button class for used words
var classNameExercise = '_32AJE'; // Div enclosing all controls of an exercise

// React reimplements console.log, so save a
// private reference to the original on load
Expand Down

2 comments on commit 1a7e2de

@Polve
Copy link

@Polve Polve commented on 1a7e2de Aug 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
For better understanding: where do I find the class classNameDisabled and classNameExcercise in the html?
While I can find the classNameButt, it seems I'm unable to find the others!

@CyberShadow
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For better understanding: where do I find the class classNameDisabled and classNameExcercise in the html?

classNameDisabled is the class name that's added to buttons after you've "used" them (in the input mode where you choose words, instead of the input mode where you type the entire sentence with IME).

classNameExcercise is (around) the biggest div that encompasses all the controls of an exercise, but does not include anything from the previous/next exercise (which is briefly seen when transitioning to the next exercise).

Please sign in to comment.