SteamDatabase / BrowserExtension

💻 SteamDB's extension for Steam websites
https://steamdb.info/extension/
BSD 3-Clause "New" or "Revised" License
785 stars 59 forks source link
chrome-extension firefox-extension hacktoberfest opera-extension steam steamdb

SteamDB Extension

chrome users firefox users edge users

Adds SteamDB links on various pages in the Steam Community and Store. Also highlights owned and wished products on steamdb.info.

Major features

Links

There are no plans to support Safari at this time due to Apple's policies.

Contributing

This extension does not have any build steps, and you can simply load the folder on the extensions page of your browser.

When writing code, make sure to run our linter:

  1. Run npm install to install eslint
  2. Run npm test which should report warnings
  3. Run npm run fix which should automatically fix most of the reported warnings

Localization rules

Translate on Crowdin
Crowdin

To test a specific language in Chrome, see this link:
https://developer.chrome.com/docs/extensions/reference/api/i18n#how-to-set-browsers-locale

Making a release

Run npm run version 3.0.0 which updates manifest.json, creates a commit, creates a tag, and runs npm run build which creates a zip file with the release.

Trade offers support for for_item and my_item

This extension adds support for for_item and my_item parameters in /tradeoffer/new urls, these parameters will automatically add items to trade window upon page load.

Multiple parameters can be specified, a single parameter takes format of appid_contextid_assetid.

For example:

https://steamcommunity.com/tradeoffer/new?partner=[steamid]&for_item=753_6_1234
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&for_item=753_6_1234&for_item=753_6_5678
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&my_item=753_6_1234
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&my_item=753_6_1234&my_item=753_6_5678
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&for_item=753_6_1234&my_item=753_6_5678

Automatically open "grant an award" popup from a link using award

This extension adds support for award parameter in profile, workshop, and other published files such as screenshots.

Open the "grant an award" popup upon page load: https://steamcommunity.com/id/xpaw?award

Open popup and pre-select a specific award: https://steamcommunity.com/id/xpaw?award=17
In this case id 17 is "Take my points".

It works the same way for shared files: https://steamcommunity.com/sharedfiles/filedetails/?id=2935326022&award=17

License

Code in this repository is governed by a BSD-style license that can be found in the LICENSE file.