Greasy Fork

LingQ Addon

Provides custom LingQ layouts

这些是此脚本变更过代码的版本。 显示所有版本。

  • v8.1.1 2025-07-08

    Refines AI responses and improves lesson auto-completion logic.

  • v8.1.0 2025-07-05

    Added am audio player to the TTS playground.

  • v8.0.0 2025-07-04

    Added TTS playground.

  • v7.1.4 2025-07-04

    Fixed a bug on the print page. Refactored the code structure.

  • v7.1.3 2025-07-04

    Added a progress text for the lesson audio generation. Enhanced the progress bar.

  • v7.1.2 2025-07-03

    Added more random options for google cloud TTS.

  • v7.1.1 2025-07-03

    Changed the google cloud voice list loading logic.

  • v7.1.0 2025-07-03

    Added the Google Cloud as a new TTS Provider. It's stable and has more varied voices.

  • v7.0.0 2025-07-03

    Implemented lesson audio generation and refactors core setup logic.

  • v6.3.3 2025-07-02

    Enhanced summary prompts and fixed a bug related to the quick summary loading.

  • v6.3.2 2025-07-01

    Fixed lesson summary to update when lesson is changed without refreshing.

    Enhanced the prompts.

    Added a regenerate response button to the last bot message.

    Added a copy message button to bot messages.

    Added a read the message button to bot messages. It utilizes the AI TTS.

    The read the message button in a word-response only reads the word and the example sentence.

    Modified the style of the buttons in bot messages.

    Refined AI prompt logic, improved chat button styling.

    Added a setting to prepend lesson summary.

    Refined the lesson summary prompts.

  • v6.1.0 2025-07-01 Imported from URL
  • v6.3.1 2025-06-29

    Enhanced prepended summary style

  • v6.3.0 2025-06-28

    Added a setting to prepend lesson summary.

  • v6.2.6 2025-06-28

    Improved chat button styling.

  • v6.2.5 2025-06-28

    Enhanced the prompts for more consistent responses.

  • v6.2.4 2025-06-28

    Modified the style of the buttons in bot messages.

  • v6.2.3 2025-06-28

    The read the message button in a word-response only reads the word and the example sentence.

  • v6.2.2 2025-06-28

    Added a read the message button to bot messages. It utilizes the AI TTS.

  • v6.2.1 2025-06-27

    Added a copy message button to bot messages.

  • v6.2.0 2025-06-27

    Added a regenerate response button to the last bot message.

  • v6.1.3 2025-06-27

    Enhanced the prompts.

  • v6.1.2 2025-06-27

    Fixed lesson summary to update when lesson is changed without refreshing.

  • v6.1.1 2025-06-26

    Fixed a bug related to getting the lesson text.

  • v6.1.0 2025-06-26

    Made LLM have a lesson summary in its context.

  • v6.0.3 2025-06-26

    Fixed a bug that cursor is moving to the chat input box after the first response is generated.

  • v6.0.2 2025-06-26

    Made the prompts use system role and refined chat UI logic.

  • v6.0.1 2025-06-26

    Added a donation button.

  • v6.0 2025-06-26

    Implemented LLM response streaming to enhance the chat experience.

  • v5.15.2 2025-06-25

    Highlighted LingQ words in print and improved vocabulary table.

  • v5.15.1 2025-06-25

    Improved print layout by adding page break before vocabulary table.

  • v5.15 2025-06-25

    Added a vocabulary table to the print page.

  • v5.14.2 2025-06-24

    Ensured translation is shown when a lesson is changed without a refresh.
    Corrected the approximate cost calculation for cached tokens

  • v5.14.1 2025-06-19

    Added a new model (gemini 2.5 flash light)

  • v5.14 2025-06-10

    Added an autoplay in sentence view.

  • v5.13.5 2025-06-09

    Modified the showTranslation function's logic.

  • v5.13.4 2025-06-07

    Edited CSS for the minimized video player.

  • v5.13.3 2025-06-06

    Added the checkbox that shows translation automatically.

  • v5.13.2 2025-06-05

    Added the focusPlayingSentence checkbox.

  • v5.13.1 2025-06-05

    Fixed the problem that the playing sentence focusing function isn't working with the translation is turned on.

  • v5.13 2025-06-05

    Added the translation text color picker to the stting page.

  • v5.12.3 2025-06-04

    Changed the style of the send chat button.

  • v5.12.2 2025-06-03

    Enhanced the prompts. Fixed the wrongly calculated input tokens of gemini chat.

  • v5.12.1 2025-06-02

    Modified the style of chat message. Fixed a bug related to the widget that doesn't have .is-fixed.

  • v5.12 2025-06-01

    Integrated the youtube player simplification script into the code (Automatically collapse More videos popup in the player).

  • v5.11.4 2025-05-30

    Minor UI update.

  • v5.11.3 2025-05-28

    Added the gpt-4.1 as an option to the model list. Enhanced the prompt. Applied retry to the google TTS. Changed the logic of the TTS button.

  • v5.11.2 2025-05-27

    Fixed the problem that AI-TTS is not working when chat widget is turned off.Fixed the problem that AI-TTS is not working when chat widget is turned off.

  • v5.11.1 2025-05-27

    Improved Google TTS Prompt. Added a random voice option.

  • v5.11 2025-05-26

    Add Google TTS option.

  • v5.10.9 2025-05-26

    Modified the prompts. LLM console logs now display the corresponding costs.

  • v5.10.8 2025-05-24

    Changed the default color palette to the same as the original LingQ setting.

  • v5.10.7 2025-05-24

    Made the playing sentence focusing scroll smooth.

  • v5.10.6 2025-05-24

    Fixed the bug on the tts button.

  • v5.10.5 2025-05-23

    Better logging. Fixed the bug on the tts button.

  • v5.10.4 2025-05-22

    Fixed the bug on the tts button.

  • v5.10.3 2025-05-22

    Better logging. Fixed the bug on the tts voice selector

  • v5.10 2025-05-21

    Fixed the issues occurring when moving between the lessons without refreshing. The existing TTS will be replaced with AI TTS when clicked.

  • v5.9.1 2025-05-21

    Optimized the waitForElement for performance reason. Improved the prompt for sentence.

  • v5.9 2025-05-21

    Huge code refactoring for performance and clean code reasons.

  • v5.8.3 2025-05-20

    Wrote logging codes for easier debugging, fixed prompts. Added the keyboard shortcut on/off option.

  • v5.8.2 2025-05-20

    Applied formatting to the input word/sentence and context.

  • v5.8.1 2025-05-20

    Added a 'Meaning Copied' popup message.

  • v5.8 2025-05-20

    Meaning of the selected word/sentence is copyed to clipboard.

  • v5.7.2 2025-05-19

    Improved formatting of bot messages in the chat widget by changing the prompt. Add a filter that filters TTS requests with more than 1000 characters of text.

  • v5.7 2025-05-19

    Add customizable keyboard shortcuts.

  • v5.6.3 2025-05-19

    Update CSS variables and styles for better video player in the audio layout.

  • v5.6.2 2025-05-18

    Enhance DOM traversal for leaf nodes and safeguard audio context state. Fix bug related to the reference word changing.

  • v5.6.1 2025-05-18

    Optimized DOM element checks using matches. Fixed the bug related to the reference word changing.

  • v5.6 2025-05-18

    Fixed the issue where the characters (`.`, `,`, `?`, and `\n`) were omitted from the selected text.

  • v5.5.1 2025-05-18

    Improved styles. Prevented the TTS audio could being played multiple times at the same time.

  • v5.5 2025-05-18

    Added chat widget for all widgets. Added a loading message while a bot message is loading.

  • v5.4 2025-05-17
  • v5.3.13 2025-05-17

    Added widgetWidth slider, Refined CSS variable naming.

  • v5.3.12 2025-05-17

    Refine the chat widget styles. Make a keyboard shortcuts for the chat widget (esc). Refined the prompt for more aesthetic and structured output.

  • v5.3.9 2025-05-15

    Removed the scroll bar of the chat widget container, and changed the size of that.

  • v5.3.8 2025-05-15

    Decreased the volume of the TTS. Modified the selector of the word to select words also. Modified the chat widget prompt. Added more model options Disabled the thinking option for the gemini model.

  • v5.3.6 2025-05-14

    Modified the prompt for the chat widget.

  • v5.3.4 2025-05-14

    Updated the CSS for clearer UI elements.

  • v5.3.3 2025-05-14
  • v5.3.2 2025-05-14

    Separated the logic of the widget and the TTS. Modified the prompt. Fixed the bug that the TTS and the chatbot widget are not reloaded when selecting a sentence while selecting another one.

  • v5.3.1 2025-05-13

    Enhanced the prompts, fixed the bugs related to the tts.

  • v5.3 2025-05-13

    Added an AI-based TTS option.

  • v5.2.2 2025-05-13

    Rewrote the system prompt. Make gemini use system prompt.

  • v5.2 2025-05-13

    Changed the default model. Made the "off mode" also affected by the style settings.
    Refactored the ChatWidget code. Added the checkbox for enabling/disabling the chat widget.

  • v5.1 2025-05-12

    Changed the default model. Made the "off mode" also affected by the style settings.

  • v5.0 2025-05-12

    Provide a chatbot widget.

  • v4.5.1 2025-05-11

    Modified the finish lesson condition.

  • v4.5 2025-05-11

    Provide the ratio of both LingQ and KnownWords of a lesson.

  • v4.4.1 2025-05-11

    Refactored the setupCourse function.

  • v4.4 2025-05-11
  • v4.3.1 2025-05-11

    Refactored the setupSliderObserver function.

  • v4.3 2025-05-11

    The lesson's progress is updated according to the progress of the video.

  • v4.2.5 2025-05-10

    Disable video closing when pressing the ESC key while typing.

  • v4.2.4 2025-05-10

    Fixed a bug in the toast pop-up.

  • v4.2.2 2025-05-09

    Encapsulated the download function call with a handler.

  • v4.2.1 2025-05-08

    Updated progress bar texts

  • v4.2 2025-05-08
  • v4.1 2025-05-08

    You can download every known/unknown word/LingQs.

  • v4.0 2025-05-08

    Added the download words popup. You can download every known word.

  • v3.11.3 2025-05-07

    Fixed a bug in the video header selector.

  • v3.11.2 2025-05-07

    Fixed the bugs related to the style/color mode selector event listeners.

  • v3.11.1 2025-05-07

    Fixed the popup(lesson info, setting, etc.)-related issues.

  • v3.11 2025-05-07
  • v3.10 2025-05-07
  • v3.9 2025-05-07
  • v3.8 2025-05-05
  • v3.7.4 2025-05-04

    Adjusted the scroll offset

  • v3.7.3 2025-05-04

    Fixed scroll-related issue

  • v3.7.2 2025-05-04

    Fixed z-index-related bug

  • v3.7.1 2025-05-04
  • v3.7 2025-05-04
  • v3.6.1 2025-04-27
  • v3.6 2025-04-27
  • v3.5 2025-04-26
  • v3.5 2025-04-26
  • v3.4 2025-04-25
  • v3.3 2025-04-25
  • v3.3 2025-04-25
  • v3.3 2025-04-25
  • v3.3 2025-04-25
  • v3.3 2025-04-24
  • v3.3 2025-04-22
  • v3.2 2025-04-17
  • v3.1 2025-04-17
  • v3.1 2025-04-17
  • v3.0 2025-04-17
  • v2.12 2025-04-17