[Userscript] Torn Treemap
-
Thread created on 22:50:41 - 10/02/21 (4 years ago)|Last replied 20:56:12 - 18/03/25 (1 month ago)Torn Treemap is out now!
What is Torn Treemap?
Torn Treemap adds a graph (called a treemap lol) to your items page that breaks down your inventory by total value of items used, as shown above.
Why should I use it?
Good question! I developed Torn Treemap to help me figure out which items were most valuable in my crowded inventory, to sell off for funds. It will be useful to you as well for that reason.
Isn't it very big?
Torn Treemap resizes with the width of your items page, and can be hidden from view when you don't need it. Simple!
How do I use it?- Ensure that you have Greasemonkey installed.
- Navigate to https://gist.github.com/selwynsimsek/2cecf8cbe5fe32f17eebe2d341a9acfa and click 'Raw' on the top right hand corner.
- A dialog to install the script should appear.
- After you install the script using Greasemonkey, Torn Treemap will be ready to use.
- On first use, you will be prompted for your API key - make sure you have this handy.
Good question! Torn Treemap relies on a graph plotting library, called D3, that Greasy Fork does not allow their uploaded scripts to use. For this reason, Torn Treemap is hosted on Github for the moment. In general, you should not install scripts without knowing what they do. Torn Treemap's source code is available for inspection so you know what you are getting.
Is Torn Treemap compatible with Tampermonkey or other userscript managers?
Torn Treemap should be compatible with other userscript managers, but it has not been tested yet. It is possible that some issues exist with different managers. If you can, use Greasemonkey for best results since this is what Torn Treemap has been developed for.
Enjoy! Comments, suggestions and feedback welcome.Last edited by selwyn on 22:54:51 - 10/02/21 (4 years ago) -
-
Posted on 23:05:35 - 10/02/21 (4 years ago)Post link copied to clipboard Copy post linkTested and working in tampermonkey. Using direct code into "new script" on tamper monkey and works a charm.
-
-
Posted on 06:26:58 - 11/02/21 (4 years ago)Post link copied to clipboard Copy post linkexcellent [ edited from very good]Last edited by csi21 on 06:27:48 - 11/02/21 (4 years ago)
-
-
Posted on 08:37:36 - 16/02/21 (4 years ago)Post link copied to clipboard Copy post linkWhats the issue Tuna ? also where are you trying to use it
-
-
Posted on 23:01:46 - 16/02/21 (4 years ago)Post link copied to clipboard Copy post linkits not working for me either, the treemap dropdown shows, but nothing is visible
-
-
Posted on 08:37:16 - 17/02/21 (4 years ago)Post link copied to clipboard Copy post linkWhat Browser are you using and what script manager ?
-
-
Posted on 13:44:30 - 17/02/21 (4 years ago)Post link copied to clipboard Copy post linkim using chrome on this pc were i tried the script using tampermonkey 4.11
-
-
Posted on 18:30:15 - 17/02/21 (4 years ago)Post link copied to clipboard Copy post linkworks for me but i used code direct into tamper monkey.
what process did you use to install the script ? -
-
Posted on 19:01:08 - 18/02/21 (4 years ago)Post link copied to clipboard Copy post linkthe scrripts showing errors and are still blaank...
https://prnt.sc/1003zjs
Tried manuel
https://prnt.sc/100404p
https://prnt.sc/10040w9 -
-
Posted on 07:38:01 - 19/02/21 (4 years ago)Post link copied to clipboard Copy post linkthanks for that ranger. ill go through it today with selwyn and take a look and try replicate any issues.
-
-
Posted on 15:50:14 - 26/02/21 (4 years ago)Post link copied to clipboard Copy post linkHi R4NG3R85, thanks for your patience.
We think that the graph is blank because Torn Treemap has not stored your API key correctly, either because it wasn't entered correctly or because of some other issue.
At the moment, Torn Treemap can't tell whether it has a working API key, so it gives a blank graph if it doesn't have one. We are planning an update to solve this.
But for the moment, you can fix the problem by doing one of the following things:- Uninstall Torn Treemap using Tampermonkey and then reinstall it, making sure you put the correct API key when prompted.
- If you don't mind editing the script, then replace line 305let apiKey = await GM.getValue('apiKey', 0);
withlet apiKey = "your-api-key-here"
Either of these things should work, if there is still a problem please post here and we will sort out the issue.
Thanks for trying out Torn Treemap -
-
Posted on 17:23:51 - 26/02/21 (4 years ago)Post link copied to clipboard Copy post linkI found an error in your script. for your names. you have "Cars" instead of "Car"
names = ["Book", "Energy Drink", "Booster", "Alcohol", "Artifact", "Melee", "Flower",
"Enhancer", "Medical", "Jewelry", "Virus", "Temporary", "Special", "Clothing",
"Secondary", "Drug", "Supply Pack", "Plushie", "Defensive", "Electronic", "Primary",
"Candy", "Other", "Cars", "Collectibles"
] -
-
Posted on 17:59:05 - 26/02/21 (4 years ago)Post link copied to clipboard Copy post linkGood spot! Thanks for informing us. This will be fixed in an upcoming release.
-
-
Posted on 19:30:11 - 27/02/21 (4 years ago)Post link copied to clipboard Copy post linkDA DA DA DAAAAAA :D That did the trick guys..
Thanks alot for the super troubleshooting you have provided
https://prnt.sc/108phjp -
-
Posted on 19:34:50 - 30/03/21 (4 years ago)Post link copied to clipboard Copy post linkTried to generate random colors per page load, to help grasp the item categories.
https://www.codepile.net/pile/Ov09RnX2
This include the following as well:- fix for the car string issue
- displaying market price alongside count of items
- some minor code refactoring.
-