Skip to content

Dev#988

Merged
VampireChicken12 merged 15 commits into
mainfrom
dev
Sep 25, 2025
Merged

Dev#988
VampireChicken12 merged 15 commits into
mainfrom
dev

Conversation

@VampireChicken12
Copy link
Copy Markdown
Member

@VampireChicken12 VampireChicken12 commented Sep 25, 2025

Summary by CodeRabbit

  • Localization

    • Updated Italian, Swedish, and Simplified Chinese translations across multiple settings and labels.
    • Refreshed translation coverage percentages for several locales (e.g., Swedish now complete).
  • Improvements

    • Restored and refined fullscreen scrolling behavior for a smoother viewing experience.
  • Bug Fixes

    • More reliable enable/disable handling for fullscreen scrolling.
    • Stabilized feature initialization timing on embedded pages to reduce race conditions.
  • Browser Compatibility

    • Firefox manifest updated to reflect no required data collection permissions for improved transparency.

dependabot Bot and others added 15 commits September 24, 2025 18:17
Bumps [eslint](https://github.com/eslint/eslint) from 9.32.0 to 9.36.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.32.0...v9.36.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.36.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@types/webextension-polyfill](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webextension-polyfill) from 0.12.1 to 0.12.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webextension-polyfill)

---
updated-dependencies:
- dependency-name: "@types/webextension-polyfill"
  dependency-version: 0.12.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.4.0 to 24.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 24.5.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [zod](https://github.com/colinhacks/zod) from 4.1.5 to 4.1.11.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](colinhacks/zod@v4.1.5...v4.1.11)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [globals](https://github.com/sindresorhus/globals) from 16.3.0 to 16.4.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](sindresorhus/globals@v16.3.0...v16.4.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 16.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Sep 25, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Localization files for it-IT, sv-SE, and zh-CN were updated. The restoreFullscreenScrolling feature was refactored to async class-based enable/disable with new CSS. Locale percentage constants changed; i18n hostname access was slightly refactored. Firefox manifest gained data_collection_permissions with corresponding TypeScript ambient types. Embedded feature initialization sequence was adjusted.

Changes

Cohort / File(s) Summary of edits
Localization updates
public/locales/it-IT.json, public/locales/sv-SE.json, public/locales/zh-CN.json, src/i18n/constants.ts, src/i18n/index.ts
Translated multiple UI strings to Italian, Swedish, and Chinese. Updated localePercentages mappings for several locales. Minor refactor for extracting window hostname in i18n initialization (no behavior change).
Restore fullscreen scrolling feature
src/features/restoreFullscreenScrolling/index.ts, src/features/restoreFullscreenScrolling/index.css, src/pages/embedded/index.ts
Switched from attribute-based to class-based async toggling using a helper. Added CSS to support fullscreen scrolling layout/overflow. In embedded page, awaited disable operation and adjusted sequencing of batch feature initialization.
Manifest and typings
src/manifest.ts, src/global.d.ts
Added Firefox-specific data_collection_permissions to manifestV2. Introduced ambient module/type declarations for collection permissions and Firefox-specific manifest properties.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User
  participant EP as Embedded Page
  participant FM as Feature Manager
  participant RFS as restoreFullscreenScrolling
  participant DOM as Document

  U->>EP: Load embedded page
  EP->>FM: enableFeatures()
  FM->>FM: Enable base/built-in features
  FM->>RFS: disableRestoreFullscreenScrolling() (await)
  RFS->>DOM: waitFor ytd-watch-flexy, ytd-app
  RFS->>DOM: Remove RFS classes
  RFS-->>FM: resolved

  note over FM,EP: After base features:
  FM->>FM: Promise.all(additional feature init)
  FM-->>EP: ready
Loading
sequenceDiagram
  autonumber
  participant BG as Background/Options
  participant CT as Content Script
  participant RFS as restoreFullscreenScrolling
  participant DOM as Document

  BG-->>CT: Message with RFS option enabled
  CT->>RFS: enableRestoreFullscreenScrolling() (await)
  RFS->>DOM: waitFor ytd-watch-flexy, ytd-app
  RFS->>DOM: Add RFS classes (classList)
  RFS-->>CT: resolved
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

A bunny flips through strings so neat,
Adds classes, scrolls—full-screen’s a treat.
In Firefox burrows, permissions align,
Percentages hop to a fresher design.
With whiskers twitching, features queue—
Async dreams come hopping through. 🐇✨

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c10f146 and 34b8504.

⛔ Files ignored due to path filters (3)
  • assets/translation context screenshots/Miscellaneous Settings/Hide_Playlists_From_Homepage.png is excluded by !**/*.png
  • assets/translation context screenshots/Miscellaneous Settings/Restore_Fullscreen_Scrolling.png is excluded by !**/*.png
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (10)
  • public/locales/it-IT.json (2 hunks)
  • public/locales/sv-SE.json (5 hunks)
  • public/locales/zh-CN.json (2 hunks)
  • src/features/restoreFullscreenScrolling/index.css (1 hunks)
  • src/features/restoreFullscreenScrolling/index.ts (2 hunks)
  • src/global.d.ts (1 hunks)
  • src/i18n/constants.ts (1 hunks)
  • src/i18n/index.ts (1 hunks)
  • src/manifest.ts (1 hunks)
  • src/pages/embedded/index.ts (2 hunks)

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@VampireChicken12 VampireChicken12 merged commit 009c7a0 into main Sep 25, 2025
5 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done - Released in YouTube Enhancer Sep 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.28.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@coderabbitai coderabbitai Bot mentioned this pull request Oct 23, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done - Released

Development

Successfully merging this pull request may close these issues.

1 participant