您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change YLCET layout, chat width 400
// ==UserScript== // @name YLCET Chat 400 // @namespace http://tampermonkey.net/ // @version 0.6 // @description Change YLCET layout, chat width 400 // @author Me // @match http://chess.my2dollars.ca/live.html // @match http://chess.my2dollars.ca/livesmall.html // @grant none // ==/UserScript== (function() { 'use strict'; var wr = document.getElementById("entireDivs"); if (wr) { /* insert sidebar var sb = document.createElement('div'); sb.id = "sidebar"; sb.style="position:fixed; height:100%; z-index:1; "; wr.parentNode.insertBefore(sb, wr); */ // set margin var cp = document.getElementById("full"); if (cp) { cp.removeAttribute('style'); cp.style='margin-left: 450px; '; } var yl = document.getElementById("YLCET"); if (yl) { yl.removeAttribute('width'); yl.removeAttribute('height'); yl.style="width:450px; height:700px;"; } var cr = document.getElementById("chat_right"); if (cr) { cr.removeAttribute('style'); cr.style="float:left; width:450px;"; } // move chat var ch = document.getElementById("chat_right_box"); if (ch) { ch.parentNode.removeChild(ch); // wr.appendChild(ch); wr.insertBefore(ch, wr.childNodes[0]); ch.removeAttribute('style'); //ch.style='float:left; top:0;'; ch.style="float:left; height:100%; z-index:1; "; } /* move game moves var gc = document.getElementById("gameboardcontainer"); if (gc) { var gm = document.getElementById("GameMoves"); if (gm) { gm.parentNode.removeChild(gm); gc.insertBefore(gm, gc.childNodes[0]); insert at start } } */ } })();