ChargeOps — Cleo Org Switcher
View on Chrome Web StoreChrome will indicate if you already have this installed.
Overview
Cleo Org Switcher is a tiny utility for Polara employees who manage charging sites in both ChargeOps and Cleo. It closes a small but irritating gap: Cleo decides which organization to display from a value stored in the browser, not from the URL. So when you click the Cleo logo on a ChargeOps site page, Cleo would otherwise open whichever organization you visited last — not the one matching the site you came from.
This extension fixes that. It runs only on app.cleo.eco, watches for a small marker that ChargeOps appends to its deep-link URL (#orgId=<id>), writes that organization id into Cleo's own browser storage, and strips the marker. Because it runs before Cleo's own scripts execute, the page boots straight into the right organization with no reload, no extra click, no flicker.
What it does
• Reads the organization id from the URL hash on app.cleo.eco
• Writes it to Cleo's GZ_SELECTED_ORGANIZATION localStorage value
• Removes the hash so refreshes don't trigger again
What it does not do
• No network requests, ever
• No background page, no service worker
• No telemetry, no analytics
• No access to any other Cleo storage value
• No interaction with any site other than app.cleo.eco
• Does not run inside iframes
Open source
The full source — about 30 lines — is on GitHub at
https://github.com/pldagenais/ChargeOps2/tree/main/tools/cleo-org-switcher-extension
Read it before installing. There is nothing else.
Tags
Privacy Practices
🔐 Security Analysis
This extension hasn't been security-scanned yet.