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

  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.


  • 4 years ago


    Exactly what I said in my comment before. I am afraid "Select All" refers only to the games on the current page, though. 

  • 4 years ago


    Ah what I do is go to the game Archive go to a certain type of game (say correspondece) and select all, download the PNG and it sends me an email. I put it on microsoft word and it works great.

  • 4 years ago


    Well, I am not a paying member, so I don't know how the page looks for you. I tried to hack the system and I found a way to get pagination and also select boxes next to the games. I used a link in the format: (note that the show parameter is live_blitz - for some reason it didn't work with all, but I only play live blitz so it's ok for me). Then it's a matter of going through all the pages, click Select All, then Download PGN. They will email you the aggregated PGN for each page. This seems to work for free accounts for two pages only, but I suspect it looks the same for you.

      Of course, this is very cumbersome, but Javascript only works locally, on your browser, and cannot take more files and combine them into one or navigate through several pages. What you need is a program that does that. I can create the program (it's not complicated), but I need to see how the home archive looks for you.

  • 4 years ago


    I tried this and it does work. I would like to be able to download all the games that I have ever played in  I once emailed the staff and they told me that to do this I would have to go through the archive page by page even tho I am a paying member. My javascript is rusty to say the least. Could you be so kind as to work out a code that would enable me to download all of my games all at once. I believe it may simply be a matter of selecting all of the games on all of the pages at once but I don't know how to do this.

Back to Top

Post your reply: