Gist 71712428fc3cd50085079d14e385bc42
✓ Published0🌍 Public
HHerbCaudill
Last edited Jul 24, 2018
Created on Jul 20, 2018
This example shows a Duolingo skill tree where icons for learned skills with less than full strength are visually faded, using opacity scaled to the skill’s remaining strength. A userscript first retrieves the username and language data from the page, then queries the Duolingo API for skill strength values. Using jQuery selectors, it iterates over the skill-tree links, matches each skill’s short name, and applies a CSS opacity of `0.5 * strength` to the icon’s parent element. The visualization relies on the `customjsReady` utility and `$.get` to fetch live user data, fading only skills that are learned but not yet at full strength.
AI-generated description