Car Specification for Torn Races with Highlight (Fixed)

HangingLow
2024-09-24T13:30:40Z

Replace specified texts on the Torn Racing page and highlight exact matching car names with class and specs

This scripts adds properties required from a car to track names as recommended by https://www.torn.com/forums.php#/p=threads&f=61&t=16126414&b=0&a=0

1.1 - Fixed Docks not translating
1.2 - Added listener, so no need to refresh pages
1.3 - Added toggle to switch between new and old car names (you have to change the property to useNewCarNames = true or useNewCarNames = false)
1.4 - Added dash to separate the car suggestion and track name
1.5 - Limited the text replacement only to a specific divs, to not override the text everywhere
1.7 - Re added dashes again because of some mishap
1.8 - Added wildcard to match URL
1.9 - Added matching when entering Official race
1.10 - Fixed matching of multiple classes
1.11 - Fixed script not triggering in some cases
1.12 - Added the ability to highlight suitable car
1.13 - Fixed class of Colina