XIU2 / XIU2/UserScript

[护眼模式] 刷新网页会先闪一下原来的主题颜色后脚本才会生效

Open
#399 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

反馈问题
Dominant language
JavaScript
Stars
10k
Forks
706
PR merge metrics
No merged PRs in 30d

Description

问题描述

暗色模式下,比方说油管,谷歌等网站刚打开或者是刷新网页会先短暂闪一下原主题森(也就是亮色),然后再变黑。这种闪烁有点伤眼,不知道有没有办法解决。该问题在Safari和edge均存在。
该脚本算是我用过的不管是扩展还是脚本中算最理想的一个了,感谢作者的付出。

附加截图

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the flash when opening or refreshing YouTube and Google in Safari and Edge while dark mode is enabled. Trace when the userscript applies its theme relative to page rendering; done means the original light theme is no longer visibly shown before the dark theme takes effect.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.