Lichess Chess24 Pack

chess24 style

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

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



//});