Skip to content

Commit daadcaa

Browse files
gen BTCgen BTC
authored andcommitted
patch 3.81, readme, .user.js
1 parent 5d25745 commit daadcaa

3 files changed

Lines changed: 66 additions & 2 deletions

File tree

.user.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// ==UserScript==
2+
// @name AutoTrimps
3+
// @namespace https://github.com/zininzinin/AutoTrimps
4+
// @version 2.1
5+
// @description Automate all the trimps!
6+
// @author zininzinin, spindrjr, Ishkaru
7+
// @include *trimps.github.io*
8+
// @include *kongregate.com/games/GreenSatellite/trimps
9+
// @grant none
10+
// ==/UserScript==
11+
12+
var script = document.createElement('script');
13+
script.id = 'AutoTrimps-script';
14+
script.src = 'https://zininzinin.github.io/AutoTrimps/AutoTrimps2.js';
15+
document.head.appendChild(script);

AutoTrimps2.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,16 @@ function loadPageVariables() {
159159
}
160160
}
161161

162+
function getCorruptScale(type) {
163+
switch (type) {
164+
case "attack":
165+
return mutations.Corruption.statScale(3);
166+
167+
case "health":
168+
return mutations.Corruption.statScale(10);
169+
}
170+
}
171+
162172
//Saves automation settings to browser cache
163173
function saveSettings() {
164174
// debug('Saved');

README.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,48 @@
11
# AutoTrimps
2-
Automation script for the idle incremental game Trimps
2+
Automation script for the idle incremental game Trimps
33

4-
**Installation instructions at the bottom of this README**
4+
## Discussion / Discord Channel
5+
Discord is a chat program. Come to talk about AutoTrimps, for help, or suggestions for new features : https://discord.gg/0VbWe0dxB9kIfV2C
6+
7+
## Script Installation
58
**Please backup your game via export before and during use to prevent losing your save due to corruption!**
69

10+
***Option 1***: Install TamperMonkey (Chrome) or GreaseMonkey (Firefox)
11+
12+
**EASY INSTALL click here: https://github.com/zininzinin/AutoTrimps/raw/gh-pages/.user.js** (the Monkeys will detect this and prompt you to install it)
13+
14+
Overly detailed Chrome/TamperMonkey Instructions:
15+
- Open the TamperMonkey dashboard and go to utilities – in the URL box paste https://github.com/zininzinin/AutoTrimps/raw/gh-pages/.user.js and click IMPORT
16+
- Alternatively, paste the contents of `.user.js` into a user script (pay attention, it says .user.js - this contains 4 lines of code that loads AutoTrimps2.js)
17+
- The script should automatically load everytime you go to https://trimps.github.io or the game on Kongregate
18+
- You will know you have the script loaded if you see the Automation and Graphs buttons in the game menu at the bottom
19+
- DO NOT PASTE THE FULL 2000+ line contents of the script into TamperMonkey! It will not work properly!
20+
- The .user.js file is a "stub" or "loader" that references the AutoTrimps2.js file which is where the actual script is located.
21+
- The purpose of .user.js is so that you don't have to rely on TamperMonkey's update functionality - instead it will automaticaly download the updated copy from the URL provided everytime its loaded.
22+
23+
FireFox/GreaseMonkey instructions:
24+
- GreaseMonkey identifies userscripts by visiting a URL that ends with ".user.js" in them:
25+
- Visit this URL, and Agree to install the userscript: https://github.com/zininzinin/AutoTrimps/raw/gh-pages/.user.js
26+
27+
***Option 2***: Via a Bookmark (does not work with Kongregate - maybe it does now that I added an include kongregate line to the file)
28+
- Create new bookmark and set its target to:
29+
```js
30+
javascript:with(document)(head.appendChild(createElement('script')).src='https://zininzinin.github.io/AutoTrimps/AutoTrimps2.js')._
31+
```
32+
- This bookmark button has to be clicked manually after you go to https://trimps.github.io
33+
34+
***Option 3***: Paste into console (last resort for debugging, dont do this)
35+
36+
Chrome Instructions
37+
- You can copy and paste the entire contents of AutoTrimps2.js into the Dev Console (F12 in chrome) of the page. (make sure the dropdown box to the left of "Preserve Log" is set to "top" - or "mainFrame (indexKong.html)" for kongregate.
38+
39+
Firefox Instructions
40+
- Push Ctrl+Shift+K to go into console and look for the "Select an iframe" icon, and choose http://trimps.github.io/indexKong.html
41+
42+
Notes:
43+
If you would like to use only the graphs module, replace `AutoTrimps2.js` with `Graphs.js` in the bookmark or your userscript.
44+
Feel free to submit any bugs/suggestions as issues here on github.
45+
746
## Recent changes
847

948
4/28/2016

0 commit comments

Comments
 (0)