NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name 체스닷컴 스크롤로 수 탐색하기 // @version 1.1 // @description Chess.com 사이트에서 리체스의 스크롤과 동일한 기능을 쓸수있게합니다. // @match https://www.chess.com/* // @author projang // @license MIT // @copyright 2021, projang (https://openuserjs.org/users/projang) // @updateURL https://openuserjs.org/meta/projang/체스닷컴_스크롤로_수_탐색하기.meta.js // ==/UserScript== let count = 0 let timer = setInterval(() => { if (13 <= count) { clearInterval(timer); applyWheelEvent() } count++ if (document.querySelector(".download") == null) return; clearInterval(timer); applyWheelEvent() }, 200); function applyWheelEvent() { document.querySelector("chess-board").onwheel = (e) => { const scrollUp = e.deltaY < 0; if (scrollUp) { document.querySelector("chess-board").game.moveBackward(); } else { document.querySelector("chess-board").game.moveForward(); } }; }