Lichess Chess24 Pack

chess24 style

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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">');



//});