Skip to content

Fandom Remove Background Colour by korakys

Screenshot of Fandom Remove Background Colour

Details

Authorkorakys

LicenseCC Zero

Categoryfandom, wikia

Created

Updated

Size766 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Replaces background colour with user selectable colour, default is grey.

(Optional) Removes background images, default is removed.

Notes

The original idea behind this was to make all wikis compatible with the Dark Background and Light Text browser extension.

Source code

/* ==UserStyle==
@name        Fandom Remove Background Colour
@namespace   fandom.com
@version     1.1.0
@description Fixes background to make it compatible with Dark Background and Light Text browser extension.
@author      Korakys
@license     CC0

@preprocessor stylus
@var color   bkgdColor 'Background Colour' #888
@var checkbox bkgdImg  'Background Images' 1
==/UserStyle== */
 
@-moz-document domain("fandom.com") {

body {
  background-color: bkgdColor !important;
  background-image: initial !important;
}

if bkgdImg {
  body {
    background-image: initial !important;
  }

  .main-container, .fandom-community-header__background, .fandom-community-header__background::before {
    background-image: none !important;
  }
}

}

Reviews

No reviews yet.