code-charity / code-charity/youtube
Nightmode schedule fixed - What else to schedule?
@Mabigtfo is already working on this.
Since Oct 8, 2025.
- Dominant language
- JavaScript
- Stars
- 4.6k
- Forks
- 996
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Description
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)
Your YouTube-Document
No response
OS / Device:
Win10/4core,16gbRAM notebook.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.