Lichess Chess24 Pack

chess24 style

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Lichess Chess24 Pack
// @namespace   http://example.com
// @description chess24 style
// @include     http://*.lichess.org/*
// @version     3.1
// @grant       none
// ==/UserScript==
 
 
 
 
 
 
 
 
 
 
 





function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}







addGlobalStyle('piece.knight.black { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/black/n.png")!important;} ');
addGlobalStyle('piece.bishop.black { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/black/b.png")!important;} ');
addGlobalStyle('piece.rook.black { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/black/r.png")!important;} ');
addGlobalStyle('piece.pawn.black { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/black/p.png")!important;} ');
addGlobalStyle('piece.king.black { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/black/k.png")!important;} ');
addGlobalStyle('piece.queen.black { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/black/q.png")!important;} ');
addGlobalStyle('piece.knight.white { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/white/n.png")!important;} ');
addGlobalStyle('piece.bishop.white { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/white/b.png")!important;} ');
addGlobalStyle('piece.rook.white { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/white/r.png")!important;} ');
addGlobalStyle('piece.pawn.white { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/white/p.png")!important;} ');
addGlobalStyle('piece.king.white { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/white/k.png")!important;} ');
addGlobalStyle('piece.queen.white { background-image: url("https://chess24.com/images/chess/themes/pieces/chess24/white/q.png")!important;} ');


//addGlobalStyle('.cg-board { background-image: url("http://images.chesscomfiles.com/chess-themes/boards/marble/80.png")!important;} ');

addGlobalStyle('.cg-board { background-image: url("http://s2.postimg.org/sjz4kstjd/wood640.png")!important;}');

addGlobalStyle('.cg-square.last-move { background-color:rgba(255, 255, 0, 0.41) !important;} ');




$('body').css("background", "url(http://s3.postimg.org/4xq6qmnrn/Background1752_1168.gif) ");




//$('body').css('background','#f4f4f4');

$('.cg-board').css({"border-color": "#824939", 
             "border-radius":"10px",
                 //   "border-with":"20px",
               "border-style":" solid"});

//$(document).ready(function(){
   // $('#favicon').remove();
   // $('head').append('<link href="http://www.flyordie.com/games/images/icon/chess.ico" rel="shortcut icon">');



//});