NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name City lists
// @namespace torn.com
// @version 1.9
// @author Ahab [1735214]
// @license MIT
// @updateURL https://openuserjs.org/meta/Ahab/City_lists.meta.js
// @match https://www.torn.com/city.php
// @run-at document-body
// @grant GM_addStyle
// @grant GM.xmlHttpRequest
// @icon https://www.google.com/s2/favicons?sz=64&domain=torn.com
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
// @require https://raw.githubusercontent.com/lostandconfused/test/master/count.js
// @require https://jpillora.com/xhook/dist/xhook.js
// ==/UserScript==
GM_addStyle(`
table {
text-align: center;
width: 100%;
table-layout: auto;
border-style: hidden;
}
tbody:not(#idata).tab tr:nth-child(odd) {
background-color: var(--default-bg-panel-active-color);
}
thead{
font-size: 130%;
font-weight: bold;
}
.tab tr, .tab td, .tab th, .cell {
border: 1px solid var(--default-panel-divider-outer-side-color)!important;
vertical-align: middle!important;
padding: 5px!important;
color: var(--default-qlinks-color);
}
#wdata tr td:nth-child(1) {
width: 100px;
}
#wdata tr td:nth-child(3) {
width: 206px;
}
.tab a:hover, #listSelections span:hover, thead.tab th:hover, .symPane:hover, .cell:hover, #warProgress:hover{
color: var(--default-blue-hover-color)!important
}
#listSelections span, thead.tab, .symPane, .cell, #warProgress{
cursor: pointer
}
.tab a, #warProgress{
color:var(--default-blue-color);
text-decoration: none;
margin-top: 1px
}
.activetab{
display: inline-table
}
.inactive{
display: none
}
.selectedtab{
color: #5f9ea0
}
.addTime{
padding: 3px;
width: 100%
}
.wImg{
align-items: center;
justify-content: center;
display: flex;
left: 15px;
position: relative
}
#rImg{
margin-top: 1px;
width: 25px;
padding-left: 5px;
left: 3px;
position: relative
}
.advantage-bar {
width: 100%;
height: 5px;
display: table;
border-radius: 100px;
margin-bottom: 4px;
margin-top: 5px
}
.advantage-bar .your {
display: table-cell;
background: #a3d900;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2EzZDkwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2OThjMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,rgba(163,217,0,1) 0%,rgba(105,140,0,1) 100%);
background: -webkit-linear-gradient(top,rgba(163,217,0,1) 0%,rgba(105,140,0,1) 100%);
background: linear-gradient(to bottom,rgba(163,217,0,1) 0%,rgba(105,140,0,1) 100%);
border-radius: 100px 0 0 100px;
position: relative
}
.advantage-bar .your:nth-child(2) {
border-radius: 0 100px 100px 0
}
.advantage-bar .enemy {
display: table-cell;
background: #ff7a4d;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmN2E0ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNkOTM2MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,rgba(255,122,77,1) 0%,rgba(217,54,0,1) 100%);
background: -webkit-linear-gradient(top,rgba(255,122,77,1) 0%,rgba(217,54,0,1) 100%);
background: linear-gradient(to bottom,rgba(255,122,77,1) 0%,rgba(217,54,0,1) 100%);
border-radius: 0 100px 100px 0;
position: relative
}
.advantage-bar .enemy:nth-child(1) {
border-radius: 100px 0 0 100px
}
.advantage-bar .your .animation, .advantage-bar .enemy .animation {
height: 5px;
width: 100%;
position: relative;
top: 0;
left: 0;
overflow: hidden
}
.advantage-bar .your .animation .arrows, .advantage-bar .enemy .animation .arrows {
height: 5px;
width: auto;
position: relative;
top: 0;
left: -5px;
background: url(/images/v2/faction/wars/progress_bar_arrows.png) 0 -30px repeat-x;
-webkit-animation: advantage-bar-animation 30s linear .1s infinite normal;
animation: advantage-bar-animation 30s linear .1s infinite normal;
z-index: 8
}
.advantage-bar .enemy .animation .arrows {
left: -5px
}
.advantage-bar .your:nth-child(2) .animation .arrows {
left: 5px;
background-position-y: -10px;
-webkit-animation-direction: reverse;
animation-direction: reverse;
z-index: 8
}
.advantage-bar .enemy:nth-child(1) .animation .arrows {
left: 5px;
background-position-y: -20px;
-webkit-animation-direction: normal;
animation-direction: normal;
z-index: 8
}
.advantage-bar .your .animation:before, .advantage-bar .your .animation:after {
content: "";
display: block;
position: absolute;
left: auto;
right: 0;
top: 0;
height: 5px;
width: 15px;
background: url(/images/v2/faction/wars/progress_bar_pointer.png) 0 -15px no-repeat
}
.advantage-bar .your .animation:after {
background: #ff7a4d;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmN2E0ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNkOTM2MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,rgba(255,122,77,1) 0%,rgba(217,54,0,1) 100%);
background: -webkit-linear-gradient(top,rgba(255,122,77,1) 0%,rgba(217,54,0,1) 100%);
background: linear-gradient(to bottom,rgba(255,122,77,1) 0%,rgba(217,54,0,1) 100%);
z-index: 5
}
.advantage-bar .your .animation:before {
z-index: 6
}
.advantage-bar .your:nth-child(2) .animation:before {
right: auto;
left: 0;
background: url(/images/v2/faction/wars/progress_bar_pointer_2.png) 0 -15px no-repeat
}
.advantage-bar .your:nth-child(2) .animation:after {
right: auto;
left: 0
}
.advantage-bar .enemy .animation .arrows {
background-position-y: 0;
-webkit-animation: advantage-bar-animation 30s linear .1s infinite reverse;
animation: advantage-bar-animation 30s linear .1s infinite reverse;
z-index: 7
}
.advantage-bar .enemy .animation:before, .advantage-bar .enemy .animation:after {
content: "";
display: block;
position: absolute;
left: 0;
top: 0;
height: 5px;
width: 15px;
background: url(/images/v2/faction/wars/progress_bar_pointer.png) 0 0 no-repeat
}
.advantage-bar .enemy .animation:after {
background: #a3d900;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2EzZDkwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2OThjMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,rgba(163,217,0,1) 0%,rgba(105,140,0,1) 100%);
background: -webkit-linear-gradient(top,rgba(163,217,0,1) 0%,rgba(105,140,0,1) 100%);
background: linear-gradient(to bottom,rgba(163,217,0,1) 0%,rgba(105,140,0,1) 100%);
z-index: 5
}
.advantage-bar .enemy .animation:before {
z-index: 6
}
.advantage-bar .enemy:nth-child(1) .animation:before {
right: 0;
left: auto;
background: url(/images/v2/faction/wars/progress_bar_pointer_2.png) 0 0 no-repeat
}
.advantage-bar .enemy:nth-child(1) .animation:after {
right: 0;
left: auto
}
.advantage-bar .enemy:nth-child(1) .animation .arrows {
left: -5px
}
.types {
display: none;
}
.itemDropdown:hover .types {
display: block;
border: 1px, solid, grey;
border-radius: 5px;
position: absolute;
padding: 5px;
background: var(--title-black-gradient);
min-width: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
color: #ccc;
}
.types div{
display: flex;
width: 100px;
}
.types div label{
width: 400px;
}
.itemDropdown {
position: relative;
display: inline-block;
}
@-webkit-keyframes advantage-bar-animation {
0% {
background-position-x: 0
}
100% {
background-position-x: 1000px
}
}
@keyframes advantage-bar-animation {
0% {
background-position-x: 0
}
100% {
background-position-x: 1000px
}
}
@keyframes advantage-bar-animation {
0% {
background-position-x: 0
}
100% {
background-position-x: 1000px
}
}
`)
var city = {}
var itemList = {"Hammer": "Melee","Baseball Bat": "Melee","Crowbar": "Melee","Knuckle Dusters": "Melee","Pen Knife": "Melee","Kitchen Knife": "Melee","Dagger": "Melee","Axe": "Melee","Scimitar": "Melee","Chainsaw": "Melee","Samurai Sword": "Melee","Glock 17": "Secondary","Raven MP25": "Secondary","Ruger 57": "Secondary","Beretta M9": "Secondary","USP": "Secondary","Beretta 92FS": "Secondary","Fiveseven": "Secondary","Magnum": "Secondary","Desert Eagle": "Secondary","Dual 92G Berettas": "Secondary","Sawed-Off Shotgun": "Primary","Benelli M1 Tactical": "Primary","MP5 Navy": "Primary","P90": "Primary","AK-47": "Primary","M4A1 Colt Carbine": "Primary","Benelli M4 Super": "Primary","M16 A2 Rifle": "Primary","Steyr AUG": "Primary","M249 SAW": "Primary","Leather Vest": "Defensive","Police Vest": "Defensive","Bulletproof Vest": "Defensive","Box of Chocolate Bars": "Candy","Big Box of Chocolate Bars": "Candy","Bag of Bon Bons": "Candy","Box of Bon Bons": "Candy","Box of Extra Strong Mints": "Candy","Pack of Music CDs": "Other","DVD Player": "Other","MP3 Player": "Special","CD Player": "Special","Blank DVDs : 100": "Material","Hard Drive": "Other","Tank Top": "Clothing","Trainers": "Clothing","Jacket": "Clothing","Full Body Armor": "Defensive","Outer Tactical Vest": "Defensive","Plain Silver Ring": "Jewelry","Sapphire Ring": "Jewelry","Gold Ring": "Jewelry","Diamond Ring": "Jewelry","Pearl Necklace": "Jewelry","Silver Necklace": "Jewelry","Gold Necklace": "Jewelry","Plastic Watch": "Jewelry","Stainless Steel Watch": "Jewelry","Gold Watch": "Jewelry","Personal Computer": "Tool","Microwave": "Other","Minigun": "Primary","Pack of Cuban Cigars": "Other","Television": "Special","Morphine": "Medical","First Aid Kit": "Medical","Small First Aid Kit": "Medical","Simple Virus": "Tool","Polymorphic Virus": "Tool","Tunneling Virus": "Tool","Armored Virus": "Tool","Stealth Virus": "Tool","Santa Hat '04": "Collectible","Christmas Cracker '04": "Collectible","Snow Cannon": "Primary","Tabata RM2": "Car","Edomondo NSX": "Car","Echo Quadrato": "Car","Bavaria M5": "Car","Bavaria Z8": "Car","Chevalier CZ06": "Car","Dart Rampager": "Car","Knight Firebrand": "Car","Volt GT": "Car","Invader H3": "Car","Echo S4": "Car","Edomondo IR": "Car","Edomondo ACD": "Car","Edomondo Localé": "Car","Verpestung Insecta": "Car","Chevalier CVR": "Car","Volt MNG": "Car","Trident": "Car","Oceania SS": "Car","Coat Hanger": "Tool","Bunch of Flowers": "Flower","Neutrilux 2000": "Primary","Springfield 1911": "Secondary","Egg Propelled Launcher": "Primary","Bunny Suit": "Clothing","Chocolate Egg '05": "Collectible","Firewalk Virus": "Tool","Game Console": "Special","Xbox": "Special","Parachute": "Booster","Trench Coat": "Clothing","9mm Uzi": "Primary","RPG Launcher": "Secondary","Leather Bullwhip": "Melee","Ninja Claws": "Melee","Test Trophy": "Collectible","Pet Rock": "Collectible","Non-Anon Doll": "Collectible","Poker Doll": "Collectible","Yoda Figurine": "Collectible","Trojan Horse": "Collectible","Doll's Head": "Collectible","Rubber Ducky of Doom": "Collectible","Teppic Bear": "Collectible","RockerHead Doll": "Collectible","Mouser Doll": "Collectible","Elite Action Man": "Collectible","Toy Reactor": "Collectible","Royal Doll": "Collectible","Blue Dragon": "Collectible","China Tea Set": "Collectible","Mufasa Toy": "Collectible","Dozen Roses": "Flower","Skanky Doll": "Collectible","Lego Hurin": "Collectible","Mystical Sphere": "Collectible","10 Ton Pacifier": "Collectible","Horse Toy": "Collectible","Uriel's Speakers": "Collectible","Strife Clown": "Collectible","Locked Teddy": "Collectible","Riddle's Bat": "Collectible","Soup Nazi Doll": "Collectible","Pouncer Doll": "Collectible","Spammer Doll": "Collectible","Cookie Jar": "Collectible","Vanity Mirror": "Collectible","Banana Phone": "Collectible","Xbox 360": "Special","Yasukuni Sword": "Melee","Rusty Sword": "Melee","Dance Toy": "Collectible","Lucky Dime": "Collectible","Crystal Carousel": "Collectible","Pixie Sticks": "Candy","Ice Sculpture": "Collectible","Case of Whiskey": "Collectible","Laptop": "Tool","Purple Frog": "Collectible","Hooorang's Key": "Collectible","Patriot Whip": "Collectible","Statue Of Aeolus": "Collectible","Bolt Cutters": "Other","Photographs": "Other","Black Unicorn": "Collectible","WarPaint Kit": "Collectible","Official Ninja Kit": "Collectible","Leukaemia Teddy Bear": "Collectible","Chocobo Flute": "Collectible","Annoying Man": "Collectible","Article on Crime": "Other","Unknown": "Unused","Barbie Doll": "Collectible","Wand of Destruction": "Melee","Jack-O-Lantern '05": "Collectible","Gasoline": "Material","Butterfly Knife": "Melee","XM8 Rifle": "Primary","Taser": "Secondary","Chain Mail": "Defensive","Cobra Derringer": "Secondary","Flak Jacket": "Defensive","Birthday Cake '05": "Collectible","Bottle of Beer": "Alcohol","Bottle of Champagne": "Alcohol","Soap on a Rope": "Other","Single Red Rose": "Flower","Bunch of Black Roses": "Flower","Bunch of Balloons '05": "Collectible","Sheep Plushie": "Plushie","Teddy Bear Plushie": "Plushie","Cracked Crystal Ball": "Collectible","S&W Revolver": "Secondary","C4 Explosive": "Material","Memory Locket": "Other","Rainbow Stud Earring": "Collectible","Hamster Toy": "Collectible","Snowflake '05": "Collectible","Christmas Tree '05": "Collectible","Cannabis": "Drug","Ecstasy": "Drug","Ketamine": "Drug","LSD": "Drug","Opium": "Drug","PCP": "Drug","Mr Torn Crown '07": "Collectible","Shrooms": "Drug","Speed": "Drug","Vicodin": "Drug","Xanax": "Drug","Ms Torn Crown '07": "Collectible","Box of Sweet Hearts": "Candy","Bag of Chocolate Kisses": "Candy","Crazy Cow": "Collectible","Legend's Urn": "Collectible","Dreamcatcher": "Collectible","Brutus Keychain": "Collectible","Kitten Plushie": "Plushie","Single White Rose": "Collectible","Claymore Sword": "Melee","Crossbow": "Secondary","Enfield SA-80": "Primary","Grenade": "Temporary","Stick Grenade": "Temporary","Flash Grenade": "Temporary","Jackhammer": "Primary","Swiss Army Knife": "Melee","Mag 7": "Primary","Smoke Grenade": "Temporary","Spear": "Melee","Vektor CR-21": "Primary","Claymore Mine": "Temporary","Flare Gun": "Secondary","Heckler & Koch SL8": "Primary","SIG 550": "Primary","BT MP9": "Secondary","Chain Whip": "Melee","Wooden Nunchaku": "Melee","Kama": "Melee","Kodachi": "Melee","Sai": "Melee","Ninja Star": "Temporary","Type 98 Anti Tank": "Secondary","Bushmaster Carbon 15": "Primary","HEG": "Temporary","Taurus": "Secondary","Blowgun": "Secondary","Bo Staff": "Melee","Fireworks": "Temporary","Katana": "Melee","Qsz-92": "Secondary","SKS Carbine": "Primary","Twin Tiger Hooks": "Melee","Wushu Double Axes": "Melee","Ithaca 37": "Primary","Lorcin 380": "Secondary","S&W M29": "Secondary","Flamethrower": "Secondary","Tear Gas": "Temporary","Throwing Knife": "Temporary","Jaguar Plushie": "Plushie","Mayan Statue": "Other","Dahlia": "Flower","Wolverine Plushie": "Plushie","Hockey Stick": "Other","Crocus": "Flower","Orchid": "Flower","Pele Charm": "Other","Nessie Plushie": "Plushie","Heather": "Flower","Red Fox Plushie": "Plushie","Monkey Plushie": "Plushie","Soccer Ball": "Other","Ceibo Flower": "Flower","Edelweiss": "Flower","Chamois Plushie": "Plushie","Panda Plushie": "Plushie","Jade Buddha": "Other","Peony": "Flower","Cherry Blossom": "Flower","Kabuki Mask": "Clothing","Maneki Neko": "Other","Elephant Statue": "Other","Lion Plushie": "Plushie","African Violet": "Flower","Donator Pack": "Supply Pack","Bronze Paint Brush": "Collectible","Silver Paint Brush": "Collectible","Gold Paint Brush": "Collectible","Pand0ra's Box": "Collectible","Mr Brownstone Doll": "Collectible","Dual Axes": "Melee","Dual Hammers": "Melee","Dual Scimitars": "Melee","Dual Samurai Swords": "Melee","Japanese/English Dictionary": "Other","Bottle of Sake": "Alcohol","Oriental Log": "Other","Oriental Log Translation": "Other","YouYou Yo Yo": "Collectible","Monkey Cuffs": "Collectible","Jester's Cap": "Collectible","Gibal's Dragonfly": "Collectible","Green Ornament": "Collectible","Purple Ornament": "Collectible","Blue Ornament": "Collectible","Purple Bell": "Collectible","Mistletoe": "Other","Mini Sleigh": "Other","Snowman": "Other","Christmas Gnome": "Other","Gingerbread House": "Other","Lollipop": "Candy","Mardi Gras Beads": "Collectible","Devil Toy": "Collectible","Cookie Launcher": "Collectible","Cursed Moon Pendant": "Collectible","Apartment Blueprint": "Unused","Semi-Detached House Blueprint": "Unused","Detached House Blueprint": "Unused","Beach House Blueprint": "Unused","Chalet Blueprint": "Unused","Villa Blueprint": "Unused","Penthouse Blueprint": "Unused","Mansion Blueprint": "Unused","Ranch Blueprint": "Unused","Palace Blueprint": "Unused","Castle Blueprint": "Unused","Printing Paper": "Material","Blank Tokens": "Material","PVC Cards": "Material","Skateboard": "Booster","Boxing Gloves": "Booster","Dumbbells": "Booster","Combat Vest": "Defensive","Liquid Body Armor": "Defensive","Flexible Body Armor": "Defensive","Stick of Dynamite": "Other","Cesium-137": "Special","Dirty Bomb": "Special","Sh0rty's Surfboard": "Collectible","Puzzle Piece": "Collectible","Hunny Pot": "Collectible","Seductive Stethoscope": "Collectible","Dollar Bill Collectible": "Collectible","Backstage Pass": "Collectible","Chemi's Magic Potion": "Collectible","Pack of Trojans": "Other","Pair of High Heels": "Melee","Thong": "Clothing","Hazmat Suit": "Defensive","Flea Collar": "Collectible","Dunkin's Donut": "Collectible","Amazon Doll": "Collectible","BBQ Smoker": "Collectible","Bag of Cheetos": "Collectible","Motorbike": "Collectible","Citrus Squeezer": "Collectible","Superman Shades": "Collectible","Kevlar Helmet": "Collectible","Raw Ivory": "Other","Fine Chisel": "Melee","Ivory Walking Cane": "Melee","Neumune Tablet": "Medical","Mr Torn Crown '08": "Collectible","Ms Torn Crown '08": "Collectible","Box of Grenades": "Supply Pack","Box of Medical Supplies": "Supply Pack","Erotic DVD": "Booster","Feathery Hotel Coupon": "Booster","Lawyer's Business Card": "Booster","Lottery Voucher": "Supply Pack","Drug Pack": "Supply Pack","Dark Doll": "Collectible","Empty Box": "Special","Parcel": "Supply Pack","Birthday Present": "Supply Pack","Present": "Supply Pack","Christmas Present": "Supply Pack","Birthday Wrapping Paper": "Special","Generic Wrapping Paper": "Special","Christmas Wrapping Paper": "Special","Small Explosive Device": "Special","Gold Laptop": "Tool","Gold Plated AK-47": "Primary","Digital Organizer": "Other","Camel Plushie": "Plushie","Tribulus Omanense": "Flower","Sports Sneakers": "Enhancer","Handbag": "Melee","Pink Mac-10": "Secondary","Mr Torn Crown '09": "Collectible","Ms Torn Crown '09": "Collectible","Macana": "Melee","Pepper Spray": "Temporary","Slingshot": "Secondary","Brick": "Temporary","Metal Nunchaku": "Melee","Business Class Ticket": "Special","Flail": "Melee","SIG 552": "Primary","ArmaLite M-15A4": "Primary","Guandao": "Melee","Lead Pipe": "Melee","Ice Pick": "Melee","Box of Tissues": "Special","Bandana": "Clothing","Loaf of Bread": "Other","Afro Comb": "Other","Compass": "Other","Sextant": "Other","Yucca Plant": "Other","Fire Hydrant": "Other","Model Space Ship": "Other","Sports Shades": "Clothing","Mountie Hat": "Clothing","Proda Sunglasses": "Clothing","Ship in a Bottle": "Other","Paper Weight": "Other","RS232 Cable": "Other","Tailor's Dummy": "Other","Small Suitcase": "Enhancer","Medium Suitcase": "Enhancer","Large Suitcase": "Enhancer","Vanity Hand Mirror": "Special","Poker Chip": "Collectible","Rabbit Foot": "Collectible","Voodoo Doll": "Collectible","Bottle of Tequila": "Alcohol","Sumo Doll": "Other","Casino Pass": "Special","Chopsticks": "Other","Coconut Bra": "Clothing","Dart Board": "Other","Crazy Straw": "Other","Sensu": "Other","Yakitori Lantern": "Other","Dozen White Roses": "Flower","Snowboard": "Other","Glow Stick": "Material","Cricket Bat": "Melee","Frying Pan": "Melee","Pillow": "Melee","Khinkeh P0rnStar Doll": "Collectible","Blow-Up Doll": "Collectible","Strawberry Milkshake": "Collectible","Breadfan Doll": "Collectible","Chaos Man": "Collectible","Karate Man": "Collectible","Burmese Flag": "Collectible","Bl0ndie's Dictionary": "Collectible","Hydroponic Grow Tent": "Collectible","Leopard Coin": "Artifact","Florin Coin": "Artifact","Gold Noble Coin": "Artifact","Ganesha Sculpture": "Artifact","Vairocana Buddha Sculpture": "Artifact","Quran Script : Ibn Masud": "Artifact","Quran Script : Ubay Ibn Ka'b": "Artifact","Quran Script : Ali": "Artifact","Shabti Sculpture": "Artifact","Egyptian Amulet": "Artifact","White Senet Pawn": "Artifact","Black Senet Pawn": "Artifact","Senet Board": "Artifact","Epinephrine": "Temporary","Melatonin": "Temporary","Serotonin": "Temporary","Snow Globe '09": "Collectible","Dancing Santa Claus '09": "Collectible","Christmas Stocking '09": "Collectible","Santa's Elf '09": "Collectible","Christmas Card '09": "Collectible","Admin Portrait '09": "Collectible","Blue Easter Egg": "Booster","Green Easter Egg": "Booster","Red Easter Egg": "Booster","Yellow Easter Egg": "Booster","White Easter Egg": "Booster","Black Easter Egg": "Booster","Gold Easter Egg": "Booster","Metal Dog Tag": "Collectible","Bronze Dog Tag": "Collectible","Silver Dog Tag": "Collectible","Gold Dog Tag": "Collectible","MP5k": "Secondary","AK74U": "Primary","Skorpion": "Secondary","TMP": "Secondary","Thompson": "Primary","MP 40": "Primary","Luger": "Secondary","Blunderbuss": "Secondary","Zombie Brain": "Collectible","Human Head": "Collectible","Medal of Honor": "Collectible","Limoen Saxon": "Car","Nano Pioneer": "Car","Vita Bravo": "Car","Zaibatsu Macro": "Car","Çagoutte 10-6": "Car","Papani Colé": "Car","Bedford Racer": "Car","Stålhög 860": "Car","Alpha Milano 156": "Car","Bavaria X5": "Car","Coche Basurero": "Car","Bedford Nova": "Car","Verpestung Sport": "Car","Echo S3": "Car","Volt RS": "Car","Edomondo S2": "Car","Nano Cavalier": "Car","Colina Tanprice": "Car","Cosmos EX": "Car","Yotsuhada EVX": "Car","Sturmfahrt 111": "Car","Tsubasa Impressor": "Car","Wington GGU": "Car","Weston Marlin 177": "Car","Echo R8": "Car","Stormatti Casteon": "Car","Lolo 458": "Car","Lambrini Torobravo": "Car","Veloria LFA": "Car","Mercia SLR": "Car","Zaibatsu GT-R": "Car","Mr Torn Crown '10": "Collectible","Ms Torn Crown '10": "Collectible","Bag of Candy Kisses": "Candy","Bag of Tootsie Rolls": "Candy","Bag of Chocolate Truffles": "Candy","Can of Munster": "Energy Drink","Bottle of Pumpkin Brew": "Alcohol","Can of Red Cow": "Energy Drink","Can of Taurine Elite": "Energy Drink","Witch's Cauldron": "Other","Electronic Pumpkin": "Other","Jack O'Lantern Lamp": "Other","Spooky Paper Weight": "Other","Medieval Helmet": "Defensive","Blood Spattered Sickle": "Melee","Cauldron": "Other","Bottle of Stinky Swamp Punch": "Alcohol","Bottle of Wicked Witch": "Alcohol","Deputy Star": "Collectible","Windproof Lighter": "Enhancer","Dual TMPs": "Primary","Dual Bushmasters": "Primary","Dual MP5s": "Primary","Dual P90s": "Primary","Dual Uzis": "Primary","Bottle of Kandy Kane": "Alcohol","Bottle of Minty Mayhem": "Alcohol","Bottle of Mistletoe Madness": "Alcohol","Can of Santa Shooters": "Energy Drink","Can of Rockstar Rudolph": "Energy Drink","Can of X-MASS": "Energy Drink","Bag of Reindeer Droppings": "Candy","Advent Calendar": "Other","Santa's Snot": "Other","Polar Bear Toy": "Other","Fruitcake": "Material","Book of Carols": "Booster","Sweater": "Clothing","Gift Card": "Booster","Glasses": "Enhancer","High-Speed Drive": "Enhancer","Mountain Bike": "Enhancer","Cut-Throat Razor": "Enhancer","Jemmy": "Tool","Balaclava": "Enhancer","Advanced Driving Manual": "Enhancer","Ergonomic Keyboard": "Enhancer","Tracking Device": "Enhancer","Screwdriver": "Enhancer","Fanny Pack": "Enhancer","Tumble Dryer": "Enhancer","Chloroform": "Enhancer","Heavy Duty Padlock": "Enhancer","Duct Tape": "Enhancer","Wireless Dongle": "Enhancer","Horse's Head": "Special","Book": "Temporary","Tin Foil Hat": "Clothing","Brown Easter Egg": "Booster","Orange Easter Egg": "Booster","Pink Easter Egg": "Booster","Jawbreaker": "Candy","Bag of Sherbet": "Candy","Goodie Bag": "Supply Pack","Undefined": "Unused","Undefined 2": "Unused","Undefined 3": "Unused","Undefined 4": "Unused","Mr Torn Crown '11": "Collectible","Ms Torn Crown '11": "Collectible","Pile of Vomit": "Other","Rusty Dog Tag": "Collectible","Gold Nugget": "Collectible","Witch's Hat": "Clothing","Golden Broomstick": "Melee","Devil's Pitchfork": "Melee","Christmas Lights": "Other","Gingerbread Man": "Other","Golden Wreath": "Other","Pair of Ice Skates": "Melee","Diamond Icicle": "Melee","Santa Boots": "Clothing","Santa Gloves": "Clothing","Santa Hat": "Clothing","Santa Jacket": "Clothing","Santa Trousers": "Clothing","Snowball": "Temporary","Tavor TAR-21": "Primary","Harpoon": "Secondary","Diamond Bladed Knife": "Melee","Naval Cutlass": "Melee","Trout": "Temporary","Banana Orchid": "Flower","Stingray Plushie": "Plushie","Steel Drum": "Other","Nodding Turtle": "Other","Snorkel": "Clothing","Flippers": "Clothing","Speedo": "Clothing","Bikini": "Clothing","Wetsuit": "Clothing","Diving Gloves": "Clothing","Dog Poop": "Special","Stink Bombs": "Special","Toilet Paper": "Special","Mr Torn Crown '12": "Collectible","Ms Torn Crown '12": "Collectible","Petrified Humerus": "Melee","Latex Gloves": "Enhancer","Bag of Bloody Eyeballs": "Candy","Straitjacket": "Clothing","Cinnamon Decoration": "Other","Christmas Express": "Other","Bottle of Christmas Cocktail": "Alcohol","Golden Candy Cane": "Other","Kevlar Gloves": "Defensive","WWII Helmet": "Defensive","Motorcycle Helmet": "Defensive","Construction Helmet": "Defensive","Welding Helmet": "Defensive","Safety Boots": "Defensive","Hiking Boots": "Defensive","Leather Helmet": "Defensive","Leather Pants": "Defensive","Leather Boots": "Defensive","Leather Gloves": "Defensive","Combat Helmet": "Defensive","Combat Pants": "Defensive","Combat Boots": "Defensive","Combat Gloves": "Defensive","Riot Helmet": "Defensive","Riot Body": "Defensive","Riot Pants": "Defensive","Riot Boots": "Defensive","Riot Gloves": "Defensive","Dune Helmet": "Defensive","Dune Vest": "Defensive","Dune Pants": "Defensive","Dune Boots": "Defensive","Dune Gloves": "Defensive","Assault Helmet": "Defensive","Assault Body": "Defensive","Assault Pants": "Defensive","Assault Boots": "Defensive","Assault Gloves": "Defensive","Delta Gas Mask": "Defensive","Delta Body": "Defensive","Delta Pants": "Defensive","Delta Boots": "Defensive","Delta Gloves": "Defensive","Marauder Face Mask": "Defensive","Marauder Body": "Defensive","Marauder Pants": "Defensive","Marauder Boots": "Defensive","Marauder Gloves": "Defensive","EOD Helmet": "Defensive","EOD Apron": "Defensive","EOD Pants": "Defensive","EOD Boots": "Defensive","EOD Gloves": "Defensive","Torn Bible": "Collectible","Friendly Bot Guide": "Collectible","Egotistical Bear": "Collectible","Brewery Key": "Collectible","Signed Jersey": "Collectible","Mafia Kit": "Collectible","Octopus Toy": "Collectible","Bear Skin Rug": "Collectible","Tractor Toy": "Collectible","Mr Torn Crown '13": "Collectible","Ms Torn Crown '13": "Collectible","Piece of Cake '13": "Collectible","Rotten Eggs": "Other","Peg Leg": "Clothing","Antidote": "Medical","Christmas Angel": "Other","Eggnog": "Other","Sprig of Holly": "Other","Festive Socks": "Clothing","Respo Hoodie": "Clothing","Staff Haxx Button": "Collectible","Birthday Cake '14": "Collectible","Lump of Coal": "Tool","Gold Rosette": "Collectible","Silver Rosette": "Collectible","Bronze Rosette": "Collectible","Coin : Factions": "Collectible","Coin : Casino": "Collectible","Coin : Education": "Collectible","Coin : Hospital": "Collectible","Coin : Jail": "Collectible","Coin : Travel Agency": "Collectible","Coin : Companies": "Collectible","Coin : Stock Exchange": "Collectible","Coin : Church": "Collectible","Coin : Auction House": "Collectible","Coin : Race Track": "Collectible","Coin : Museum": "Collectible","Coin : Drugs": "Collectible","Coin : Dump": "Collectible","Coin : Estate Agents": "Collectible","Scrooge's Top Hat": "Clothing","Scrooge's Topcoat": "Clothing","Scrooge's Trousers": "Clothing","Scrooge's Boots": "Clothing","Scrooge's Gloves": "Clothing","Empty Blood Bag": "Medical","Blood Bag : A+": "Medical","Blood Bag : A-": "Medical","Blood Bag : B+": "Medical","Blood Bag : B-": "Medical","Blood Bag : AB+": "Medical","Blood Bag : AB-": "Medical","Blood Bag : O+": "Medical","Blood Bag : O-": "Medical","Mr Torn Crown": "Collectible","Ms Torn Crown": "Collectible","Molotov Cocktail": "Temporary","Christmas Sweater '15": "Clothing","Book : Brawn Over Brains": "Book","Book : Time Is In The Mind": "Book","Book : Keeping Your Face Handsome": "Book","Book : A Job For Your Hands": "Book","Book : Working 9 Til 5": "Book","Book : Making Friends, Enemies, And Cakes": "Book","Book : High School For Adults": "Book","Book : Milk Yourself Sober": "Book","Book : Fight Like An Asshole": "Book","Book : Mind Over Matter": "Book","Book : No Shame No Pain": "Book","Book : Run Like The Wind": "Book","Book : Weaseling Out Of Trouble": "Book","Book : Get Hard Or Go Home": "Book","Book : Gym Grunting - Shouting To Success": "Book","Book : Self Defense In The Workplace": "Book","Book : Speed 3 - The Rejected Script": "Book","Book : Limbo Lovers 101": "Book","Book : The Hamburglar's Guide To Crime": "Book","Book : What Are Old Folk Good For Anyway?": "Book","Book : Medical Degree Schmedical Degree": "Book","Book : No More Soap On A Rope": "Book","Book : Mailing Yourself Abroad": "Book","Book : Smuggling For Beginners": "Book","Book : Stealthy Stealing of Underwear": "Book","Book : Shawshank Sure Ain't For Me!": "Book","Book : Ignorance Is Bliss": "Book","Book : Winking To Win": "Book","Book : Finders Keepers": "Book","Book : Hot Turkey": "Book","Book : Higher Daddy, Higher!": "Book","Book : The Real Dutch Courage": "Book","Book : Because I'm Happy - The Pharrell Story": "Book","Book : No More Sick Days": "Book","Book : Duke - My Story": "Book","Book : Self Control Is For Losers": "Book","Book : Going Back For More": "Book","Book : Get Drunk And Lose Dignity": "Book","Book : Fuelling Your Way To Failure": "Book","Book : Yes Please Diabetes": "Book","Book : Ugly Energy": "Book","Book : Memories And Mammaries": "Book","Book : Brown-nosing The Boss": "Book","Book : Running Away From Trouble": "Book","Certificate of Awesome": "Other","Certificate of Lame": "Other","Plastic Sword": "Melee","Mediocre T-Shirt": "Clothing","Penelope": "Melee","Cake Frosting": "Special","Lock Picking Kit": "Special","Special Fruitcake": "Tool","Felovax": "Medical","Zylkene": "Medical","Duke's Safe": "Other","Duke's Selfies": "Other","Duke's Poetry": "Other","Duke's Dog's Ashes": "Other","Duke's Will": "Other","Duke's Gimp Mask": "Clothing","Duke's Herpes Medication": "Medical","Duke's Hammer": "Melee","Old Lady Mask": "Clothing","Exotic Gentleman Mask": "Clothing","Ginger Kid Mask": "Clothing","Young Lady Mask": "Clothing","Moustache Man Mask": "Clothing","Scarred Man Mask": "Clothing","Psycho Clown Mask": "Clothing","Nun Mask": "Clothing","Tyrosine": "Temporary","Keg of Beer": "Supply Pack","Glass of Beer": "Alcohol","Six-Pack of Alcohol": "Supply Pack","Six-Pack of Energy Drink": "Supply Pack","Rosary Beads": "Enhancer","Piggy Bank": "Special","Empty Vial": "Other","Vial of Blood": "Other","Vial of Urine": "Other","Vial of Saliva": "Other","Questionnaire": "Other","Agreement": "Other","Perceptron : Calibrator": "Other","Donald Trump Mask '16": "Clothing","Yellow Snowman '16": "Collectible","Nock Gun": "Primary","Beretta Pico": "Secondary","Riding Crop": "Melee","Sand": "Material","Sweatpants": "Clothing","String Vest": "Clothing","Black Oxfords": "Clothing","Rheinmetall MG 3": "Primary","Homemade Pocket Shotgun": "Secondary","Madball": "Melee","Nail Bomb": "Temporary","Classic Fedora": "Clothing","Pinstripe Suit Trousers": "Clothing","Duster": "Clothing","Tranquilizer Gun": "Secondary","Bolt Gun": "Melee","Scalpel": "Melee","Nerve Gas": "Temporary","Kevlar Lab Coat": "Defensive","Loupes": "Clothing","Sledgehammer": "Melee","Wifebeater": "Clothing","Metal Detector": "Tool","Cemetery Key": "Tool","Questionnaire : Completed": "Other","Agreement : Signed": "Other","Spray Paint : Black": "Material","Spray Paint : Red": "Material","Spray Paint : Pink": "Material","Spray Paint : Purple": "Material","Spray Paint : Blue": "Material","Spray Paint : Green": "Material","Spray Paint : White": "Material","Spray Paint : Orange": "Material","Salt Shaker": "Other","Poison Mistletoe": "Special","Santa's List '17": "Collectible","Soapbox": "Collectible","Turkey Baster": "Other","Elon Musk Mask '17": "Clothing","Love Juice": "Drug","Bug Swatter": "Melee","Nothing": "Collectible","Bottle of Green Stout": "Alcohol","Prototype": "Secondary","Rotten Apple": "Other","Festering Chicken": "Other","Moldy Pizza": "Other","Smelly Cheese": "Other","Sour Milk": "Other","Stale Bread": "Other","Spoiled Fish": "Other","Insurance Policy": "Material","Bank Statement": "Material","Car Battery": "Other","Scrap Metal": "Other","Torn City Times": "Tool","Magazine": "Other","Umbrella": "Other","Travel Mug": "Other","Headphones": "Other","Mix CD": "Other","Lost and Found Office Key": "Tool","Cosmetics Case": "Other","Phone Card": "Other","Subway Pass": "Other","Bottle Cap": "Other","Silver Coin": "Other","Silver Bead": "Other","Lucky Quarter": "Other","Daffodil": "Flower","Bunch of Carnations": "Flower","White Lily": "Flower","Funeral Wreath": "Flower","Car Keys": "Other","Handkerchief": "Tool","Candle": "Material","Paper Bag": "Collectible","Tin Can": "Other","Betting Slip": "Collectible","Fidget Spinner": "Collectible","Majestic Moose": "Collectible","Lego Wonder Woman": "Collectible","CR7 Doll": "Collectible","Stretch Armstrong Doll": "Collectible","Beef Femur": "Collectible","Snake's Fang": "Collectible","Icey Igloo": "Collectible","Federal Jail Key": "Collectible","Halloween Basket : Spooky": "Special","Michael Myers Mask '18": "Clothing","Toast Jesus '18": "Collectible","Cheesus '18": "Collectible","Bottle of Christmas Spirit": "Alcohol","Scammer in the Slammer '18": "Collectible","Gronch Mask '18": "Clothing","Baseball Cap": "Clothing","Bermudas": "Clothing","Blouse": "Clothing","Boob Tube": "Clothing","Bush Hat": "Clothing","Camisole": "Clothing","Capri Pants": "Clothing","Cardigan": "Clothing","Cork Hat": "Clothing","Crop Top": "Clothing","Fisherman Hat": "Clothing","Gym Shorts": "Clothing","Halterneck": "Clothing","Raincoat": "Clothing","Pantyhose": "Clothing","Pencil Skirt": "Clothing","Peplum Top": "Clothing","Polo Shirt": "Clothing","Poncho": "Clothing","Puffer Vest": "Clothing","Mackintosh": "Clothing","Shorts": "Clothing","Skirt": "Clothing","Travel Socks": "Clothing","Turtleneck": "Clothing","Yoga Pants": "Clothing","Bronze Racing Trophy": "Collectible","Silver Racing Trophy": "Collectible","Gold Racing Trophy": "Collectible","Blank DVDs": "Material","Blank DVDs : 50": "Material","Chest Harness": "Clothing","Choker": "Clothing","Fishnet Stockings": "Clothing","Knee-high Boots": "Clothing","Lingerie": "Clothing","Mankini": "Clothing","Mini Skirt": "Clothing","Nipple Tassels": "Clothing","Bowler Hat": "Clothing","Fitted Shirt": "Clothing","Bow Tie": "Clothing","Neck Tie": "Clothing","Waistcoat": "Clothing","Blazer": "Clothing","Suit Trousers": "Clothing","Derby Shoes": "Clothing","Smoking Jacket": "Clothing","Monocle": "Clothing","Bronze Microphone": "Collectible","Silver Microphone": "Collectible","Gold Microphone": "Collectible","Paint Mask": "Enhancer","Ladder": "Tool","Wire Cutters": "Tool","Ripped Jeans": "Clothing","Bandit Mask": "Clothing","Bottle of Moonshine": "Alcohol","Can of Goose Juice": "Energy Drink","Can of Damp Valley": "Energy Drink","Can of Crocozade": "Energy Drink","Fur Coat": "Clothing","Fur Scarf": "Clothing","Fur Hat": "Clothing","Platform Shoes": "Clothing","Silver Flats": "Clothing","Crystal Bracelet": "Jewelry","Cocktail Ring": "Jewelry","Sun Hat": "Clothing","Square Sunglasses": "Clothing","Statement Necklace": "Jewelry","Floral Dress": "Clothing","Shrug": "Clothing","Eye Patch": "Clothing","Halloween Basket : Creepy": "Special","Halloween Basket : Freaky": "Special","Halloween Basket : Frightful": "Special","Halloween Basket : Haunting": "Special","Halloween Basket : Shocking": "Special","Halloween Basket : Terrifying": "Special","Halloween Basket : Horrifying": "Special","Halloween Basket : Petrifying": "Special","Halloween Basket : Nightmarish": "Special","Blood Bag : Irradiated": "Medical","Jigsaw Mask '19": "Clothing","Reading Glasses": "Clothing","Chinos": "Clothing","Collared Shawl": "Clothing","Pleated Skirt": "Clothing","Flip Flops": "Clothing","Bingo Visor": "Clothing","Cover-ups": "Clothing","Sandals": "Clothing","Golf Socks": "Clothing","Flat Cap": "Clothing","Slippers": "Clothing","Bathrobe": "Clothing","Party Hat '19": "Clothing","Badge : 15th Anniversary": "Clothing","Birthday Cupcake": "Candy","Strippogram Voucher": "Special","Dong : Thomas": "Collectible","Dong : Greg": "Collectible","Dong : Effy": "Collectible","Dong : Holly": "Collectible","Dong : Jeremy": "Collectible","Anniversary Present": "Supply Pack","Greta Mask '19": "Clothing","Anatoly Mask '19": "Clothing","Santa Beard": "Clothing","Bag of Humbugs": "Candy","Christmas Cracker": "Special","Special Snowflake": "Collectible","Concussion Grenade": "Temporary","Paper Crown : Green": "Clothing","Paper Crown : Yellow": "Clothing","Paper Crown : Red": "Clothing","Paper Crown : Blue": "Clothing","Denim Shirt": "Clothing","Denim Vest": "Clothing","Denim Jacket": "Clothing","Denim Jeans": "Clothing","Denim Shoes": "Clothing","Denim Cap": "Clothing","Bread Knife": "Melee","Semtex": "Temporary","Poison Umbrella": "Melee","Millwall Brick": "Melee","Gentleman Cache": "Supply Pack","Gold Chain": "Jewelry","Snapback Hat": "Clothing","Saggy Pants": "Clothing","Oversized Shirt": "Clothing","Basketball Shirt": "Clothing","Parachute Pants": "Clothing","Tube Dress": "Clothing","Gold Sneakers": "Clothing","Shutter Shades": "Clothing","Silver Hoodie": "Clothing","Bucket Hat": "Clothing","Puffer Jacket": "Clothing","Durag": "Clothing","Onesie": "Clothing","Baseball Jacket": "Clothing","Braces": "Clothing","Panama Hat": "Clothing","Pipe": "Clothing","Shoulder Sweater": "Clothing","Sports Jacket": "Clothing","Old Wallet": "Supply Pack","Cardholder": "Supply Pack","Billfold": "Supply Pack","Coin Purse": "Supply Pack","Zip Wallet": "Supply Pack","Clutch": "Supply Pack","Credit Card": "Tool","Lipstick": "Other","Driver's License": "Other","Tampon": "Other","Receipt": "Other","Family Photo": "Other","Lint": "Other","Handcuffs": "Other","Lubricant": "Other","Hit Contract": "Other","Syringe": "Other","Spoon": "Other","Cell Phone": "Other","Assless Chaps": "Clothing","Opera Gloves": "Clothing","Booty Shorts": "Clothing","Collar": "Clothing","Ball Gag": "Clothing","Blindfold": "Clothing","Maid Uniform": "Clothing","Maid Hat": "Clothing","Ball Gown": "Clothing","Fascinator Hat": "Clothing","Wedding Dress": "Clothing","Wedding Veil": "Clothing","Head Scarf": "Clothing","Nightgown": "Clothing","Pullover": "Clothing","Elegant Cache": "Supply Pack","Naughty Cache": "Supply Pack","Elderly Cache": "Supply Pack","Denim Cache": "Supply Pack","Wannabe Cache": "Supply Pack","Cutesy Cache": "Supply Pack","Armor Cache": "Supply Pack","Melee Cache": "Supply Pack","Small Arms Cache": "Supply Pack","Medium Arms Cache": "Supply Pack","Heavy Arms Cache": "Supply Pack","Spy Camera": "Tool","Card Programmer": "Tool","Card Skimmer": "Tool","Tutu": "Clothing","Knee Socks": "Clothing","Kitty Shoes": "Clothing","Cat Ears": "Clothing","Bunny Ears": "Clothing","Puppy Ears": "Clothing","Heart Sunglasses": "Clothing","Hair Bow": "Clothing","Lolita Dress": "Clothing","Unicorn Horn": "Clothing","Check Skirt": "Clothing","Polka Dot Dress": "Clothing","Ballet Shoes": "Clothing","Dungarees": "Clothing","Tights": "Clothing","Pennywise Mask '20": "Clothing","Tiger King Mask '20": "Clothing","Disposable Mask": "Clothing","Chin Diaper": "Clothing","Tighty Whities": "Clothing","Tangerine": "Other","Helmet of Justice": "Collectible","Broken Bauble": "Other","Purple Easter Egg": "Booster","Ski Mask": "Clothing","Bunny Nose": "Clothing","SMAW Launcher": "Secondary","China Lake": "Secondary","Milkor MGL": "Secondary","PKM": "Primary","Negev NG-5": "Primary","Stoner 96": "Primary","Meat Hook": "Melee","Cleaver": "Melee","M'aol Visage": "Defensive","M'aol Spathe": "Defensive","M'aol Britches": "Defensive","M'aol Hooves": "Defensive","M'aol Clawshields": "Defensive","M'aol Wings": "Clothing","Ladso Eye": "Enhancer","M'aol Tentacle": "Enhancer","Sylo Tooth": "Enhancer","Crystalline Falcata": "Melee","Starshield Breastplate": "Defensive","Stygian Darkness": "Temporary","Arca Fortunae": "Supply Pack","Sandworm Mask '21": "Clothing","Party Popper": "Temporary","Eye Bleach": "Special","Prince Philip Mask '21": "Clothing","Krampus Mask '21": "Clothing","Head Bandage": "Clothing","Medical Eye Patch": "Clothing","Knee Brace": "Clothing","Band-Aids": "Clothing","Torso Bandage": "Clothing","Prosthetic Arm": "Clothing","Prosthetic Leg": "Clothing","Formaldehyde": "Other","Hook Hand": "Clothing","Plaster Cast Leg": "Clothing","Plaster Cast Arm": "Clothing","Neck Brace": "Clothing","Halo Vest": "Clothing","Crutches": "Clothing","Medical Diaper": "Clothing","Hospital Gown": "Clothing","Sticky Notes": "Other","Casket": "Other","Nitrous Tank": "Other","Rope": "Material","Window Breaker": "Tool","Lockpicks": "Tool","Skeleton Key": "Tool","Wrench": "Temporary","Truck Nuts": "Other","Thimble": "Tool","Beach Ball": "Other","Hunting Trophy": "Other","Hoe": "Other","Fishing Rod": "Other","Bleach": "Material","Lye": "Material","Towel": "Other","Scissors": "Tool","Clippers": "Other","Shaving Foam": "Other","Oxygen Tank": "Other","Massage Oil": "Other","Jigsaw Puzzle": "Other","Picture Frame": "Other","Cigar Cutter": "Other","Ash Tray": "Other","Bowling Trophy": "Other","Fertilizer": "Other","Igniter Cord": "Other","Bond Paper": "Material","Remote Detonator": "Other","Golf Club": "Melee","Garden Gnome": "Other","Wheelbarrow": "Tool","Shovel": "Tool","Blanket": "Other","Crockpot": "Other","Plunger": "Other","Silver Cutlery Set": "Other","Stash Box": "Supply Pack","Perfume": "Other","Croquet Set": "Other","Horseshoe": "Other","Persian Rug": "Other","Typewriter": "Tool","Chandelier": "Other","Inkwell": "Material","Bull Semen": "Other","Ammonia": "Other","Hydrochloric Acid": "Material","Anchor": "Material","Boat Engine": "Other","Brass Ingot": "Material","Tractor Part": "Other","Tire": "Other","Bone Saw": "Melee","Machine Part": "Other","Cattle Prod": "Melee","Binoculars": "Tool","Razor Wire": "Other","Stamp Collection": "Other","Bucket": "Tool","Urea": "Other","Phosphorus": "Other","Potassium Nitrate": "Other","Grain": "Other","Shampoo": "Other","Detergent": "Other","Vitamins": "Other","Cough Syrup": "Other","Paper Towels": "Material","Pepper Mill": "Other","Toothbrush": "Other","Toothpaste": "Other","Mouthwash": "Other","Mop": "Other","Broom": "Other","Floor Cleaner": "Other","Model Spine": "Other","Massage Table": "Other","Scalp Massager": "Other","Dentures": "Other","Gold Tooth": "Other","Bleaching Tray": "Other","Dental Mirror": "Other","Paperclips": "Other","Stapler": "Other","Hole Punch": "Other","Notepad": "Other","Permanent Marker": "Tool","Toner": "Material","Bloody Apron": "Clothing","Bone": "Other","Injury Cache": "Supply Pack","Glitter Bomb": "Temporary","Hell Priest Mask '22": "Clothing","Ban Hammer": "Melee","Donkey Adoption Certificate": "Collectible","Tin of Treats": "Supply Pack","Queen Elizabeth II Mask '22": "Clothing","eCPU": "Tool","CPU": "Tool","HPCPU": "Tool","Computer Fan": "Tool","Water Block": "Tool","Heat Sink": "Tool","PSU": "Tool","Sentinel Helmet": "Defensive","Sentinel Apron": "Defensive","Sentinel Pants": "Defensive","Sentinel Boots": "Defensive","Sentinel Gloves": "Defensive","Chocolate Egg": "Candy","Cassock": "Clothing","Embosser": "Tool","Hot Foil Stamper": "Tool","Sewing Kit": "Tool","Crucible": "Tool","Glue": "Material","Crushed Enamel": "Material","Blowtorch": "Material","Adhesive Plastic": "Material","Cardstock": "Material","Royal Tiara": "Collectible","Rhino’s Horn": "Collectible","Welding Jacket": "Collectible","Iron Man Helmet": "Collectible","Printer": "Tool","Graver": "Tool","Perforator": "Tool","Fountain Pen": "Tool","Hand Drill": "Tool","Wax Seal Stamp": "Tool","Bonded Latex": "Material","Grinding Stone": "Tool","Parking Permit": "Other","Birth Certificate": "Other","Diploma": "Other","Polishing Pad": "Tool","Bank Check": "Other","Double Cut File": "Tool","Concert Ticket": "Other","Travel Visa": "Other","Passport": "Other","Medical Bill": "Material","Prescription": "Other","Magnifying Glass": "Enhancer","Certificate Seal": "Material","Aluminum Plate": "Material","License Plate": "Other","Police Badge": "Tool","Flashlight": "Enhancer","Collectible Cache": "Supply Pack","Megaphone": "Enhancer","Office Chair": "Enhancer","Vanguard Respirator": "Defensive","Vanguard Body": "Defensive","Vanguard Pants": "Defensive","Vanguard Boots": "Defensive","Vanguard Gloves": "Defensive","Evil Winnie Mask '23": "Clothing","Dog Treats": "Material","Net": "Tool","Ipecac Syrup": "Medical","Yorkshire Pudding": "Collectible","Chemistry Set": "Collectible","Glitter Pickle": "Collectible","Turkey Head '23": "Clothing","Rudolph's Nose": "Clothing","Reindeer Antlers": "Clothing","Chakra Stones": "Collectible","Toy Taco Truck": "Collectible","Blacklight": "Collectible","Robot Bug Toys": "Collectible","Master of The Universe": "Collectible","Dilly the Dachshund": "Collectible","Cuticorn": "Collectible","Davy Jones' Footlocker": "Collectible","Origami Crane": "Collectible","ATM Key": "Tool","RF Detector": "Tool","ID Badge": "Tool","Lanyard": "Material","DSLR Camera": "Tool","Dyno Sac": "Enhancer","Nol Cloachra": "Enhancer","Asmol Knuckle": "Enhancer","Andyman's Keepsake": "Collectible","Baldr's Keepsake": "Collectible","CRLF's Keepsake": "Collectible","Proxima's Keepsake": "Collectible","mug's Keepsake": "Collectible","BambinaDuckie's Keepsake": "Collectible","bogie's Keepsake": "Collectible","Evil-Duck's Keepsake": "Collectible","D3vl's Keepsake": "Collectible","MarlonBrando's Keepsake": "Collectible","Champion's Keepsake": "Collectible","Sweeney_Todd's Keepsake": "Collectible","YoungBlaze's Keepsake": "Collectible","IceColdCola's Keepsake": "Collectible","Z_junior's Keepsake": "Collectible","BodyBagger's Keepsake": "Collectible","King_Ace's Keepsake": "Collectible","Deft's Keepsake": "Collectible","RGiskard's Keepsake": "Collectible","Hank's Keepsake": "Collectible","HT-Supermikk's Keepsake": "Collectible","someone's Keepsake": "Collectible","CockyNudist's Keepsake": "Collectible","Rosie's Keepsake": "Collectible","Data's Keepsake": "Collectible","Astral's Keepsake": "Collectible","Stormcast's Keepsake": "Collectible","JamilB's Keepsake": "Collectible","Kivou's Keepsake": "Collectible","DeKleineKobini's Keepsake": "Collectible","IceBlueFire's Keepsake": "Collectible","Mauk's Keepsake": "Collectible","Mephiles' Keepsake": "Collectible","Manuito's Keepsake": "Collectible","Ara's Keepsake": "Collectible","Body's Keepsake": "Collectible","aurigus' Keepsake": "Collectible","Quacks' Keepsake": "Collectible","Aethwynn's Keepsake": "Collectible","-Clansdancer's Keepsake": "Collectible","LeukyBear's Keepsake": "Collectible","is0lati0n's Keepsake": "Collectible","Zip Ties": "Material","Shaped Charge": "Material","Core Drill": "Tool","Halloween Basket : Apocalyptic": "Special","Hannibal Mask '24": "Clothing","Devil Horns": "Clothing","Caganer Figurine": "Collectible","Kevin McCallister Mask '24": "Clothing","Oversized Christmas Sweater": "Clothing","Las Vegas Shot Glass '23": "Collectible","New Orleans Shot Glass '24": "Collectible","Bolas": "Temporary","Kerosene": "Material","Diesel": "Material","Hydrogen Tank": "Material","Methane Tank": "Material","Thermite": "Material","Magnesium Shavings": "Material","Fire Extinguisher": "Material","Mermaid Tiara": "Collectible"}
xhook.after(function(request, response) {
if(request.url.match(/&step=mapData/)){
city = JSON.parse(response.data);
waitForKeyElements(".leaflet-layer", build)
}
})
function build(){
if(!localStorage.hasOwnProperty("mapApi")){
$($('ul[class*="map-symbols"]')[0].previousElementSibling).append('<span id=apiAsk class="symPane" data-att=0 style="float:right; margin-right:10px;">Add api key</span>')
$($('ul[class*="map-symbols"]')[0].previousElementSibling).append('<span id=apiAsk class="symPane" style="display:none; float:right; margin-right:10px;">Change api key</span>')
}else{
$($('ul[class*="map-symbols"]')[0].previousElementSibling).append('<span id=apiAsk class="symPane" style="float:right; margin-right:10px;">Change api key</span>')
}
$('span[id*="apiAsk"]').on('click', function(){
var apiKey = localStorage.setItem("mapApi", prompt("Enter api key"))
if(this.attributes[2].nodeValue == 0){
$('span[id*="apiAsk"]').toggle()
}
})
$($('ul[class*="map-symbols"]')[0].previousElementSibling).append(' - <span id="hideLeaf" class="symPane">Hide all</span>')
$($('ul[class*="map-symbols"]')[0].previousElementSibling).append('<span id="hideLeaf" class="symPane" style="display:none">Show all</span>')
if($('input[id*="view-switcher"]')[0]?.checked == true || $('#hideLeaf').length){
var racket = {}
var territories = {}
var items = sorti('title',JSON.parse(atob(city.territoryUserItems)))
$('ul[class*="map-symbols"]').after('<div id=listcont><div id=listSelections class="title-black top-round m-top10"><span id=select name=items class="selectedtab">Items </span> / <span id=select name=rackets>Rackets </span> / <span id=select name=wars>Wars</span></div><table id=items name=table class="cont-gray10 bottom-round activetab"><thead class="tab"><tr><th id=type colspan=6>Items</th></tr><tbody id=idata class="tab" style="display:block;"></tbody></table><table id=rackets name=table class="cont-gray10 bottom-round inactive"><thead class="tab"><tr><th id=type>Type</th><th id=level>Level</th><th id=description>Description</th><th id=ter>Territory</th><th id=owner>Owner</th></tr></thead><tbody id=rdata class="tab"></tbody></table><table id=wars name=table class="cont-gray10 bottom-round inactive"><thead class="tab"><tr><th id=territory>Territory</th><th id=attacker>Attacker</th><th>Progress</th><th id=defender>Defender</th></tr></thead><tbody id=wdata class="tab"></tbody></table></div>')
$.each(torn.get('collection'), function(i, v){
if(this.factionID){
racket[parseInt(this.path.attributes[0].nodeValue)] = [this.factionID]
}
else{
racket[parseInt(this.path.attributes[0].nodeValue)] = ['na']
}
})
$.each(territories_shapes, function(i, v){
territories[this[4]] = this[9]
})
$.each(standard_shapes, function(i, v){
territories[this[4]] = this[9]
})
$.each(city.rackets, function(i, v){
racket[city.rackets[i].territoryID].push('true',city.rackets[i].typeName,city.rackets[i].level,city.rackets[i].description)
$('tbody[id*="rdata"]').append('<tr><td>'+city.rackets[i].typeName+'</td><td>'+city.rackets[i].level+'</td><td>'+city.rackets[i].description+'</td><td><a id="flink" href="https://www.torn.com/city.php#terrName='+territories[city.rackets[i].territoryID]+'">'+territories[city.rackets[i].territoryID]+'</td><td>'+torn.getFactionName(racket[city.rackets[i].territoryID][0])+'</td></tr>')
})
if(items.length > 0){
var types = []
$.each(items, function(i, v){
$('tbody[id*="idata"]').append('<tr style="display:inline-block; border:none!important"><td class="cell" data-type="'+itemList[items[i].title]+'" data-id='+[i]+' style="border: none!important">'+items[i].title+'</td></tr>')
if(types.indexOf(itemList[items[i].title]) == -1){
types.push(itemList[items[i].title])
}
})
$('table[id$="items"]').prepend('<div class="itemDropdown"><button class="dropbtn" style="color: var(--default-color)">Item Types</button><div class="types"></div></div>')
$.each(types, function(i, v){
$('div[class$="types"]').append('<div><input type="checkbox" id="itemType_'+v+'" name="'+v+'" value="'+v+'"><label for="itemType_'+v+'">'+v+'</label></div>')
})
$('input[id*="itemType_"]').on('click', function(event) {
$('input[id*="itemType_"]').not(this).prop('checked', false);
if($(this).is(':checked')){
$('#items tbody tr td').not($('#items tbody tr td[data-type="'+this.name+'"]')).parent().hide()
$('#items tbody tr td[data-type="'+this.name+'"]').parent().show()
}
else{
$('#items tbody tr td').parent().show()
}
})
}
if(localStorage.hasOwnProperty("mapApi") && localStorage.getItem("mapApi").length > 0 ){
var getapiData = new Promise((resolve, reject) => {
var apiData = getAction({
type: "GET",
action: "https://api.torn.com/torn/?selections=territorywars&key="+localStorage.getItem("mapApi"),
})
resolve(apiData)
})
Promise.all([getapiData]).then(([apiData]) => {
if(apiData.hasOwnProperty("error")){
alert('Error code - '+apiData.error.code+" | "+apiData.error.error)
}else{
$.each(city.factionOwnTerritories.terrInWars, function(i, v){
if(localStorage.getItem("mapApi").length > 0 && !apiData.hasOwnProperty("error")){
var cdt = new Date(JSON.parse(apiData)['territorywars'][territories[city.factionOwnTerritories.terrInWars[i].territoryID]].ends*1000).toLocaleString("en-US", {timeZone: 'UTC'})
$($('td[data-ids*="'+city.factionOwnTerritories.terrInWars[i].territoryID+'"]')).prepend('<div class="addTime" data-countdown="'+cdt+'"></div>')
}
})
}
$('[data-countdown]').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countd(finalDate, function(event) {
$this.html(event.strftime('%D:%H:%M:%S'));
})
})
})
}
$.each(city.factionOwnTerritories.terrInWars, function(i, v){
if(racket[city.factionOwnTerritories.terrInWars[i].territoryID][1] == 'true'){
$('tbody[id*="wdata"]').append('<tr><td><span class=wImg><a id="flink" href="https://www.torn.com/city.php#terrName='+territories[city.factionOwnTerritories.terrInWars[i].territoryID]+'">'+territories[city.factionOwnTerritories.terrInWars[i].territoryID]+'</a><img id=rImg src="images/v2/city/citymap/rackets/street_surgeon_level_5.svg" title="<b>'+racket[city.factionOwnTerritories.terrInWars[i].territoryID][2]+' '+racket[city.factionOwnTerritories.terrInWars[i].territoryID][3]+'</b><br>'+racket[city.factionOwnTerritories.terrInWars[i].territoryID][4]+'"><td>'+torn.getFactionName(city.factionOwnTerritories.terrInWars[i].attackFaction)+'</td><td data-ids='+city.factionOwnTerritories.terrInWars[i].territoryID+'><div id=warProgress data-id='+city.factionOwnTerritories.terrInWars[i].territoryID+' style="margin-bottom: 1px">Show progress bar</div></td><td>'+torn.getFactionName(city.factionOwnTerritories.terrInWars[i].defendFaction)+'</span></td></tr>')
}else{
$('tbody[id*="wdata"]').append('<tr><td><a id="flink" href="https://www.torn.com/city.php#terrName='+territories[city.factionOwnTerritories.terrInWars[i].territoryID]+'">'+territories[city.factionOwnTerritories.terrInWars[i].territoryID]+'</a><td>'+torn.getFactionName(city.factionOwnTerritories.terrInWars[i].attackFaction)+'</td><td data-ids='+city.factionOwnTerritories.terrInWars[i].territoryID+'><div id=warProgress data-id='+city.factionOwnTerritories.terrInWars[i].territoryID+' style="margin-bottom: 1px">Show progress bar</div></td><td>'+torn.getFactionName(city.factionOwnTerritories.terrInWars[i].defendFaction)+'</td></tr>')
}
})
$('div[id*="warProgress"]').on('click', function(){
var getUpdate = new Promise((resolve, reject) => {
var update = getAction({
type: "POST",
action: "war.php",
data: {
step: 'getWarInfo',
terr: $(this)[0].attributes[1].nodeValue
}
})
resolve(update)
})
Promise.all([getUpdate]).then(([update]) => {
if($($(this)[0].parentNode).find('.addTime').length == 1){
$($(this)[0].parentNode).find('.addTime').wrap('<div id="terrIcons" style="display: flex; align-items: center"></div>')
$($(this)[0].parentNode).find('#terrIcons').prepend('<div style="display: inline-flex; align-items: center; min-width: 37px"><i class="faction-attacking"></i>'+JSON.parse(update).count1+'</div>')
$($(this)[0].parentNode).find('#terrIcons').append('<div style="display: inline-flex; align-items: center; min-width: 37px; justify-content: flex-end">'+JSON.parse(update).count2+'<i class="faction-defending" style="background-position-y: -9px;"></i></div>')
}else{
$($(this)[0].parentNode).prepend('<div id="terrIcons" style="display: flex; align-items: center"><div style="display: inline-flex; align-items: center; min-width: 37px"><i class="faction-attacking"></i>'+JSON.parse(update).count1+'</div><div class="addTime"></div><div style="display: inline-flex; align-items: center; min-width: 37px; justify-content: flex-end">'+JSON.parse(update).count2+'<i class="faction-defending" style="background-position-y: -9px;"></i></div></div>')
}
var diff = Math.abs(JSON.parse(update).count1 - JSON.parse(update).count2);
var arrowSpeed = (diff >= 5 ? 'fast' : (diff >= 3 ? 'medium' : (diff >= 1 ? 'slow' : '')))
$($(this)[0].parentNode).append('<div class="advantage-bar" data-terrId='+$(this)[0].attributes[1].nodeValue+'><div id=eAdd class="enemy" style="width: '+JSON.parse(update).scorePercent+'%"></div><div id=yAdd class="your"></div></div>')
if(JSON.parse(update).count1 > JSON.parse(update).count2){
$($('div[data-terrId*="'+$(this)[0].attributes[1].nodeValue+'"]')[0].children[0]).append('<div class="animation '+arrowSpeed+'"><div class="arrows"></div></div>')
}else{
$($('div[data-terrId*="'+$(this)[0].attributes[1].nodeValue+'"]')[0].children[1]).append('<div class="animation '+arrowSpeed+'"><div class="arrows"></div></div>')
}
$(this).remove()
})
})
$('span[id*="select"]').on('click', function(){
$('span[id*="select"]').removeClass('selectedtab')
$(this).addClass('selectedtab')
$('table[name*="table"]').removeClass('activetab').addClass('inactive');
$('table[id*="'+$(this)[0].attributes[1].nodeValue+'"]').addClass('activetab').removeClass('inactive')
})
document.querySelectorAll('th').forEach(th => th.addEventListener('click', (() => {
sort(th)
})))
$('a[id*="flink"]').on('click', function(){
document.documentElement.scrollTop = 0
})
$('tbody[id*="idata"]').find('td').on('click', function(){
var td = $(this)
const XHR = new XMLHttpRequest(),
data = new FormData();
data.append('td', btoa(items[$(this)[0].attributes[2].nodeValue].c['x']+'O'+items[$(this)[0].attributes[2].nodeValue].c['y']+'O'+items[$(this)[0].attributes[2].nodeValue].id+'O'+items[$(this)[0].attributes[2].nodeValue].ts));
data.append('step', 'uif');
XHR.addEventListener('load', function(event) {
if(JSON.parse(event.target.response)['success'] == true){
td[0].textContent = td[0].textContent+' Picked Up'
td.css("color","#008000")
setTimeout(() => {td[0].parentElement.remove(); }, 2000);
}
});
XHR.addEventListener('error', function(event) {
console.log(event);
});
XHR.open('POST', 'https://www.torn.com/city.php?rfcv=undefined');
XHR.setRequestHeader('X-Requested-With', 'XMLHttpRequest')
XHR.send(data);
})
sort(document.querySelector("#level"))
}else{
$('div[class*="territory-info-toggle"]').before('<div id=alert><div class="white-grad border-round m-top10 p10">Enable full map and refresh for lists</div>')
}
$('span[id*="hideLeaf"]').on('click', function(){
$('img[class*="standard-object-marker"]').toggle();
$('span[id*="hideLeaf"]').toggle()
})
}
function sorti (prop, arr) {
prop = prop.split('.');
var len = prop.length;
arr.sort(function (a, b) {
var i = 0;
while( i < len ) { a = a[prop[i]]; b = b[prop[i]]; i++; }
if (a < b) {
return -1;
} else if (a > b) {
return 1;
} else {
return 0;
}
});
return arr;
};
function sort(th){
const getCellValue = (tr, idx) => tr.children[idx].innerText || tr.children[idx].textContent;
const comparer = (idx, asc) => (a, b) => ((v1, v2) => v1 !== '' && v2 !== '' && !isNaN(v1) && !isNaN(v2) ? v1 - v2 : v1.toString().localeCompare(v2))(getCellValue(asc ? b : a, idx), getCellValue(asc ? a : b, idx));
const table = th.closest('table');
const tbody = table.querySelector('tbody');
Array.from(tbody.querySelectorAll('tr'))
.sort(comparer(Array.from(th.parentNode.children).indexOf(th), this.asc = !this.asc))
.forEach(tr => tbody.appendChild(tr) );
}