Skip to content

Nightmode schedule fixed - What else to schedule? #3136

@Mabigtfo

Description

@Mabigtfo

Concise Description

As in title, I was using the nightmode dimming feature with no problem prior to changing a setting with the schedule option. In turn this then broke the entire setting, not changing the dim no matter the setting along with the schedule options not working in the first place.

Only solution I found was resetting the add-on entirely.

Opening F12 shows reference error to time when dim adjusted when with option for schedule disabled after bug has been triggered with changing schedule option from default.

ReferenceError: times is not defined 2 night-mode.js:119:3
schedule moz-extension://74b84392-60c3-4f11-821b-628b0a14890c/js&css/extension/www.youtube.com/night-mode/night-mode.js:119
dim moz-extension://74b84392-60c3-4f11-821b-628b0a14890c/js&css/extension/www.youtube.com/night-mode/night-mode.js:85
listener moz-extension://74b84392-60c3-4f11-821b-628b0a14890c/js&css/extension/core.js:277
apply self-hosted:2229
result resource://gre/modules/ExtensionCommon.sys.mjs:2826
raw resource://gre/modules/ExtensionCommon.sys.mjs:2824
onChanged chrome://extensions/content/child/ext-storage.js:155
apply self-hosted:2229
applySafeWithoutClone resource://gre/modules/ExtensionCommon.sys.mjs:696
applySafeWithoutClone resource://gre/modules/ExtensionCommon.sys.mjs:695
fire resource://gre/modules/ExtensionChild.sys.mjs:867
recvRunListener resource://gre/modules/ExtensionChild.sys.mjs:871
_recv resource://gre/modules/ConduitsChild.sys.mjs:90
receiveMessage resource://gre/modules/ConduitsChild.sys.mjs:201

Browser/s

Firefox

Other Browser:

No response

'Steps to reproduce' - Which of our features is required for the bug to happen?

Opening any yt video, dimming the video, changing option in 'schedule' selection to any breaks slider for dimming.

Since when?

Bug since download early 2025, assumed own machine but now can't be the issue after clean W10 install.

Does the bug still happen when you log out of YouTube?

Yes

..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)

No response

Are any errors or related log-messages shown in the Browser-Console? (F12)

Even when schedule is disabled after first creating bug, changing of the dim slider creates this error: ReferenceError: Time is not defined

Tested as the only active extension? (incognito mode or another browser users):

Yes

Expected preferred behavior:

Dim to still action if schedule disabled or changed in any way if option selected is applicable.

ImprovedTube Version

No response

Your Settings (From the Extension's -Hamburger menu > Settings > Backup & reset > Export settings)

improvedtube(1).json

Your YouTube-Document

No response

OS / Device:

Win10/4core,16gbRAM notebook.

Metadata

Metadata

Labels

Knowledge Base / Documentation for contributorsWe should repurpose this for future reference / Wiki / Education / IntroductionList of tasksEfficient to have a List for this (sub-)project. (Each task might be worth an extra thread.)good first issueA GitHub standard for inviting (new) contributors *Congratulations in advance!*help wantedJust an old github standard we add automatically. (The team can remove it when working on it.)up-for-grabs(a github standard for inviting new contributors) - Welcome! ♥

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions