iPhone and iPad

BetterTrooper is also on the App Store, as a Safari extension: no script to install, two settings once (step by step). It needs iOS 17 or later.

With a small script in Safari, every battle you open on trooperstest.gued.es (your army's history, links shared on Discord) opens here, in BetterTrooper. It needs a free app, Userscripts, and a few settings, once.

The script does nothing else: on BetterTrooper, it only hides the box that explains how to install it. Without it, battles still open here from their BetterTrooper link.

Set it up with Userscripts (free)

  1. Get the app. Install Userscripts from the App Store (free, open source). Open it once: it sets itself up, there is nothing to change.
  2. Turn it on. In the Settings app, go to Apps › Safari › Extensions › Userscripts (up to iOS 17: Safari › Extensions › Userscripts). Turn it on (Allow Extension).
  3. Let it work on every website. On the same screen, under Permissions, set All Websites to Allow (if websites are already listed there, this row is called Other Websites). Each army has its own address (plux1.trooperstest.gued.es, paulo1026.trooperstest.gued.es…) and Safari treats each one as a separate website: this setting is the only way to allow them all at once. To keep Safari asking instead, see below.
  4. Open the script. In Safari, open bettertrooper.user.js. Safari shows its code.
  5. Install it. Tap the page menu button, on the left of the address bar (AA up to iOS 17), then Userscripts. Not in the menu? Look under Manage Extensions. On iPad, use the extensions button, on the right of the address bar. In the yellow bar Userscript Detected, tap Tap to install, then Install. The bar turns green.
  6. Check. Open BetterTrooper's home page: the blue box that explains how to install BetterTrooper is gone. On trooperstest.gued.es, open a battle from your army's history: it opens here.

What Allow means. Safari warns that Userscripts can then read and change every page you open. Userscripts only runs a script on the pages that script names: BetterTrooper's runs on the battles of trooperstest.gued.es and on BetterTrooper, nowhere else. Userscripts is open source and says it collects no data. Any other script you install runs where it says.

Keep Safari asking

You can leave All Websites on Ask. Safari then asks once per website, and each army is a separate website: allowing plux1.trooperstest.gued.es does not allow paulo1026.trooperstest.gued.es. The first time on a website, tap the page menu button, then Userscripts, Always Allow… and Always Allow on This Website, and reload the page. Do it on BetterTrooper when you install the script, then once for each army whose battles you open: yours, and the army of each battle link you get. Always Allow on Every Website is the same as setting All Websites to Allow.

Sharing battles. A BetterTrooper link opens here on any phone, with or without the script: share that one (the Share button puts it first).

Updates

Userscripts does not check for updates by itself at the moment. To update the script, open Userscripts from the page menu, tap its cloud button, then Check Updates and Update. Or open bettertrooper.user.js again: in the green bar of Userscripts, tap Tap to re-install, then Install.

With Tampermonkey

Tampermonkey (paid) also runs userscripts in Safari on iPhone and iPad, and checks for their updates by itself. Turn it on and allow it like Userscripts (steps 2 and 3), then open bettertrooper.user.js in Safari and install it with Tampermonkey.

If it does not work

To watch a battle on trooperstest.gued.es itself, use View on the original site at the bottom of a battle here: the script leaves that link alone. On a computer or on Android, see the extension.