A high-performance Tampermonkey userscript for Torn City that enhances the attack interface by moving attack buttons to weapon slots for faster clicking.
- Ultra-fast button placement on weapon slots
- Configurable target slot (Primary, Secondary, Melee, or Temporary weapon)
- Ctrl+Click slot selection to change target on-the-fly
- Performance optimized - zero UI overhead, cached DOM queries
- Persistent settings - configuration saved in localStorage
- Install Tampermonkey browser extension
- Click to install: Install Torn Attack Script
- The script automatically places attack buttons on your configured weapon slot
- Click the weapon slot to trigger the attack button
- Ctrl+Click on any weapon slot to set it as the new target
- Settings are automatically saved and persist across page reloads
- Visual feedback shows which slot is selected
- Primary Weapon (
weapon_main) - Default - Secondary Weapon (
weapon_second) - Melee Weapon (
weapon_melee) - Temporary Weapon (
weapon_temp)
Enable debug logs by setting:
CONFIG.enableDebugLogs = true;Or via browser console:
CONFIG.enableDebugLogs = true;- No UI overhead - No panels or visual elements
- Cached DOM queries - Minimal repeated lookups
- Optimized event handling - Capture phase, minimal timeouts
- Zero logging - No console output in production mode
MIT License - See LICENSE file for details.