Arson 2.0 items description

Items description popup

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, Greasemonkey alebo Violentmonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, % alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey alebo Userscripts.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie správcu používateľských skriptov.

(Už mám správcu používateľských skriptov, nechajte ma ho nainštalovať!)

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

(Už mám správcu používateľských štýlov, nechajte ma ho nainštalovať!)

Autor
Kami Ren
Denne inštalácií
6
Celkový počet inštalácií
6
Hodnotenie
0 0 0
Verzia
3.5.3
Vytvorené
22.04.2026
Aktualizované
22.04.2026
Veľkosť
8,3 KB
Licencia
MIT
Spustiť na

Arson 2.0 Items Description

A lightweight userscript for Torn that displays contextual item information from a reference image when hovering specific items.


Overview

Arsons Item Descriptor enhances the Torn UI by showing a visual descriptor panel when hovering certain items (e.g., Gasoline, Diesel).

Instead of parsing in-game data, it uses a single reference image and dynamically crops the relevant section based on the hovered item.

This keeps the script simple, fast, and independent of Torn’s internal structure.


Features

  • Hover-based activation
    Displays a popup when hovering supported items.

  • Image-based descriptors
    Uses one image and crops the relevant section dynamically.

  • Custom scaling
    Separate horizontal and vertical scaling for better layout control.

  • Accurate positioning
    Popup appears next to the hovered item and avoids screen overflow.

  • Minimal overhead
    No API calls or heavy DOM parsing.

  • Keyboard control
    Press ESC to close the popup instantly.


How It Works

  1. The script detects when your cursor is over an item button.
  2. It reads the item name from the aria-label.
  3. If the item matches a predefined list (e.g., Gasoline, Diesel), it:
    • Opens a popup near the item
    • Displays a cropped section of a reference image
  4. The popup disappears when you move the cursor away or press ESC.

Installation

1. Install a userscript manager

You need a browser extension that supports userscripts:

  • Chrome / Edge: Tampermonkey
  • Firefox: Tampermonkey or Greasemonkey

2. Install the script

  1. Open the script page on GreasyFork
  2. Click Install this script
  3. Confirm installation in your userscript manager

3. Use it

  1. Open Torn: https://www.torn.com/
  2. Hover over supported items (e.g., Gasoline, Diesel)
  3. The descriptor popup will appear automatically

Configuration (Optional)

You can adjust behavior directly in the script:

Scaling

const SCALE_X = 0.5;  // width
const SCALE_Y = 0.75; // height