Mephiles / torntools_extension

A browser extension for Torn.com
GNU General Public License v3.0
106 stars 60 forks source link

Add a page jumper feature #760

Closed heyitsmdr closed 10 months ago

heyitsmdr commented 11 months ago

This adds a new "page jumper" feature which can be activated while anywhere on Torn.

Press Ctrl + K (on Windows) and ⌘ + K (on Mac) to open the page jumper. I chose this key combination since it is a common combination for some form of universal search (like right on GitHub with git repos).

Features

Demonstration

https://github.com/Mephiles/torntools_extension/assets/341416/4e2de5cd-a71b-471c-bb99-3b3fc49bf505

Settings Panel

Screenshot 2023-07-21 at 1 50 49 PM
Kwack-Kwack commented 11 months ago

Only had a very basic look, this looks really solid and I like this feature. Really, really like the look and feel of it.

Worth noting that binding this to Ctrl + K will override a native browser feature (at least in chrome, it jumps to the address bar to search google), however I agree that this keybind makes more sense than any alternative I can think of.

heyitsmdr commented 11 months ago

I added an additional feature that lets you <TAB> on Item Market to search the item market for a specific item. The market value displays next to each item, and as with pages, the default view will show you the top most recent item searches you've performed.

If you don't have torn data available (i.e. no API access), you won't have the ability to <TAB> on the Item Market entry, and it will appear as a normal page listing.

Demo:

https://github.com/Mephiles/torntools_extension/assets/341416/aa19c9cc-d2e1-49dc-88c2-f3de568a2405

Sashank999 commented 10 months ago

This is better suited as a userscript rather than as part of TornTools.