Adds customisable quick loadout change buttons on Items page.
These are versions of this script where the code was updated. Паказаць усе версіі.
Merge branch 'main' of https://github.com/SOLiNARY/torn-scripts
Refresh loadout titles passively from Torn's equipped-items polls
Wrap fetch/XHR to consume Torn's existing periodic equipped-items responses instead of issuing our own request on load. Cached titles still render instantly; renames now propagate on the next poll. Falls back to one manual fetch after 15s if no response was caught (e.g. fully isolated userscript managers).
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Update loadout-switcher.user.js
Normalize formatting and whitespace across loadout-switcher.user.js, enhance readability, and improve code consistency.
populate loadout titles on TornPDA where customFetch installs too late to intercept getEquippedItems: cache titles in localStorage, manually fetch them when rfcv is available, fall back to loadout number until titles arrive, bump to 0.6.8
relax title class regex so TornPDA's mobile hash format (digits / different length) matches, bump to 0.6.7
re-attach buttons after React re-renders the title element: drop one-shot panelAdded flag, keep polling idempotently, bump to 0.6.6
replace MutationObserver with polling — observer misses SSR-rendered title, bump to 0.6.5
fix observer: query for title element instead of relying on mutation target, bump to 0.6.4
future-proof title class via classList regex, bump to 0.6.3
reverted bump as fix doesnt work
bump version
future proof class changes for title
Updated small screens to have horizontal scroll if all the loadouts do not fit.
Added option to show loadout titles instead of their number
Now works on TornPDA!
Added tooltip with loadout name on button mouse hover.
Reworked script to work on Items page.