Chess.com 'Computer Analysis' button

Order a computer analysis directly from the Live Chess page

当前为 2015-04-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Chess.com 'Computer Analysis' button
  3. // @version 1.0
  4. // @description Order a computer analysis directly from the Live Chess page
  5. // @author Lars Petrus
  6. // @match http://live.chess.com/*
  7. // @namespace https://greasyfork.org/users/10616
  8. // ==/UserScript==
  9.  
  10. go_analyze = function() {
  11. var gameId = window.location.href.split("=").pop();
  12. window.location.href = "http://www.chess.com/home/computer_analysis_redirect?live_id="+gameId;
  13. }
  14.  
  15. $("body").append("<button class='button-submit' onclick='go_analyze();' style='position:fixed; left: 200px; top:5px; font-size:10px; z-index: 1;'>Computer Analysis</button>");