[UPDATED] Customizable LingQ Reader + Add-ons

Show me the screenshot with a console log (F12 > Console).
It works well for me. (v4.2.1)

That screenshot doesn’t give me any clue. Provide detailed steps to reproduce the bug. (Try deleting and reinstalling the script.)

I just upgraded the script, and then when I clicked the settings script button, the settings window did not pop up. I tried reinstalling but the situation remained the same; everything was normal after uninstalling the 3.11 version.

I don’t find any bug in the code related, and can not reproduce the bug you experienced. I’m sorry to say that, but you need to use the old version :frowning:

  • 4.4: Added a button that resets lessons to their starting positions.

Before

After

  • 4.5: Provide the ratio of both LingQ and KnownWords of a lesson.

I played a bit with the addon but since I don’t use too much the video player these days, I don’t think I will be able to make full use of it.

I should also say that I am already happy with this script by ColinJohnstonov, which I mostly use to compact the lines and remove some clutter.

It’s unfortunate that most of the features do not work when the Layout Style is set to Off. I can understand why but I think adding some extra configuration over LingQ base layout could be of use to some people (especially the line spacing, that for some reason LingQ limits to at least 0.85).

Maybe if there was a Zen layout (to name it somehow), that allowed what is listed now in the settings, together with the option of easily removing/toggling some of the noisy parts of LingQ (audio bar, community bar etc.) I could see myself making the switch over the above script.

Great job nonetheless, that’s a lot of lines of code for a community addon!

I recommend using the audio mode. I made that to use for both audio and text lesson. It will work for you.

1 Like

Screenshots

Chatbot Widget

Chatbot explains the meaning of the word or the sentence in your native language. You can also ask more.

It requires an API key from OpenAI or Google, and so is not free. However, since the model’s pricing is really affordable (Input $0.10/M · Output $0.40/M), you don’t need to worry about the cost too much.
(While dev, I made 130 requests, and it costs $0.073.)


You can install the extension from here:

If it was helpful to you, you can
Buy Me A Coffee

Made the “off mode” also affected by the style settings. Similar to the audio mode, but less compact and has multiple pages.

v5.1

Works nicely, thank you for your time. I will definitely give it another try.

Maybe it’s just me, but I noticed that I can’t close the settings tab once opened. Clicking around or in the cog again does not work. Using version 5.1.

Also it seems like some of the configuration is preserved between layouts but not the Lingq theme? Here, changing from Video to Video2

  1. For me, the pop-up works normally (Chrome browser)
  2. Many complained to me about the discrepancy between the color mode and the LingQ theme, so I just make the LingQ theme changed according to the change of the color mode. If you don’t like it, remove the below from the code.
switch (colorMode) {
            case "dark":
                clickElement(".reader-themes-component > button:nth-child(5)");
                break;
            case "white":
                clickElement(".reader-themes-component > button:nth-child(1)");
                break;
        }

How to obtain an API key?


How do I close the AI question window?

How To Get Your API Keys

Use v5.2

v5.3

You can use a more realistic TTS instead of LingQ’s default mechanical one.

This is the demo page with the same instructions I used for the script:

Caution

Audio models are more expensive than text models. Monitor the usage dashboard https://platform.openai.com/settings/organization/usage to prevent being overcharged.