blmage / duolingo-solution-viewer

A browser extension providing access to the lists of solutions to the translation / listening challenges on Duolingo, and restoring the correction of typos for listening challenges.
MIT License
53 stars 10 forks source link

Chrome extension not working with latest Duolingo update #179

Closed wizofaus closed 2 years ago

wizofaus commented 2 years ago

Seems the latest Duolingo update has broken the solution viewer extension?

blmage commented 2 years ago

Everything seems fine on my side, could you check if:

Thanks!

wizofaus commented 2 years ago

It's working again now, I didn't change anything.

wizofaus commented 2 years ago

But not for all sentences, and specifically it seems they've added some new ones recently, and it's not working for those. This was in the console (along with a bunch of 404s):

ui.js:13 Error: Could not find the action link list element. at renderChallengeSolutionLink (chrome-extension://idffaipgnlkhfhibgnodeiogpgojcmfm/src/ui.js:51:119025) at jb (chrome-extension://idffaipgnlkhfhibgnodeiogpgojcmfm/src/ui.js:51:121067) 'Could not render the solution list link: '

blmage commented 2 years ago

Thanks for digging into this!

Could you point me to a course / lesson where I might encounter such new sentences? (I would not have expected this part of the UI to differ from one exercise to the other, so this is all the more interesting)

wizofaus commented 2 years ago

Well this was in the Japanese course, I doubt you'd be able to get to the new sentences without completing quite a few of the previous lessons unfortunately. I'll see if I can find an earlier lesson with that problem.

wizofaus commented 2 years ago

Actually I just started https://www.duolingo.com/skill/ja/Greetings/1, and the first sentence prompt was just おはよう (good morning), and no solutions button was shown for that. This was in the devtools console:

pageUpdater.js:2 Uncaught DOMException: Blocked a frame with origin "https://www.duolingo.com" from accessing a cross-origin frame. at contents (chrome-extension://lelgmjjmlcciepcfefcgiakpfjcgggih/js/pageUpdater.js:2:26762) at Function.map (chrome-extension://lelgmjjmlcciepcfefcgiakpfjcgggih/js/pageUpdater.js:2:3716) at m.fn.init.m.fn. [as contents] (chrome-extension://lelgmjjmlcciepcfefcgiakpfjcgggih/js/pageUpdater.js:2:26842) at ParsePage (chrome-extension://lelgmjjmlcciepcfefcgiakpfjcgggih/js/pageUpdater.js:245:13) at HTMLHtmlElement. (chrome-extension://lelgmjjmlcciepcfefcgiakpfjcgggih/js/pageUpdater.js:265:2) 2ui.js:13 Error: Could not find the action link list element. at renderChallengeSolutionLink (chrome-extension://idffaipgnlkhfhibgnodeiogpgojcmfm/src/ui.js:51:119025) at jb (chrome-extension://idffaipgnlkhfhibgnodeiogpgojcmfm/src/ui.js:51:121067) 'Could not render the solution list link: '

But actually that seemed to be from something I'd done previously, as after clearing console and restarting lesson it didn't show up again (nor any other errors that looked relevant)

blmage commented 2 years ago

Turns out that the problem was caused by the (new) pronunciation hints, thanks again for your help in fixing this!

wizofaus commented 2 years ago

Ah, is there a new version released? Still doesn't seem to be working for me.

blmage commented 2 years ago

Yes, the problem should be fixed with version 4.10.4.