Skip to content

Instantly share code, notes, and snippets.

@drequeary
Last active March 26, 2025 21:52
Show Gist options
  • Save drequeary/b49c1585dea7a4dd829910f7a1f49719 to your computer and use it in GitHub Desktop.
Save drequeary/b49c1585dea7a4dd829910f7a1f49719 to your computer and use it in GitHub Desktop.
CSS for customizing new tab background in Firefox userContent.css.
@-moz-document url("about:home") {
/* Sets home tab background image. */
body{
background-image: url("") !important;
}
}
@-moz-document url("about:newtab") {
/* Sets new tab background image. */
body{
background-image: url("") !important;
}
}
@-moz-document url(about:privatebrowsing) {
/* Sets private browsing background image. */
body{
background-image: url("") !important;
}
}
@-moz-document url("about:home"), url("about:newtab"), url("about:privatebrowsing") {
/* Makes background images scale to browser window. */
body {
background-size: cover !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
background-position-x: center !important;
background-position-y: bottom !important;
}
/* Changes pinned shortcuts background and text colors
.top-site-outer .tile {
background-color: #2f3542 !important;
}
*/
/* When hovering over a pinned shortcut
.top-site-outer:hover {
background-color: #57606f !important;
}
*/
}
@singhagrim
Copy link

Thankyou very much
💕

@KADA-Jeffrey
Copy link

Thankyou very much!!!!!!!!

@drequeary
Copy link
Author

you're welcome ☺️

@Eks1azy
Copy link

Eks1azy commented Mar 26, 2025

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment