gergelyszabo94 / csgo-trader-extension

CSGO Trader Browser Extension to help with CS:GO item trading, marketing and much more
https://csgotrader.app
GNU General Public License v3.0
211 stars 41 forks source link

Feature: Link to an item on csgofloat #446

Closed GODrums closed 2 years ago

GODrums commented 2 years ago

A very useful feature I had been missing in the past is the ability to find the corresponding csgofloat entry to an item in an inventory. Often times this can prove useful to find the previous owners (e.g. for contacting or history checks).

I would imagine this being a link to the csgofloat database with the float / paint parameters and (possibly) stickers set. A fitting place for such a link/button could be in the technical information, which are already provided by csgofloat anyways. Screenshot_221

As I am not sure how active your development is: I could self-assign this feature request, but it would take some time

gergelyszabo94 commented 2 years ago

Yeah, this could be done, I can see that the float db serach uses query params so it should be easy.

GODrums commented 2 years ago

Thanks for the fast response. Yes, exactly. In my experience a search with the basic technical data should be sufficient to narrow the query result down.

So something like this:

function getCsgofloatLink(item) {
   const csgofloat_url = `https://csgofloat.com/db?name=${item.name}&defIndex=${item.id}&paintIndex=${item.paintindex}&paintSeed=${item.paintseed}&category=${item.category}&min=${item.float_min}&max=${item.float_max}`;
   return (
      <div>
         <a href=${csgofloat_url} target="_blank">Find on csgofloat.com</a>
      </div>
   );
}