Easy way to see thumbnails for roms.

Posted by Fenilli on .
I made a small JS code to check thumbnails for roms, because it is a bit easier to remember what a game looks like over their name when looking for old games to download. ``` const tds = document.querySelectorAll(".mainContent table tbody tr td:first-child"); tds.forEach((td) => { const a = td.querySelector('a'); if (a) { const parent = td.parentNode; const img = document.createElement("img"); const id = a.href.slice(a.href.lastIndexOf('/') + 1); img.src = "/image.php?type=screen&id=" + id; img.height = 120; img.width = 120; parent.prepend(img); } }); ```

Replies:
Re: Easy way to see thumbnails for roms.
Danielle -- 4/20/2024 10:51 pm UTC
Re: Easy way to see thumbnails for roms.
Fenilli -- 4/24/2024 2:01 pm UTC