Getting all the PGNs of your game archive from the list page

May 4, 2013, 3:29 PM |

  You know that the game archive shows only the last games you played when you have not paid the registration. Normally, in order to keep a record of your games, you need to go to each game, select View, then get the PGN from the page of each game. The game page itself is very heavy with Javascript computation so it takes a while, then you have to repeat the process. It's damn difficult. Wouldn't it better to have a PGN link in the game list page, just like View?

  Well, you can have that in just three easy steps. You need to use the Chrome browser. The process works just as fine on any other browser, but you have to know a little of browser debugging. On Chrome I give you the shortcuts and it works without you needing to know anything.

  Ok, so first open the game archive page in Chrome, then follow these steps:

  1. Press F12 (this should open the developer tools at the bottom of the page)
  2. Press Esc (this should open the console inside the developer tools window)
  3. Paste the following code in the console and press Enter

jQuery('a[href*="livechess/game?id="]').each(function() {
  var a=jQuery(this);
  var url=a.attr('href').replace('livechess/game?id=','echess/download_pgn?lid=');

It's done. F12 again to close the developer tools and now you should have  PGN links next to the View links.

For other browsers the principle is the same: open a Javascript console, paste the code, run it.