Please turn on javascript in your browser to play chess.
Developers Forum

Developers Forum

  1. 24 Feb '09 00:10
    Instead of having to go into a game to get an analysis board maybe they could add a feature to the main screen as well?

    I'm fine with going into a game to get to the analysis board(I use it to study other things other than that game)...I was just thinking it would be nice to not have to do that.
  2. 24 Feb '09 22:58
    Originally posted by Enihkela
    Instead of having to go into a game to get an analysis board maybe they could add a feature to the main screen as well?

    I'm fine with going into a game to get to the analysis board(I use it to study other things other than that game)...I was just thinking it would be nice to not have to do that.
    1) Get Firefox = http://getfirefox.com
    2) Get the Greasemonkey extension = https://addons.mozilla.org/en-US/firefox/addon/748
    3) Save the following as a file called addanalysis.user.js
    4) Firefox : File -> Open File & install the script.
    5) Go to the 'My Games' page and the game id's should now be clickable. You'll get a new window with the analysis board.
    6) Enjoy.
    ================== copy below this line ==================

    // ==UserScript==
    // @name addAnalysis
    // @description Add an analysis board link to the My Games page
    // @namespace orangutan
    // @include http://www.chessatwork.com/mygames/mygames.php*
    // @include http://www.playtheimmortalgame.com/mygames/mygames.php*
    // @include http://www.redhotchess.com/mygames/mygames.php*
    // @include http://www.redhotpawn.com/mygames/mygames.php*
    // @include http://www.timeforchess.com/mygames/mygames.php*
    // ==/UserScript==

    var games = document.evaluate("/html/body/div[9]/div/div/table/tbody/tr/td[2]/div[2]/table/tbody/tr/td[1]",
    document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

    for (var x=0; x<games.snapshotLength ; x++ ) {[quote]
    var game = games.snapshotItem(x);
    var gameid = game.innerHTML.toString();

    game.innerHTML = "< a onclick=\"javascript: PopAppWin(" + "'/gameanalysis/boardanalysis.php?gameid=" +
    gameid + "', 844, 600);\" href=\"#\">" + gameid + "</ a >";

    }
    [/quote]
    ================== copy above this line ==================

    If I get round to it I'll post this script as a proper download. My free hosting service is down right now so I can't upload it.
  3. 25 Feb '09 18:21
    Originally posted by orangutan
    [b]1) Get Firefox = http://getfirefox.com
    2) Get the Greasemonkey extension = https://addons.mozilla.org/en-US/firefox/addon/748
    3) Save the following as a file called addanalysis.user.js
    4) Firefox : File -> Open File & install the script.
    5) Go to the 'My Games' page and the game id's should now be clickable. You'll g ...[text shortened]... nload. My free hosting service is down right now so I can't upload it.[/b]
    Here's the link -

    http://rhp42.110mb.com/gm_scripts/addanalysis.user.js
  4. 31 Mar '09 14:56
    Hello,

    I've followed the instructions given in the thread, but the game IDs on the My Chess page are still not clickable. Any idea about what I might have done wrong?

    Thanks,

    Nitreb
  5. 31 Mar '09 22:58 / 1 edit
    Originally posted by Nitreb
    Hello,

    I've followed the instructions given in the thread, but the game IDs on the My Chess page are still not clickable. Any idea about what I might have done wrong?

    Thanks,

    Nitreb
    Use the link instead of the copy & paste of the script snippet.
  6. 02 Apr '09 05:31
    Originally posted by orangutan
    Use the link instead of the copy & paste of the script snippet.
    It does!

    Thanks

    Originally posted by orangutan
    Use the link instead of the copy & paste of the script snippet.