[Script] RGT Repo Tweaks

arkasth

Paçoquita Devourer
Supporter
Level 2
58%
Joined
Jan 13, 2025
Messages
187
Level up in
63 posts
Reaction score
594
Points
2,227
Location
Scumm Bar
Hey!

I put together this script to tweak a few things on the repo. I kept adding stuff to it and figured some of you might find it useful too.
It makes some quality-of-life changes to the layout, improves the search bar, and adds some external integrations.

Screenshots attached below.

Here is what the script does:

Search & Navigation
  • New full search bar with multiple filters accessible on any page of the repo.
  • Random game button that finds a random game based on your active filters.
  • Browse games by genre right from the header.
  • Link to the favorite games list on the top bar.
  • Custom pagination with page numbers and a page number input to jump straight to a specific page.
Integrations & Automation
  • (Optional - Requires setup) RetroAchievements integration: If the game supports RetroAchievements, you'll see a custom card showing how many achievements you've unlocked, your total playtime, and a quick link to your profile.
  • (Optional) HowLongToBeat integration: Shows in the game page how many hours it takes to beat the game (Main Story, Extras, and 100% Completion).
  • (Optional) Auto show download links.
  • (Optional) Auto show comments.
Visuals & Layout
General:

  • Page content takes up a bit more space on the screen.
  • Multi-line game titles look tighter.
  • The site's font is forced into a clean, more modern one.
  • Various tweaks to make the website take up a bit more space on your screen, and the text spacing is tighter so it's easier to read.
Game Page:
  • New layout for game pages. Game covers are standardized in size, and game details are organized side-by-side (inspired by MobyGames).
  • Extra-long game descriptions are folded behind a "Show More" button to prevent endless scrolling.
  • The bulky screenshot gallery is tucked away behind a sleek "View Screenshots" button to keep the page clean and fast.
  • Download sections are redesigned into clean, easy-to-read lists.

HowLongToBeat, RetroAchievements, Auto-download, and Auto-comments features are optional and can be enabled or disabled.
To configure the script, just click the site's existing "Show Settings" button. I've added the "RGT Tweaks" configurations directly into that menu, where you can toggle these features on or off and input your RA credentials.




How to Install
Step 1: You need a browser extension that runs userscripts. If you don't have one yet, I recommend installing Tampermonkey (great for Chrome, Edge, Safari) or Violentmonkey (great for Firefox).
Step 2: Once the extension is installed, Click here to install the script. A new tab will pop up. Just hit the "Install" button and you're good to go!

As far as I've tested, the script is mobile-friendly. You just need a mobile browser that supports extensions (such as Kiwi Browser or Firefox for Android). Install the Tampermonkey add-on and follow the same steps as on desktop.



How to set up RetroAchievements (RA)

To get your personal RetroAchievements data to show up on the game pages, you need to link your account:

1. Create a free account at RetroAchievements (if you haven't already).
2. Go to your profile settings, scroll down to the Authentication section and copy your Web API Key.
3. On the Repo, open the site's settings menu (via the "Show Settings" button), find the "RGT Tweaks" section, enable RA, and paste your Username and API Key. Click "Save" and you're good to go!


Important
Search Bar:
I had to do a bit of reverse engineering to piece together how the site handles searches from the outside. Because of this, there might be bugs, and I'm still tied to the limitations of the site's own search engine. If it acts weird, report it here, but there might not be much I can fix!

HowLongToBeat (HLTB):
The script searches using exact title, platform, and year. If a game exists on HLTB but doesn't show up here, report it so we can improve the logic.
Also, because HLTB does not have an official public API, the script pulls data directly from their search engine. They frequently change endpoints, so if the integration suddenly stops working (you will see an error "toast" notification), let me know and I'll update the script.

Let me know if you run into any bugs or if you have any cool ideas. If it's something doable, I'll try to add it to the script.
 

Attachments

  • Screenshot 2026-05-13 020319.png
    Screenshot 2026-05-13 020319.png
    1.3 MB · Views: 41
  • Screenshot 2026-05-13 015212.png
    Screenshot 2026-05-13 015212.png
    315.4 KB · Views: 33
  • Screenshot 2026-05-13 015000.png
    Screenshot 2026-05-13 015000.png
    352.3 KB · Views: 28
  • Screenshot 2026-05-13 014810.png
    Screenshot 2026-05-13 014810.png
    270.9 KB · Views: 31
  • Screenshot 2026-05-13 014633.png
    Screenshot 2026-05-13 014633.png
    389.9 KB · Views: 29
  • Screenshot 2026-05-13 001332.png
    Screenshot 2026-05-13 001332.png
    675.3 KB · Views: 29
  • Screenshot 2026-05-13 031249.png
    Screenshot 2026-05-13 031249.png
    538.4 KB · Views: 27
  • Screenshot 2026-05-13 031116.png
    Screenshot 2026-05-13 031116.png
    18.4 KB · Views: 29
Last edited:
Updated (0.2):
  • Unfound HLTB games now provide a search link with the game's name instead of a broken link.
  • Auto-loading forum comments won't yank the screen down to the bottom anymore.
  • Fixed the HLTB platform map that was keeping N64 games from being searched correctly.
 
Updated (0.3):
  • Settings and Favorites buttons relocated to the right side for better alignment in desktop mode.
  • The Random Game function now preserves the searched text along with other category filters when loading the new page.
  • Script's settings are now merged into the repo's native configuration panel.
  • "Show Category Banners" and "Show Adult Content" checkboxes no longer trigger immediate page reloads and are now set to expire in 1 year.
  • The page now reloads automatically after saving settings to ensure all changes are applied immediately.
 
Updated (0.3):
  • Settings and Favorites buttons relocated to the right side for better alignment in desktop mode.
  • The Random Game function now preserves the searched text along with other category filters when loading the new page.
  • Script's settings are now merged into the repo's native configuration panel.
  • "Show Category Banners" and "Show Adult Content" checkboxes no longer trigger immediate page reloads and are now set to expire in 1 year.
  • The page now reloads automatically after saving settings to ensure all changes are applied immediately.
Hey, it can be used on mobile? Because i have lots of problems to install it.
 
Yeah, it works on mobile. What kind of problems?
Basically i never downloaded a extension before, when i download a extension (violentmonkey for Firefox in this case) it will be automatically included into the browser?
 
Basically i never downloaded a extension before, when i download a extension (violentmonkey for Firefox in this case) it will be automatically included into the browser?
If you're using firefox, yes, just click install and confirm, easy as that.
 
Im not installing any weird shit so pls make this default spike
That’s fair honestly. 😄
But you can inspect both Violentmonkey’s code and my script before installing anything weird. Just throw both into ChatGPT and ask which one is trying to steal your kidneys. ::eggmanlaugh
But yeah, it would definitely be better if the site had this stuff natively.
 
Last edited:
Updated (0.4):
  • Infinite scroll added to the game list. It auto-loads as you scroll down on desktop. On mobile, it shows a "Load More" button instead so you can still reach the bottom of the page if you want. Can be turned on or off in the settings.
  • Moved the mobile pop-up notifications to the top of the screen so they don't overlap the Ko-fi donation button anymore.
  • Added a simplified pagination on mobile (when infinite scroll is disabled).

Updated (0.5):
  • Replaced the "No hacks" checkbox in the search filters with a dropdown menu featuring "Include hacks," "No hacks," and "Only hacks".
  • Removed the native "Romhacks" menu link, as it is now possible to use the "Only hacks" filter to find the same games.
  • Fixed some wrong platform names in the internal list.
  • Added all remaining languages and regions that were missing from the internal lists.
  • Added new "Regions" and "Languages" dropdowns directly into the top navigation bar.
  • Removed the native "Translations" menu item since the new "Languages" menu features every language option, including Undubs.
  • Rearranged the top navigation to match the sequence of the search filters.

Updated (0.5.1):
  • Minor text changes
 
Updated (0.4):
  • Infinite scroll added to the game list. It auto-loads as you scroll down on desktop. On mobile, it shows a "Load More" button instead so you can still reach the bottom of the page if you want. Can be turned on or off in the settings.
  • Moved the mobile pop-up notifications to the top of the screen so they don't overlap the Ko-fi donation button anymore.
  • Added a simplified pagination on mobile (when infinite scroll is disabled).

Updated (0.5):
  • Replaced the "No hacks" checkbox in the search filters with a dropdown menu featuring "Include hacks," "No hacks," and "Only hacks".
  • Removed the native "Romhacks" menu link, as it is now possible to use the "Only hacks" filter to find the same games.
  • Fixed some wrong platform names in the internal list.
  • Added all remaining languages and regions that were missing from the internal lists.
  • Added new "Regions" and "Languages" dropdowns directly into the top navigation bar.
  • Removed the native "Translations" menu item since the new "Languages" menu features every language option, including Undubs.
  • Rearranged the top navigation to match the sequence of the search filters.

Updated (0.5.1):
  • Minor text changes
This is genius not gonna lie.
Would you be willing to turn this into a WordPress plugin? So everyone will get it by default without tampermonkey.
 
This is genius not gonna lie.
Would you be willing to turn this into a WordPress plugin? So everyone will get it by default without tampermonkey.

I'm glad some of you guys liked it!

Yes, I'd be willing to work on that.
I need to look into it first, since I haven't worked with WordPress before (I'm mainly a C# dev), but I can definitely take a proper look.

Before moving forward, I think it would be good to discuss some of the technical details.

If you prefer, feel free to send me a DM (since I can't DM you) so we can discuss it.
 
Last edited:

Users who are viewing this thread

Connect with us

Support this Site

RGT relies on you to stay afloat. Help covering the site costs and get some pretty Level 7 perks too.

Featured Video

Latest Threads

Your brawler/beat'em up/hack n slash mains

Needed to make a counterpart to the fighter mains. Don't matter if it's a 2D, 2.5D, or 3D...
Read more

Goblins

Twice is a coincidence, three's a pattern, and I've noticed an uptick in goblin employment over...
Read more

The "Death & Lead" Game Dev Situation is Crazy

Screenshot 2026-06-04 000832.png

Not news but an interesting watch about this "Kai Magazine" dev.

Read more

Has anyone read the Metroid manga?

Hey everyone,

I just started reading the Metroid manga from 2002 (published in Magazine-Z), and...
Read more

Online statistics

Members online
156
Guests online
886
Total visitors
1,042

Forum statistics

Threads
19,771
Messages
500,941
Members
926,751
Latest member
Demp

Today's birthdays

Advertisers

Back
Top