Giter VIP home page Giter VIP logo

steamcurrencyconverter's Introduction

SteamCurrencyConverter (SCC)

This is a userscript that converts the currency of the Steam store to your currency of choice.

⚠️ Disclaimer

  • SCC is not affiliated with Valve in any way. Use at your own risk.
  • SCC converts the currency of the Steam store to your currency of choice. It does not change the currency of your Steam wallet. If you buy something, you will still be charged in your steam store's currency. Use it only to get an idea of the price of the game in the currency you are most familiar with.
  • SCC converts all prices on the store page. This includes prices in the cart or on the checkout page. Even if new exchange rates are fetched daily, the exchange rates may be outdated.

How to use

  1. Install a userscript manager. I recommend Tampermonkey.
  2. Click on index.prod.user.js and install it.
  3. Reload the Steam store page. You should see the modal window below.

  1. Select your currency in the modal window.
  2. Click "Save".

The page will reload and the prices will be converted to your currency.

Development

  1. Allow Tampermonkey's access to local file URIs tampermonkey/faq
  2. Install deps with npm i or npm ci.
  3. npm run dev to start your development.

Now you will see 2 files in ./dist/

  • dist/index.dev.user.js: You should install this userscript in your browser. It's a simple loader that loads dist/index.debug.js on matched web page.
  • dist/index.debug.js: This is the development build with eval-source-map. It will be automatically loaded by dist/index.dev.user.js via @require file://.../dist/index.debug.js metadata. Don't add it to your userscript manager.

Livereload is enabled by default, use this Chrome extension.

NOTICE

Everytime you change your metadata config, you'll have to restart webpack server and install the newly generated dist/index.dev.user.js userscript in your browser again.

Just install the packages with npm and import them in your code, webpack will take care of the rest.

Build

npm run build

A userscript file will be generated in ./dist/ folder. You can install it in your browser.

Credits

Thanks to Trim21 for the userscript template.
Thanks to fawazahmed0 for the currency API.

steamcurrencyconverter's People

Contributors

janitorialmess avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.