Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anti-Flash Injection #343

Open
ImportTaste opened this issue Jan 9, 2022 · 0 comments
Open

Anti-Flash Injection #343

ImportTaste opened this issue Jan 9, 2022 · 0 comments

Comments

@ImportTaste
Copy link

Often, there is a white flash that occurs when loading up a website, before Midnight Lizard has a chance to work its magic. However, I've come up with something that I use with a custom.css stylesheet (a feature removed from Chromium but some forks still support it).

:root:empty { background-color: #333; }

Essentially, this is only relevant when a page is in its absolute earliest stages of loading, because the moment the root node is no longer empty, this background change no longer applies. You can have the background color match whatever color scheme Midnight Lizard is currently using by default, of course.

While an extension may not be able to apply this CSS as fast as a custom.css stylesheet, it can get close using "instant inject".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant