qutebrowser: mitigate flash of white between page loads

This commit is contained in:
Henrik Lissner 2021-02-05 18:31:13 -05:00
parent 299257cfd4
commit deb071d556
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,12 @@
// ==UserScript==
// @name Let there be Light
// @description Change page background to white.
// @version 0.1
// @author Ingvix
// @include *
// ==/UserScript==
// Needed to counterbalance my colors.webpage.bg hack to prevent the blinding
// flash of white between page loads.
var sheet = window.document.styleSheets[0];
sheet.insertRule('body { background-color: white; }', sheet.cssRules.length);

View file

@ -31,6 +31,11 @@ padding = {
'left': spacing['horizontal'] 'left': spacing['horizontal']
} }
# HACK This is set to mitigate the blinding flash of white in between page
# loads. This can break sites with no explicit background, so I rely on the
# let-there-be-light.user.js greasemonkey script to "reset" the background.
c.colors.webpage.bg = palette['background']
## UI ## UI
# Scrollbar style; much less intrusive than the default # Scrollbar style; much less intrusive than the default
c.scrolling.bar = "overlay" c.scrolling.bar = "overlay"