Skip to content

Erogz/OpenFrontIO-TroopTiming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OpenFrontIO-TroopTiming

OpenFrontIO-TroopTiming Logo

English ยท Tรผrkรงe

โš ๏ธ Disclaimer: This script may or may not violate OpenFront.io's Terms of Service. This script is for educational purposes and does not automate any actions โ€” it only visualizes existing game data. The author is not responsible for any issues, damages, or consequences arising from the use of this script (including account bans). Use at your own risk.

โœ… Official Developer Clarification

The developer of OpenFront.io, Evan (u/OpenFrontOfficial), reviewed this script and confirmed it is allowed under his policy:

"Our policy on extensions: they're allowed only if they provide or enhance information. They cannot take actions on behalf of the player. So this one is fine."

  • Source: Reddit comment thread
  • This script fully complies with the policy: it only visualizes existing game data and takes no actions on the player's behalf.

๐Ÿ“ธ Official Response Screenshot

OpenFront.io developer Evan confirms this script is allowed

A userscript that adds a real-time troop timing overlay to OpenFront.io. Requires a userscript extension such as Tampermonkey, Greasemonkey, or Violentmonkey. โœจ

๐Ÿš€ Features

  • ๐ŸŽฏ Troop Timing Overlay โ€” Real-time troop bar overlay with color-coded strategy indicator
  • ๐Ÿ“Š Gradient bar showing troop percentage (0%โ€“100%)
  • โœจ Animated marker with smooth transitions
  • ๐ŸŽจ Color-coded strategy icons (star/checkmark/clock) based on troop ratio
  • ๐Ÿท๏ธ Troop badge override with matching colors
  • ๐Ÿ”„ Falls back to DOM scraping if the game API is unavailable

๐Ÿ“ธ Screenshots

Troop Timing Overlay - Low Troops ย ย  Troop Timing Overlay - High Troops

๐Ÿ› ๏ธ Installation

  1. Install a userscript extension in your browser:
  1. Install the script:

๐Ÿ“ฅ Install Script ยท ๐Ÿ“ฅ Install from GreasyFork ยท ๐Ÿ“ฅ Install from OpenUserJS

Or copy the contents of OpenFrontIO-TroopTiming.user.js into a new userscript.

  1. Navigate to openfront.io or nightly.openfront.dev โ€” the overlay will appear automatically on game pages ๐ŸŽฎ

๐Ÿ“ Repository Structure

OpenFrontIO-TroopTiming/
โ”œโ”€โ”€ README.md # This file (English) ๐Ÿ‡ฌ๐Ÿ‡ง
โ”œโ”€โ”€ README.tr.md # Turkish version ๐Ÿ‡น๐Ÿ‡ท
โ”œโ”€โ”€ AGENTS.md # AI agent knowledge base ๐Ÿค–
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ OpenFrontIO-TroopTiming.user.js # Userscript (Tampermonkey/Greasemonkey)
โ”œโ”€โ”€ assets/ # Project logos and screenshots ๐Ÿ–ผ๏ธ
โ”‚   โ”œโ”€โ”€ TroopTimingBackground.svg
โ”‚   โ”œโ”€โ”€ TroopTimingNoBackground.svg
โ”‚   โ”œโ”€โ”€ TroopTiming1.png
โ”‚   โ”œโ”€โ”€ TroopTiming2.png
โ”‚   โ””โ”€โ”€ DeveloperAnswered.png
โ””โ”€โ”€ colors/ # Material Design 3 color schemes ๐ŸŽจ

๐Ÿ’ป Development

The script is a single self-contained JavaScript file. No build step required. โšก

To modify:

  1. Edit OpenFrontIO-TroopTiming.user.js
  2. In Tampermonkey, click the script icon โ†’ Edit
  3. Or reinstall from the file

๐Ÿ“œ License

Source code is licensed under MIT. โš–๏ธ

About

๐Ÿ“œ A userscript that adds a real-time troop timing overlay to OpenFront.io.

Topics

Resources

Stars

Watchers

Forks

Contributors