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
218 stars 42 forks source link

Add link to CS:GO Stash page when looking at an item on the steam market #402

Closed mbhound closed 2 years ago

mbhound commented 3 years ago

Say you were looking at the desert hydra and wanted to see what other skins were in the collection. If there was a link to the cs:go stash page to the desert hydra it would make it easy and quick to see what other skins were in that collection as well as other useful information of the gun such as the float range and prices of different wears.

gergelyszabo94 commented 3 years ago

I wanted to make this happen not long ago when I added linkt to the collection inside inventories. The problem is that it would only when English is the users' Steam language. To make it work for all languages we would have to gather a mapping of all the collections names for all languages. It's a lot of manual work.

hexiro commented 3 years ago

Looks like the market_hash_name is in english and market_name is in the user's specified language, so maybe this is possible?

image

the request being made here is GET https://steamcommunity.com/inventory/76561199033382814/730/2?l=dutch&count=75 if that context is needed.

gergelyszabo94 commented 3 years ago

Thanks for replying, it made me realize that I kind of misunderstood the request. A simple link to the csgostash page of the item should not be a problem. I thought he wants a link to the collection, which is problematic.

mbhound commented 3 years ago

I would think a link to the item would be best since you can still easily access the collection from the csgo stash item page.

gergelyszabo94 commented 2 years ago

Do you guys know if they have a link structure where the market hash name is enough? Because they have an id in the links and the name is also not the full name. Example: https://csgostash.com/skin/1469/AK-47-Leet-Museo

gergelyszabo94 commented 2 years ago

I also contacted csgostash about this.

gergelyszabo94 commented 2 years ago

They replied and said that they added this functionality so we can simply use the market hash name now. Examples: https://csgostash.com/markethash/Stockholm%202021%20Contenders%20Sticker%20Capsule https://csgostash.com/markethash/★%20StatTrak™%20Bowie%20Knife%20%7C%20Gamma%20Doppler%20%28Factory%20New%29 https://csgostash.com/markethash/Sticker%20%7C%20Crown%20%28Foil%29