Giter Site home page Giter Site logo

lichess_css's Introduction

Lichess overlay for funny knights

I have made this Firefox CSS customization that I use for Lichess with the cburnet pieces, feel free to use it too.

To use it, you need to enable FirefoxCSS customizations. This is described on the Reddit Firefox CSS Guide.

In short, you will have to:

  • Enable stylesheet customizations: toolkit.legacyUserProfileCustomizations.stylesheets set to true in about:config
  • Locate your profile folder in about:support
  • Create a chrome directory in the profile folder if it does not exist.
  • Create files name userContent.css and userContent.css in the chrome directory.
  • Copy the userContent.css content from this repo in your userContent.css

Images are base64 encoded in the CSS file. You can select only the knights or black king customizations if you like only one of them.

At the end, it looks like this:

pieces_with_customizations.

Modify the images/assets

If you want to make derivative, feel free to take from the assets folder and modify them. I started from the SVG, generated a large PNG that I then modified in GIMP

When you have the PNG available, you can base64 encode it and update the CSS file. For example:

lichess_css> base64 assets/black_king.png

Then take the output that you assign in the userContent.css

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.