Skip to content

Instantly share code, notes, and snippets.

@caseyavila
Created November 13, 2020 06:38
Show Gist options
  • Save caseyavila/7817b5c91d278b9c3c1b218e265af437 to your computer and use it in GitHub Desktop.
Save caseyavila/7817b5c91d278b9c3c1b218e265af437 to your computer and use it in GitHub Desktop.
Firefox about:newtab background image
/*
1. Set toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config
2. Place this file (userContent.css) in the chrome directory of your firefox profile
3. Place an image *hello.jpg* in the same directory as this file
*/
@-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {
body::before {
content: "";
z-index: -1;
position: fixed;
top: 0;
left: 0;
background: url(hello.jpg) center;
background-size: cover;
width: 100vw;
height: 100vh;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment