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)
- Get the app. Install Userscripts from the App Store (free, open source). Open it once: it sets itself up, there is nothing to change.
- 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).
- 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.
- Open the script. In Safari, open bettertrooper.user.js. Safari shows its code.
- 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.
- 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
- Safari only. Userscripts is a Safari extension: Chrome, Firefox or Edge on iPhone and iPad cannot run it.
- Ask or Deny. In the settings of step 2, All Websites (or Other Websites) must be on Allow, or else the army's own row (its full address, like plux1.trooperstest.gued.es).
- Off for one army. In the page menu, under Manage Extensions, Userscripts must be on for that army's address on trooperstest.gued.es.
- Private Browsing. Safari turns extensions off in private tabs. To use the script there, turn Userscripts on for Private Browsing in the settings of step 2.
- Safari profiles. Turn Userscripts on for each profile you use (step 2).
- Script turned off. On a BetterTrooper page, open Userscripts. Its switch at the top must be on, and BetterTrooper must not be greyed out: tap it to turn it back on.
- "Open Userscripts App". If Userscripts asks for it, open the Userscripts app once, then try again.
- iPad. The same steps. Userscripts is under the extensions button, on the right of the address bar.
- Links opened in another app. They can open in that app's own browser, not in Safari. If a battle does not open here, open its link in Safari.
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.
