Hi Orion team,
First of all, I love what you are doing with Orion: a WebKit browser that runs Chrome and Firefox extensions, even on an iPhone, is something I never expected to see. Thank you for your work!
I make a small extension, BetterTrooper, that opens the battle replays of a browser game in a faster player. On Orion for iOS it installs from the Chrome Web Store and its content scripts run, but its redirects never happen, so it cannot do its job. It looks like the missing declarativeNetRequest API of https://orionfeedback.org/d/13031.
Steps to reproduce
- Install BetterTrooper from the Chrome Web Store: https://chromewebstore.google.com/detail/bettertrooper/dcmikmghpjleohepnoiojnhfjblcmmdc
- Open a battle replay of the game, for example https://plux1.trooperstest.gued.es/b/fview/13449126
- The page stays on trooperstest.gued.es. The extension is active though: its content script on bettertrooper.milvintsiss.com runs and hides an install box there.
In Safari on the same iPhone, the same extension, packaged as a Safari web extension, redirects as expected.
The extension (Manifest V3, no background script)
- permissions:
declarativeNetRequestWithHostAccess
- host_permissions:
*://*.trooperstest.gued.es/*, https://bettertrooper.milvintsiss.com/*
- one static ruleset with
main_frame redirects using regexFilter and regexSubstitution, for example:
{
"id": 1,
"priority": 1,
"condition": {
"regexFilter": "^https?://([a-z0-9-]+)\\.trooperstest\\.gued\\.es/b/fview/([0-9]+)/?(#.*)?$",
"isUrlFilterCaseSensitive": false,
"resourceTypes": ["main_frame"]
},
"action": {
"type": "redirect",
"redirect": { "regexSubstitution": "https://bettertrooper.milvintsiss.com/b/fview/\\2?og_army=\\1&via=ext\\3" }
}
}
- its popup switch adds or removes a dynamic
allow rule (updateDynamicRules).
Thanks again!
Opening a battle replay of trooperstest.gued.es redirects to BetterTrooper, for example to https://bettertrooper.milvintsiss.com/b/fview/13449126?og_army=plux1&via=ext, as in Chrome.
Orion 1.5.6(6), iPhone 11, iOS 26.6
26