Browser extension that calculates your daily, weekly and monthly earnings in Rollercoin game.
- 📊 Earnings calculation for all coins
- 💰 Fiat currency conversion (USDT, TRY, EUR, etc.)
- ⏱️ Minimum withdrawal time calculation
- 🔄 Real-time data via WebSocket
- 💾 Offline mode (with cached data)
sequenceDiagram
participant WS as Rollercoin WebSocket
participant INT as Interceptor (page context)
participant CS as Content Script
participant ST as Chrome Storage
participant PU as Popup
WS->>INT: power {total: 13210155185}
INT->>CS: postMessage(ROLLERCOIN_WS_POWER)
CS->>ST: Save user power
WS->>INT: pool_power_response {currency: "RLT", power: 2799...}
INT->>CS: postMessage(ROLLERCOIN_WS_POOL_POWER)
CS->>ST: Save pool power
WS->>INT: balance {btc: "25533", trx: "330489...", ...}
INT->>CS: postMessage(ROLLERCOIN_WS_BALANCE)
CS->>ST: Save balances
PU->>ST: Load league data
ST->>PU: Return stored data
PU->>PU: Calculate earnings
- Clone the project:
git clone https://github.com/user/rollercoin-extension - Install dependencies:
npm install - Build:
npm run build - Open
chrome://extensionsin Chrome - Click "Load unpacked" → Select
distfolder
- Go to https://rollercoin.com/game
- Click the extension icon
- View your earnings calculations
src/
├── content/
│ ├── content.ts # Main content script
│ └── websocket-interceptor.ts # WebSocket message interceptor
├── background/
│ └── service-worker.ts # Background service worker
├── popup/
│ ├── App.tsx # Popup UI
│ └── components/ # React components
└── types/
└── index.ts # TypeScript types
MIT