Skip to content

version 1.31.1#1135

Merged
VampireChicken12 merged 35 commits into
mainfrom
dev
Jan 11, 2026
Merged

version 1.31.1#1135
VampireChicken12 merged 35 commits into
mainfrom
dev

Conversation

@VampireChicken12
Copy link
Copy Markdown
Member

@VampireChicken12 VampireChicken12 commented Jan 11, 2026

Summary by CodeRabbit

  • New Features

    • Added disable control for scroll wheel volume adjustments
    • Enhanced CSS selectors for improved feature targeting
  • Bug Fixes

    • Improved stability of feature toggles through simplified implementation approach
    • Enhanced video player element detection conditions
  • Localization

    • Updated translations for French, Japanese, Portuguese, Swedish, and Catalan languages
  • Chores

    • Updated dependencies (eslint-plugin-perfectionist, npm)
    • Added new contributor

✏️ Tip: You can customize this high-level summary in your review settings.

dnicolson and others added 30 commits January 3, 2026 02:23
Co-authored-by: Nathan <45531575+VampireChicken12@users.noreply.github.com>
Co-authored-by: Dave Nicolson <david.nicolson@gmail.com>
Co-authored-by: VampireChicken12 <Johnbrown51@yahoo.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carl Fürstenberg <azatoth@gmail.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
fixer](https://github.com/postcss/autoprefixer) from 10.4.21 to 10.4.22.
fix: Update playback buttons speed when player speed is changed in menu #1106
fixer](https://github.com/postcss/autoprefixer) from 10.4.22 to 10.4.23.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nathan <45531575+VampireChicken12@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…1120)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
#1121)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dent when a members only video exists in them
Bumps [eslint](https://github.com/eslint/eslint) from 9.38.0 to 9.39.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v9.38.0...v9.39.2)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.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.2.1 to 4.3.5.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](colinhacks/zod@v4.2.1...v4.3.5)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.3.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot Bot and others added 5 commits January 11, 2026 16:26
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.49.0 to 8.51.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.51.0/packages/typescript-eslint)

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

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 11.3.2 to 11.3.3.
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](jprichardson/node-fs-extra@11.3.2...11.3.3)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-version: 11.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.2.4 to 7.3.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.0/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

coderabbitai Bot commented Jan 11, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

This PR performs a systematic refactoring of multiple "hide" features across the codebase, migrating from MutationObserver-based DOM manipulation to CSS class-based visibility toggling applied to document.body. It also adds a new contributor, updates localization strings and percentages across supported languages, bumps dependencies, and refines element selectors using CSS :has() pseudo-class patterns.

Changes

Cohort / File(s) Summary
Contributor & Documentation
.all-contributorsrc, README.md
Added new contributor entry (kindofabuzz) with security contribution badge
Build & Dependencies
.github/workflows/release.yml, package.json
Updated workflow to stage entire src/i18n directory; upgraded eslint-plugin-perfectionist to v5.0.0 and npm to v11.7.0
Localization Files
public/locales/ca-ES.json, fr-FR.json, ja-JP.json, pt-BR.json, sv-SE.json
Translated UI strings and labels to target languages; updated locale completion percentages
i18n Constants
src/i18n/constants.ts
Updated localePercentages: fr-FR (40→42), hi-IN (0→3), ja-JP (80→84), pt-BR (84→99), sv-SE (98→100)
CSS Refactoring: Simple Hiders
src/features/hideArtificialIntelligenceSummary/index.css, hideLiveStreamChat/index.css, hidePaidPromotionBanner/index.css, hidePlayables/index.css, hideSidebarRecommendedVideos/index.css, hideTranslateComment/index.css
Migrated from element-level selectors to body-scoped class rules; added :has() pseudo-class selectors for conditional hiding
CSS Refactoring: Complex Hiders
src/features/hideMembersOnlyVideos/index.css, hideOfficialArtistVideosFromHomePage/index.css, hideShorts/index.css, hidePlaylistRecommendationsFromHomePage/index.css
Replaced blanket hiding with nested selectors and :has() conditions to target specific video/component types
CSS Enhancement: Scroll Wheel
src/features/scrollWheelVolumeControl/index.css
Added comprehensive CSS rules for fullscreen player chrome behavior (hiding UI elements, adjusting positioning)
Feature Logic: Observer Removal (Simple)
src/features/hideArtificialIntelligenceSummary/index.ts, hideEndScreenCards/index.ts, hideLiveStreamChat/index.ts, hidePaidPromotionBanner/index.ts, hidePlayables/index.ts, hideSidebarRecommendedVideos/index.ts
Removed MutationObserver setup/teardown; replaced element selectors with direct document.body class toggling via modifyElementClassList
Feature Logic: Observer Removal (Complex)
src/features/hideMembersOnlyVideos/index.ts, hideOfficialArtistVideosFromHomePage/index.ts, hideShorts/index.ts, hideTranslateComment/index.ts, hidePlaylistRecommendationsFromHomePage/index.ts
Removed observer-based DOM watching; simplified to single body-level class toggle; removed visibility checks and per-element logic
Feature Utils: Observer Removal
src/features/hideArtificialIntelligenceSummary/utils.ts, hideLiveStreamChat/utils.ts, hideMembersOnlyVideos/utils.ts, hideOfficialArtistVideosFromHomePage/utils.ts, hidePlayables/utils.ts, hideShorts/utils.ts
Removed observeX functions and selectors; replaced modifyElementsClassList with modifyElementClassList; centralized DOM changes to document.body class operations
Feature Utils: Removed Entirely
src/features/hideTranslateComment/utils.ts
Deleted entire utils module (68 lines); removed exported selectors, types, and observer functions
Selector Refinement
src/features/automaticallyDisableAmbientMode/index.ts, scrollWheelSpeedControl/index.ts, src/pages/embedded/index.ts
Updated element wait conditions to use :has() pseudo-class (e.g., div#player-container:has(#movie_player)) for stricter readiness checks
Feature Enhancement: Scroll Wheel
src/features/scrollWheelVolumeControl/index.ts
Renamed default export to enableScrollWheelVolumeControl; added disableScrollWheelVolumeControl function; introduced body class toggling and CSS imports
Feature Updates
src/features/restoreFullscreenScrolling/index.ts, playlistLength/utils.ts
Reduced awaited element count; replaced throttle mechanism with debounce in mutation observer
Utilities
src/utils/utilities.ts
Refactored waitForAllElements from interval-based polling to concurrent Promise.all approach; removed interval parameter

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • PR #988: Shares modifications to src/i18n/constants.ts, src/features/restoreFullscreenScrolling/index.ts, and src/pages/embedded/index.ts with overlapping code-level changes
  • PR #1058: Both PRs refactor hide-feature modules to replace observer-based logic with body-class toggles and update modifyElement(s)ClassList usage patterns
  • PR #1033: Shares direct code-level changes to src/i18n/constants.ts localePercentages numeric mappings

Suggested labels

released


🐰 Observers fade to CSS dreams,
Classes dance on body beams,
Selectors now have keen sight,
Hidden shorts in candlelight,
One more friend joins the fold,
New translations, stories told!

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 80dbade and be6cf93.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (45)
  • .all-contributorsrc
  • .github/workflows/release.yml
  • README.md
  • package.json
  • public/locales/ca-ES.json
  • public/locales/fr-FR.json
  • public/locales/ja-JP.json
  • public/locales/pt-BR.json
  • public/locales/sv-SE.json
  • src/features/automaticallyDisableAmbientMode/index.ts
  • src/features/hideArtificialIntelligenceSummary/index.css
  • src/features/hideArtificialIntelligenceSummary/index.ts
  • src/features/hideArtificialIntelligenceSummary/utils.ts
  • src/features/hideEndScreenCards/index.ts
  • src/features/hideLiveStreamChat/index.css
  • src/features/hideLiveStreamChat/index.ts
  • src/features/hideMembersOnlyVideos/index.css
  • src/features/hideMembersOnlyVideos/index.ts
  • src/features/hideMembersOnlyVideos/utils.ts
  • src/features/hideOfficialArtistVideosFromHomePage/index.css
  • src/features/hideOfficialArtistVideosFromHomePage/index.ts
  • src/features/hideOfficialArtistVideosFromHomePage/utils.ts
  • src/features/hidePaidPromotionBanner/index.css
  • src/features/hidePaidPromotionBanner/index.ts
  • src/features/hidePlayables/index.css
  • src/features/hidePlayables/index.ts
  • src/features/hidePlayables/utils.ts
  • src/features/hidePlaylistRecommendationsFromHomePage/index.css
  • src/features/hidePlaylistRecommendationsFromHomePage/index.ts
  • src/features/hideShorts/index.css
  • src/features/hideShorts/index.ts
  • src/features/hideShorts/utils.ts
  • src/features/hideSidebarRecommendedVideos/index.css
  • src/features/hideSidebarRecommendedVideos/index.ts
  • src/features/hideTranslateComment/index.css
  • src/features/hideTranslateComment/index.ts
  • src/features/hideTranslateComment/utils.ts
  • src/features/playlistLength/utils.ts
  • src/features/restoreFullscreenScrolling/index.ts
  • src/features/scrollWheelSpeedControl/index.ts
  • src/features/scrollWheelVolumeControl/index.css
  • src/features/scrollWheelVolumeControl/index.ts
  • src/i18n/constants.ts
  • src/pages/embedded/index.ts
  • src/utils/utilities.ts

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 fd0ebf7 into main Jan 11, 2026
5 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done - Released in YouTube Enhancer Jan 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.31.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 7, 2026

🎉 This PR is included in version 1.32.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

2 participants