From a98ace081894eb3b59f44119527fe507e233dc8e Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 13 Apr 2015 19:15:51 -0400 Subject: [PATCH] Some setup stuff to make interface cleaner --- bot.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bot.js b/bot.js index 08b52c2..825d690 100644 --- a/bot.js +++ b/bot.js @@ -106,8 +106,19 @@ function mainLoop() { } } +botSetup(); botToggle(); +function botSetup() { + clickSelector('a[name="portal"]'); + clickSelector('button[name="vault_hide"]'); + $('a[name="bossPortal"] > img').toggle(); +} + +function botTimestamp() { + return Math.floor(Date.now() / 1000); +} + function botFillIn(selector, text) { $(selector).val(text); }