Youtube compact sidebar+

Add more buttons in compact sidebar/mini guide

目前為 2024-06-11 提交的版本,檢視 最新版本

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v1.0.2 2025-11-02
  • v1.0.1 2025-11-02
  • v1.0 2025-11-02

    feat: Add more compact sidebar buttons and improve script structure

    • feat: Add new toggleable buttons to the compact sidebar/mini guide for Youtube Music, Courses, and Clips.
    • refactor: Simplify command and state management:
      • Replace labels object with a single COMMADS object storing label and default state.
      • Consolidate multiple GM_getValue/GM_setValue calls into direct per-key storage, removing the intermediate states object complexity.
      • Streamline CSS into a single block with comma-separated selectors for easier management.
      • Remove unused GM_xmlhttpRequest grant.
      • Remove redundant GM_addStyle grant.
    • fix(logic): Update JSON parsing index from items?.[3] to items?.[4] to correctly find the collapsible section in the current YouTube structure.
    • chore(metadata): Update script version from 0.5 to 1.0 (major version bump reflecting simplified logic).
    • chore(metadata): Update userscript name and add @icon and GPL-3.0-only license.
  • v0.5 2025-10-17
  • v0.4 2024-06-13

    Using JSON.parse() show extra buttons in mini guide

  • v0.3 2024-06-11

    Enabled/disabled button in menu

  • v0.2 2024-06-11
  • v0.1 2024-06-11