Vimm's Lair: Message Board
Message Board
Register

Re: Easy way to see thumbnails for roms.

Posted by Danielle on .
If you hover over the links in the Vault and wait a second, the thumbnail will appear.

In reply to: 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.
Fenilli -- 4/24/2024 2:01 pm UTC