qutebrowser: mitigate flash of white between page loads
This commit is contained in:
parent
299257cfd4
commit
deb071d556
12
config/qutebrowser/greasemonkey/let-there-be-light.user.js
Normal file
12
config/qutebrowser/greasemonkey/let-there-be-light.user.js
Normal 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);
|
|
@ -31,6 +31,11 @@ padding = {
|
|||
'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
|
||||
# Scrollbar style; much less intrusive than the default
|
||||
c.scrolling.bar = "overlay"
|
||||
|
|
Loading…
Reference in a new issue