/sg2o

Additional functionality for the new version of steamgifts.com.

Primary LanguageDartGNU General Public License v3.0GPL-3.0

SG₂O

An optimization script for Steamgifts to bring back the functionality of SG-Plus, written in Dart.

Instructions

To install the script, you need to have either Greasemonkey or Tampermonkey installed, depending on whether you're using Firefox or Chrome. Then just click on the following link:

Click to install

Instructions for developers

Install prerequisites

Install the Dart SDK on Manjaro/Arch:

pacman -S dart

This will also install tools like dart, dart2js and dartdevc.

webdev needs to be activated separately

dart pub global activate webdev

and add to your $HOME

export PATH="$PATH":"$HOME/.pub-cache/bin"

Install dependencies

dart pub get

Create a local file to test

To create a local .js file to test, use the Makefile:

make release

This will get all the dependencies, build the project and generate the local .js file.

Test the local file

To test the local .js file using either Chrome or Firefox. Don't forget to disable the script installed in Tampermonkey

Chrome

  • Open extensions page
  • Click load unpacked
  • select project folder

Firefox

...