YouTube Gemini Summarizer

Summarizes YouTube videos using Gemini API with a GUI for API key, model, language selection, custom system prompts (with RTL support), and Markdown rendering.

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

  • v0.5.1 2025-06-18

    Version 0.5.1

    UI Improvements:

    • Increased the width of the settings panel to provide more horizontal space.
    • The "System Prompt" text area is now wider, making it more convenient to write and read longer, multi-line instructions for the AI.
    • Minor style adjustments to ensure all UI elements align correctly with the new width.
  • v0.5.0 2025-06-18

    Version 0.5.0

    New Features:

    • Custom System Prompts: A new "System Prompt" text field has been added to the panel. You can now provide your own instructions to the Gemini model to customize the summary output (e.g., "Summarize this in 3 bullet points," "Explain this for a 10-year-old," etc.). If left empty, the script will use the default summarization prompt as before. This feature was added based on user feedback – thank you, MatiasS!
    • The content of the System Prompt field is automatically saved and remembered for your next session.

    Fixes & Improvements:

    • Critical Bug Fix: Fixed a major bug that could prevent the entire script panel and the "Summarize" button from appearing on some video pages. The script should now initialize much more reliably.
    • UI Visibility: Improved the behavior of the "Summarize" button on the video player. It will now remain visible as long as the settings panel is open, preventing it from disappearing while you are configuring the options.
  • v0.3.1 2025-06-04

    Version 0.3.1 (2025-06-04) Key Changes:

    • Fixed Markdown Rendering with Trusted Types:
      • Resolved an issue where Markdown formatting in summaries might not render correctly on YouTube pages enforcing the Trusted Types security policy. This was causing errors like "This document requires 'TrustedHTML' assignment."
      • Implemented a TrustedHTML policy within the script. This allows the parsed Markdown (HTML) to be safely inserted into the summary display area, ensuring that lists, bold text, etc., are shown as intended.
    • Improved Handling of Trusted Types API:
      • Enhanced the logic to detect if Trusted Types are actively enforced by the browser, providing a more robust fallback to plain text rendering if a TrustedHTML policy cannot be successfully applied.
    • ESLint Global Definition:
      • Added /* global marked */ directive to satisfy ESLint and prevent warnings about the marked library being undefined (this is primarily a development/code quality improvement).
    • Minor Code Refinements:
      • Small adjustments to logging and policy naming for clarity.

    This version primarily focuses on ensuring that Markdown formatting works reliably across different browser security configurations, especially those with stricter content security policies like Trusted Types.

  • v0.2.0 2025-06-04

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址