tofu is a pluggable extension to the game KingsOfChaos, improving gameplay, tracking player statistics and connecting users with each other.
Bear in mind that this is the work of several hobbyist coders working together over IRC since 2008.
# Go to your development directory
cd ~/git/
# Clone this repo
git clone [email protected]:donato/tofu.git
cd tofu
# Install dependencies
npm install -g grunt-cli
npm install
# Run build
grunt
The build script will test your code for some common mistakes, and then build a new tofu-min.user.js in the /bin/ folder for you to test!
- Go to chrome://extensions url
- Select "developer mode" checkbox
- Click "Load unpacked extension"
- In the dialog select the folder which the manifest.json file is in
- Enable "Access local files" from chrome extension tools for Tampermonkey
- To look at network requests: Tampermonkey/tampermonkey#561
- For instant debugging run
grunt
then installbin/tofu-dev.user.js
as your script. Modify file path as needed