您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Go stones instead of chess pieces. Choose CANVAS board theme to activate the style.
当前为
// ==UserScript== // @name Lichess Pieces: Go // @namespace http://userstyles.org // @description Go stones instead of chess pieces. Choose CANVAS board theme to activate the style. // @author oerpli // @homepage https://userstyles.org/styles/135471 // @include http://lichess.org/* // @include https://lichess.org/* // @include http://*.lichess.org/* // @include https://*.lichess.org/* // @run-at document-start // @version 0.8 // ==/UserScript== (function() {var css = [ "piece.pawn.black { background-image: url(\"https://svgshare.com/i/5gv.svg\")!important;} ", " piece.knight.black { background-image: url(\"https://svgshare.com/i/5gv.svg\")!important;} ", " piece.bishop.black { background-image: url(\"https://svgshare.com/i/5gv.svg\")!important;} ", " piece.rook.black { background-image: url(\"https://svgshare.com/i/5gv.svg\")!important;} ", " piece.queen.black { background-image: url(\"https://svgshare.com/i/5gv.svg\")!important;} ", " piece.king.black { background-image: url(\"https://svgshare.com/i/5gv.svg\")!important;} ", "", " piece.pawn.white { background-image: url(\"https://svgshare.com/i/5ih.svg\")!important;} ", " piece.knight.white { background-image: url(\"https://svgshare.com/i/5ih.svg\")!important;} ", " piece.bishop.white { background-image: url(\"https://svgshare.com/i/5ih.svg\")!important;} ", " piece.rook.white { background-image: url(\"https://svgshare.com/i/5ih.svg\")!important;} ", " piece.queen.white { background-image: url(\"https://svgshare.com/i/5ih.svg\")!important;} ", " piece.king.white { background-image: url(\"https://svgshare.com/i/5ih.svg\")!important;}", "", "", ".cg-square.last-move { background-color:rgba(255, 255, 0, 0.41) !important;} ", ".canvas .is2d .cg-board, #top div.color_demo.canvas{", "background-image: url(http://s018.radikal.ru/i508/1611/ae/e805b6954066.png) ;", "}" ].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); } } })();