Kittens Game Automation

Auto craft resources when full, auto pray, auto hunt, auto trade, fast autosave, simple save export/import, ...

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Kittens Game Automation
// @namespace    https://github.com/Alistair1231/Kittens-Game-automation-and-tools
// @version      1.0.3
// @description  Auto craft resources when full, auto pray, auto hunt, auto trade, fast autosave, simple save export/import, ...
// @author       Alistair1231
// @match        http*://bloodrizer.ru/games/kittens/*
// @grant        none
// @license GPL-3.0
// @copyright 2018, Alistair1231 (https://openuserjs.org/users/Alistair1231)
// @run-at document-idle
// ==/UserScript==

// ==OpenUserJS==
// @author Alistair1231
// ==/OpenUserJS==

var script='<script src="https://cdn.jsdelivr.net/gh/Alistair1231/Kittens-Game-automation-and-tools/kittens.js"></script>';
var script2='<script>let bot = new kittenBot();'+
	'bot.init();'+
	'bot.export();</script>';
var ln1="<style>"+
			".tableBox {"+
			"display: block !important;}"+
		"</style>"+
		"<br>"+
		"<form id='tableBot'>"+
			"<table>"+
	    	"<tr>"+
		    	"<td>"+
	    			"<input type='checkbox' class='tableBox' name='1' value='1' checked>1</input>"+
		    	"</td>"+
		    	"<td>"+
					"<input type='checkbox' class='tableBox'  name='pray' value='pray' checked>Pray</input>"+
		    	"</td>"+
		    	"<td>"+
					"<a href='#' onclick='bot.run()'>Run</a>"+
		    	"</td>"+
	    	"</tr>"+
	    	"<tr>"+
	    		"<td>"+
	    			"<input type='checkbox' class='tableBox'  name='2' value='2' checked>2</input>"+
	    		"</td>"+
		    	"<td>"+
					"<input type='checkbox' class='tableBox'  name='hunt' value='hunt' checked>Hunt</input>"+
		    	"</td>"+
		    	"<td>"+
					"<a href='#' onclick='bot.stop()'>Stop</a>"+
		    	"</td>"+
	    	"</tr>"+
	    	"<tr>"+
	    		"<td>"+
	    			"<input type='checkbox' class='tableBox' name='3' value='3'>3</input>"+
	    		"</td>"+
		    	"<td>"+
					"<input type='checkbox' class='tableBox' name='craft' value='craft' checked>Craft</input>"+
		    	"</td>"+
		    	"<td>"+
					"<a href='#' onclick='bot.export()'>Export</a>"+
		    	"</td>"+
	    	"</tr>"+
	    	"<tr>"+
	    		"<td>"+
	    			"<input type='checkbox' class='tableBox' name='4' value='4'>4</input>"+
	    		"</td>"+
		    	"<td>"+
					"<input type='checkbox' class='tableBox' name='trade' value='trade'>Trade</input>"+
		    	"</td>"+
		    	"<td>"+
					"<a href='#' onclick='bot.import()'>Import</a>"+
		    	"</td>"+
	    	"</tr>"+
	    	"</table>"+
	    "</form>";

$(script).insertBefore("div[id*='gamePageContainer']");
setTimeout(function(){
	$(script2).insertBefore("a[onclick*='gamePage.ui.hideChat();']");
	},2000);
$(ln1).insertBefore("a[onclick*='gamePage.ui.hideChat();']");