Guarda la lista de todos los juegos de tu biblioteca de GOG en una hoja de cálculo: género, Windows/Mac/Linux, fecha de lanzamiento, valoración en GOG y enlace a la tienda, también los juegos que ocultaste. Gratis, en tu navegador, sin plugins de GOG Galaxy ni ninguna app.
Inicia sesión en gog.com y abre tu biblioteca (Cuenta > Juegos); luego ejecuta el script. Lee la biblioteca entera él solo, de 100 en 100 juegos, también los ocultos.
// Responsive Muse · GOG Library Exporter · v1.0 · 2026-11-25
// Saves every game in your GOG library to CSV or TXT: title, genre, platforms (Windows, Mac,
// Linux), release date, rating, DLC count, hidden or not, and the store link. GOG has no export
// button. Runs only on gog.com while you are signed in. It reads your library 100 games at a time
// in a hidden frame of the same GOG site, the same list your library page loads. It never sends
// anything anywhere and never reads cookies, passwords or tokens.
(async () => {
const TOOL = 'Exportar biblioteca de GOG';
const FORMAT = 'csv'; // 'csv' (Excel, Sheets) or 'txt' (one game per line)
const INCLUDE_HIDDEN = true; // also the games you hid in your library
if (!/(^|\.)gog\.com$/.test(location.hostname)) {
alert('Abre primero GOG (con tu sesión iniciada):\nhttps://www.gog.com/account');
return;
}
// A small box on the page shows progress and asks before changing anything,
// so you never need to read or edit the console.
const many = (n, word) => `${n} ${n === 1 ? word : ({ canal: 'canales', 'canción': 'canciones', 'publicación': 'publicaciones', 'elemento guardado': 'elementos guardados', lugar: 'lugares' })[word] || word + 's'}`; // 1 vídeo, 2 vídeos
const panel = (() => {
const box = document.createElement('div');
box.style.cssText = 'display:block!important;position:fixed;right:16px;bottom:16px;z-index:2147483647;width:340px;max-width:calc(100vw - 32px);' +
'background:#111318;color:#e6e8ee;font:14px/1.5 system-ui,sans-serif;border-radius:12px;padding:16px;' +
'box-shadow:0 8px 30px rgba(0,0,0,.4);text-align:left';
const head = document.createElement('strong');
head.textContent = TOOL;
const msg = document.createElement('p');
msg.style.cssText = 'margin:8px 0 12px;white-space:pre-line';
const row = document.createElement('div');
row.style.cssText = 'display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end';
box.append(head, msg, row);
document.body.append(box);
const button = (label, primary, onClick) => {
const b = document.createElement('button');
b.textContent = label;
b.style.cssText = 'font:600 14px system-ui,sans-serif;padding:8px 14px;border-radius:8px;cursor:pointer;' +
(primary ? 'background:#0f766e;color:#fff;border:1px solid #0f766e' : 'background:none;color:#e6e8ee;border:1px solid #3a3f4b');
b.onclick = onClick;
row.append(b);
};
return {
text(t) { msg.textContent = t; },
ask(t, yes) {
msg.textContent = t;
row.replaceChildren();
return new Promise(r => {
button('Cancelar', false, () => { row.replaceChildren(); r(false); });
button(yes, true, () => { row.replaceChildren(); r(true); });
});
},
stoppable(onStop) { row.replaceChildren(); button('Parar', false, onStop); },
actions(t, list) {
msg.textContent = t;
row.replaceChildren();
list.forEach(([label, primary, run]) => button(label, primary, run));
},
finish(t) { this.actions(t, [['Cerrar', true, () => box.remove()]]); },
close() { box.remove(); },
};
})();
// Offer the result as a downloaded file or as clipboard text (a real click, so it always works)
const deliver = (summary, body, file) => {
const save = () => {
const a = document.createElement('a');
a.href = URL.createObjectURL(new Blob([/\.csv$/.test(file) ? '\ufeff' + body : body], { type: 'text/plain;charset=utf-8' }));
a.download = file;
a.click();
setTimeout(() => URL.revokeObjectURL(a.href), 5000);
panel.text(`${summary}\nGuardado como ${file} (mira tu carpeta de Descargas).`);
};
const copy = () => navigator.clipboard.writeText(body)
.then(() => panel.text(`${summary}\nCopiado. Pégalo en una hoja de cálculo o en una nota.`))
.catch(() => panel.text(`${summary}\nEl navegador ha bloqueado el portapapeles: usa Descargar.`));
panel.actions(summary, [['Cerrar', false, () => panel.close()], ['Copiar', false, copy], ['Descargar', true, save]]);
};
const clean = s => (s || '').replace(/\s+/g, ' ').trim();
// Load one page of your library (JSON from this same site) in a hidden frame and read it
const loadPage = path => new Promise(resolve => {
const frame = document.createElement('iframe');
frame.style.cssText = 'position:absolute;left:-9999px;width:10px;height:10px';
const done = data => { resolve(data); setTimeout(() => frame.remove(), 0); };
frame.onload = () => {
try {
const doc = frame.contentDocument;
done(JSON.parse((doc.querySelector('pre') || doc.body).textContent));
} catch (e) {
done(null);
}
};
setTimeout(() => done(null), 30000);
frame.src = new URL(path, location.origin).href;
document.body.appendChild(frame);
});
// 1. Every page of the library (and of the hidden games), 100 at a time
let stop = false;
panel.stoppable(() => { stop = true; });
const games = new Map();
for (const hidden of INCLUDE_HIDDEN ? [0, 1] : [0]) {
for (let page = 1; page <= 100 && !stop; page++) {
panel.text(`Leyendo tu biblioteca… ${many(games.size, 'juego')} hasta ahora`);
const data = await loadPage(`/account/getFilteredProducts?mediaType=1&sortBy=title&page=${page}` + (hidden ? '&hiddenFlag=1' : ''));
if (!data || !Array.isArray(data.products)) {
if (page === 1 && !hidden) {
panel.finish('No se ha podido leer tu biblioteca. ¿Has iniciado sesión en GOG? Abre gog.com/account y vuelve a ejecutarlo.');
return 0;
}
break;
}
for (const p of data.products) {
if (!p.id || games.has(p.id)) continue;
const os = p.worksOn || {};
games.set(p.id, {
title: clean(p.title),
genre: clean(p.category),
platforms: ['Windows', 'Mac', 'Linux'].filter(k => os[k]).join(', '),
released: (p.releaseDate?.date || '').slice(0, 10),
rating: p.rating ? p.rating + '/5' : '',
dlc: p.dlcCount || 0,
hidden: hidden ? 'sí' : '',
url: p.url ? new URL(p.url, 'https://www.gog.com').href : '',
id: p.id,
});
}
if (page >= (data.totalPages || 1)) break;
}
}
const list = [...games.values()];
if (!list.length) {
panel.finish('Tu biblioteca de GOG parece vacía. Si no lo está, puede que GOG haya cambiado su web: avísanos en responsive-muse.com.');
return 0;
}
// 2. Build the file and offer it
const cell = v => '"' + String(v).replace(/"/g, '""') + '"';
const body = FORMAT === 'txt'
? list.map(g => g.title).join('\n')
: ['Título,Género,Plataformas,Fecha de lanzamiento,Valoración en GOG,DLC,Oculto,Página de la tienda,ID de GOG', ...list.map(g =>
[g.title, g.genre, g.platforms, g.released, g.rating, g.dlc, g.hidden, g.url, g.id].map(cell).join(','))].join('\n');
const hid = list.filter(g => g.hidden).length;
deliver(`${stop ? 'Parado antes de terminar. ' : ''}Listo: ${many(list.length, 'juego')}` + (hid ? ` (${hid} ocultos).` : '.'), body, `gog-library.${FORMAT}`);
return list.length;
})();
🛡️ ¿Chrome te dice «No pegues código…»? Es normal. Escribe allow pasting en la consola (o permitir pegar si tu Chrome está en español), pulsa Intro y vuelve a pegar. Solo hace falta una vez.
¿Por qué avisa Chrome?
Chrome lo muestra la primera vez que alguien pega algo en la consola, para proteger de estafas en las que te piden pegar código desconocido. Hace bien en avisar, y por eso este script está entero a la vista: 144 líneas comentadas que no envían nada a ningún sitio ni tocan tus contraseñas o cookies. Por qué es seguro.
¿Prefieres no usar la consola? Arrastra el botón Exportar biblioteca de GOG a tu barra de marcadores y haz clic en él estando en www.gog.com. Así no sale el aviso.
Marcador: arrastra el botón del medio a tu barra de marcadores, abre www.gog.com y pulsa el marcador. Ejecuta el mismo script con las opciones de arriba.
No envía nada a ningún sitio. Sin fetch, XHR ni scripts externos. La única actividad de red es la de www.gog.com cargando tu lista.
No toca tu sesión. No lee cookies, contraseñas, tokens ni el almacenamiento del navegador.
Solo funciona en www.gog.com. En cualquier otra web se detiene antes de hacer nada.
Corto y legible. 144 líneas comentadas, sin minificar ni ofuscar.
Muestra su progreso en la página. Un pequeño recuadro te dice qué está haciendo y al final te ofrece Descargar o Copiar.
El mismo código para todos. SHA-256 de la versión por defecto: a64be78734ee3e1d…
Compruébalo tú mismo en 30 segundos
- Léelo: todas las líneas están arriba, con comentarios.
- Busca en el código
fetch,XMLHttpRequest,cookie,localStorageoeval. No aparece ninguna. - Abre la pestaña Red (Network) antes de ejecutarlo: solo verás peticiones a www.gog.com.
Cómo usarlo
- Inicia sesión en gog.com y abre tu biblioteca (Cuenta > Juegos).
- Abre la consola: F12 o Ctrl+Mayús+J (Cmd+Opción+J en Mac). Si Chrome te lo pide, escribe
permitir pegary pulsa Enter. - Copia el script, pégalo en la consola y pulsa Enter. Lee tu biblioteca entera, de 100 en 100 juegos, y te ofrece el archivo.
Qué obtienes
Una fila por juego: título, género, plataformas (Windows, Mac, Linux), fecha de lanzamiento, valoración en GOG, número de DLC, si está oculto, enlace a la tienda e ID de GOG. Elige TXT para una lista simple de títulos.
¿Para qué exportar tu biblioteca de GOG?
GOG no tiene botón de exportar y GOG Galaxy solo muestra la lista dentro de la app. Una hoja de cálculo es la forma más fácil de ver todos los juegos sin DRM que tienes, comprobar cuáles funcionan en Mac o Linux o juntarla con tus bibliotecas de Steam y Epic.
Preguntas frecuentes
¿GOG tiene opción de exportar?
No. GOG Galaxy te enseña tus juegos, pero no hay botón para guardar la lista. Este script lee la misma lista que carga la web de GOG y la guarda como hoja de cálculo.
¿Funciona con GOG Galaxy?
Se ejecuta en la web de GOG, no en Galaxy. La lista es la misma: todos los juegos que tienes en GOG.
¿Qué es la columna de valoración?
La nota de cada juego en la tienda de GOG, sobre 5.
¿Descarga los juegos?
No. Solo guarda la lista. Para bajar los instaladores usa GOG Galaxy o la web.
