Beautiful pieces set for Liches.org
Lichess Pieces: Chess Cases by whatadayhuh
Details
Authorwhatadayhuh
LicenseNo License
Categorye.g userstyles, chess
Created
Updated
Size2.2 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
// ==UserScript==
// @name Lichess Pieces: Chess Cases
// @namespace http://userstyles.org
// @description Beautiful pieces set (Chess Cases) for Liches.org.
// @author Suleimanov Abdullakh
// @homepage https://userstyles.world/style/4766/lichess-pieces-chess-cases
// @match http://*.lichess.org/*
// @run-at document-start
// @version 0.1
// @license MIT
// ==/UserScript==
(function() {var css = [
" piece.pawn.black {background-image: url(\"http://i.imgur.com/UJ4QdiR.png\")!important;}",
" piece.knight.black{background-image: url(\"http://i.imgur.com/rV1XAaJ.png\")!important;}",
" piece.bishop.black{background-image: url(\"http://i.imgur.com/jcM0SQk.png\")!important;}",
" piece.rook.black{background-image: url(\"http://i.imgur.com/QZ09pKr.png\")!important;}",
" piece.queen.black{background-image: url(\"http://i.imgur.com/s8YIwC7.png\")!important;}",
" piece.king.black{background-image: url(\"http://i.imgur.com/ADYifty.png\")!important;}",
" piece.pawn.white{background-image: url(\"http://i.imgur.com/3HfiC5E.png\")!important;}",
" piece.knight.white{background-image: url(\"http://i.imgur.com/C5fmVrC.png\")!important;}",
" piece.bishop.white{background-image: url(\"http://i.imgur.com/B6CJfBK.png\")!important;}",
" piece.rook.white{background-image: url(\"http://i.imgur.com/OtZLOjh.png\")!important;}",
" piece.queen.white{background-image: url(\"http://i.imgur.com/PfzevTq.png\")!important;}",
" piece.king.white{background-image: url(\"http://i.imgur.com/XgYSmwD.png\")!important;}"
].join("\n");
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
heads[0].appendChild(node);
} else {
// no head yet, stick it whereever
document.documentElement.appendChild(node);
}
}
})();