CyberShadow / DuolingoMoreKeys

25 stars 2 forks source link

Style block not getting added #2

Closed volfyd closed 5 years ago

volfyd commented 6 years ago

Hi,

Just today duolingo seems to have updated something that breaks styling. I don't know why but the style block isn't getting added. If I move the call of addGlobalStyle from DOMContentLoaded to after the " // New exercise" line it works (but presumably continues to add the style over and over).

CyberShadow commented 6 years ago

I don't see this problem on my end. #3 does occur though.

volfyd commented 6 years ago

I guess it could be an A/B test.

CyberShadow commented 6 years ago

What about using the "load" event instead of "DOMContentLoaded"?

volfyd commented 6 years ago

I reverted my changes to the script and it's working without them now (using DOMContentLoaded). shrug

CyberShadow commented 5 years ago

OK, let me know if you run into this again.