WesselKroos / youtube-ambilight

This browser extension adds ambient light to YouTube videos
MIT License
87 stars 8 forks source link

Switching themes refreshes the page #171

Closed WesselKroos closed 1 year ago

WesselKroos commented 1 year ago

Bug description

YouTube is forcing a page refresh when the theme changes

Steps to reproduce the behavior

  1. Set the appearance setting to dark or light in the ambient light setting menu, make sure that the theme is set to the opposite theme in the YouTube settings menu
  2. When the theme changes, YouTube refreshes the page to force the theme set by YouTube

Browser

Chrome, Microsoft Edge, Opera, Firefox

Operating system

Windows, Apple macOS, Linux, Other

Extension version

2.37.24

The bug still happens in these conditions

Additional context and/or screenshots

No response

WesselKroos commented 1 year ago

Cause: YouTube has deprecated the flag kevlar_refresh_on_theme_change and instead decided to now always refresh the page.