/itad_importer

A userscript helper for importing game collections into IsThereAnyDeal.com

Primary LanguageCoffeeScriptMIT LicenseMIT

Collection Import Script for IsThereAnyDeal.com

Issues Ready to be Worked on

This userscript adds "Export to ITAD" buttons to online game vendors who do not provide a way for sites like IsThereAnyDeal.com to query user game lists and wishlists remotely.

It is currently in beta and any bugs should be reported in the issue tracker.

Currently supported vendors are:

Pending a proper website, screenshots are available on imgur.

Installation

  1. Install Greasemonkey in Firefox (Tampermonkey in Chrome should also work but hasn't yet been tested)
  2. Restart Firefox
  3. Install the userscript

(This script will be uploaded to userscript repositories like Greasy Fork once it is reasonably apparent that rapid patching is no longer a concern.)

Development

The authoritative copy of this script is the CoffeeScript source file. Patches against the generated JavaScript may or may not be accepted at the developers' discretion. (We have to rewrite them in CoffeeScript, so they'll have to be worthwhile.)

The official method for developing this script is as follows:

  1. Install the release version of the script in Firefox
  2. Install Node.js
  3. Run npm install
  4. Run npm run-script develop
  5. Saving changes to the CoffeeScript source will now regenerate the copy of the script installed in Firefox.
  6. When you're finished, hit Enter
  7. The development script will regenerate the in-repository JavaScript and code documentation before exiting.
  8. Commit the updated built files.

However, if you do not have a Unixy machine handy, this quick and dirty method can also be used:

  1. Open http://coffeescript.org/
  2. Open the "Try CoffeeScript" tab.
  3. Use the browser's Developer Tools to add a contentEditable attribute to the <pre> tag for the right pane so you can use Ctrl+A followed by Ctrl+C to quickly copy everything.
  4. Install the release version of the script and use Greasemonkey's edit button to open up the version it's using so you can test changes simply by copying JS from "Try CoffeeScript" to the editor, saving, and reloading the page in the browser.
  5. Use the "Try CoffeeScript" button to switch back and forth between code and reference materials.