Vimm's Vault ROM Restore

Restores the "Download" button (and "Play Online" button when applicable) to certain Vimm's Vault games

作者
KirbyKidJ
今日安裝
1
安裝總數
111
評價
0 0 1
版本
1.0.1
建立日期
2024-05-22
更新日期
2024-05-24
授權條款
GPL-3.0-only
腳本執行於

This is a simple script that restores the "Download" button (and the "Play Online" button when applicable) to any of the games on Vimm's Vault that have been marked with the DMCA takedown from Nintendo. Hopefully this is a troll and the buttons will be restored on their own in the future.

Surprisingly, a majority of the vault functions besides the one/two missing buttons are still intact meaning all I had to do was just re-add the buttons in with the right ID and links and it works like a charm.

How it works is that before anything, it first grabs the system name from the link on the same page that ends with "/A" such as from "https://vimm.net/vault/NES/A" by cutting out the string before and after "NES". Then, it creates the button code I copied from https://vimm.net/vault/1 but with the system name and media checks inserted. Finally, it replaces parts of the innerHTML code with what I've grabbed previously. This currently includes:

  • The "Download" button for all games
  • The "Play Online" button for non-Wii games
  • The registered hash for the game
  • The file size of the game

I also would like to re-add the screenshots and box art if applicable, but it feels like some of those have been taken down and not just the ones marked with a DMCA request so I don't really know what to do about that. This script may be very primitive since this is my first one ever, so if there's any suggestions to optimize it I would appreciate it.

You may change and redistribute this code, but I'd prefer it to NOT be closed source for more transparency and to make sure no one injects any malicious code into it.