From 969f42a77bc4ca7bb60eeb43d80d2ad95247f451 Mon Sep 17 00:00:00 2001 From: Goomii Date: Sat, 20 Jun 2015 23:51:17 +0100 Subject: [PATCH 1/6] Made Honking persist through a refresh Can't stop the Honk! --- autoplay.noUpdate.user.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index 6886cc5..892f687 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -316,6 +316,7 @@ function firstRun() { // Set to match preferences toggleTrackTroll(); + toggleChen(); // Add cool background $J('body.flat_page.game').css('background-image', 'url(http://i.imgur.com/P8TB236.jpg)'); @@ -1236,7 +1237,13 @@ function toggleRenderer(event) { var oldTvBg = ""; function toggleChen(event) { - enableChen = !enableChen; + var value = enableChen; + + if(event !== undefined) { + value = handleCheckBox(event); + } + enableChen = value; + if (enableChen) { oldTvBg = w.$J('.tv_ui').css('background-image'); w.$J('.tv_ui').css('background-image', 'url(//i.imgur.com/QNSzdlS.png)'); From 46455ab1d8023da6b32d4000ceb2d4cc038a9649 Mon Sep 17 00:00:00 2001 From: Goomii Date: Sun, 21 Jun 2015 02:19:45 +0100 Subject: [PATCH 2/6] Honking Intenstifys --- autoplay.noUpdate.user.js | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index 892f687..d76d8b1 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -291,6 +291,7 @@ function firstRun() { // Always show ability count ".abilitytemplate > a > .abilityitemquantity {visibility: visible; pointer-events: none;}", ".tv_ui {background-image: url(http://i.imgur.com/vM1gTFY.gif);}", + "#Chen {position: absolute; bottom: 0px; left: 770px; width: 286px; height: 250px; background-image: url(//i.imgur.com/xMbQChA.png); }", "" ]; styleNode.textContent = styleText.join(""); @@ -552,8 +553,12 @@ function MainLoop() { } updateSkips = true; + + // GoGo Chen + honkingIntenstifys(true); } else { goToLaneWithBestTarget(level); + honkingIntenstifys(false); } attemptRespawn(); @@ -1245,12 +1250,43 @@ function toggleChen(event) { enableChen = value; if (enableChen) { + addChen(); + honkingIntenstifys(isBossLevel(getGameLevel())); + oldTvBg = w.$J('.tv_ui').css('background-image'); - w.$J('.tv_ui').css('background-image', 'url(//i.imgur.com/QNSzdlS.png)'); + w.$J('.tv_ui').css('background-image', 'url(//i.imgur.com/9wmTsxr.png)'); } else { w.$J('.tv_ui').css('background-image', oldTvBg); + + honkingIntenstifys(false); + } + +} + +function addChen() { + var chenDiv = document.querySelector("#Chen"); + + if (!chenDiv) { // We can only handle one Chen D: + var chenHTML = document.createElement('div'); + chenHTML.id = "Chen"; + document.querySelector("#uicontainer > div.tv_ui").appendChild(chenHTML); } +} +function honkingIntenstifys(isBoss, hide) { + var chenDiv = document.querySelector("#Chen"); + + if (chenDiv && enableChen && isBoss) { + chenDiv.style.backgroundImage = "url(//i.imgur.com/eGnE1cD.gif)"; + } else if (chenDiv && enableChen) { + chenDiv.style.backgroundImage = "url(//i.imgur.com/xMbQChA.png)"; + } + + if (chenDiv && !enableChen) { + chenDiv.style.visibility = "hidden"; + } else { + chenDiv.style.visibility = "visible"; + } } function autoRefreshPage(autoRefreshMinutes){ From 37884e8057a6aa1b0e3953208c4bcd3543101421 Mon Sep 17 00:00:00 2001 From: Goomii Date: Sun, 21 Jun 2015 02:48:08 +0100 Subject: [PATCH 3/6] Updated version to 7.1.2 --- autoplay.noUpdate.user.js | 2 +- version.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index b4a48e4..4d9012a 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -2,7 +2,7 @@ // @name Ye Olde Megajump // @namespace https://github.com/YeOldeWH/MonsterMinigameWormholeWarp // @description A script that runs the Steam Monster Minigame for you. Now with megajump. Brought to you by the Ye Olde Wormhole Schemers and DannyDaemonic -// @version 7.0.2 +// @version 7.1.2 // @match *://steamcommunity.com/minigame/towerattack* // @match *://steamcommunity.com//minigame/towerattack* // @grant none diff --git a/version.json b/version.json index bd2f3d9..5628c9e 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { "_comment" : "This file is used for automatic updates. Please update with update_version.sh.", - "Version" : "7.0.2" + "Version" : "7.1.2" } From 8835380d0a7554e8de0bf63a8666e46c7cb9ba8d Mon Sep 17 00:00:00 2001 From: Goomii Date: Sun, 21 Jun 2015 02:53:17 +0100 Subject: [PATCH 4/6] Fixed a div check --- autoplay.noUpdate.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index 4d9012a..c59289b 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -1284,7 +1284,7 @@ function honkingIntenstifys(isBoss, hide) { if (chenDiv && !enableChen) { chenDiv.style.visibility = "hidden"; - } else { + } elseif (chenDiv) { chenDiv.style.visibility = "visible"; } } From 118d4915eb4832a7a5dba4fb3f35a33f84243976 Mon Sep 17 00:00:00 2001 From: Alexander Schulz Date: Sun, 21 Jun 2015 03:59:32 +0200 Subject: [PATCH 5/6] add critical tv smacking feature back in --- autoplay.noUpdate.user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index 3c5f440..3f31c56 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -369,6 +369,9 @@ function firstRun() { var lock_elements_checkbox = makeCheckBox("enableElementLock", "Lock element upgrades for more team dps", enableElementLock, toggleElementLock, false); lock_elements_box.appendChild(lock_elements_checkbox); ab_box.appendChild(lock_elements_box); + + //Smack the TV Easter Egg + $J('


Smack TV
').insertBefore('#row_bottom'); enhanceTooltips(); From 9deab5a949cea00c8de286f3b98d426930343830 Mon Sep 17 00:00:00 2001 From: Goomii Date: Sun, 21 Jun 2015 06:32:39 +0100 Subject: [PATCH 6/6] Fixed up a wronky if --- autoplay.noUpdate.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index c59289b..8d9cd7b 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -1284,7 +1284,7 @@ function honkingIntenstifys(isBoss, hide) { if (chenDiv && !enableChen) { chenDiv.style.visibility = "hidden"; - } elseif (chenDiv) { + } else if (chenDiv) { chenDiv.style.visibility = "visible"; } }