Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smackthattvup #63

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
39 changes: 36 additions & 3 deletions autoplay.noUpdate.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,42 @@ 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);

// Easter egg
$J('<a onclick="SmackTV();return false;" style="position:absolute;left:830px;z-index:99;top:584px;"><div style="width:98px;height:52px;"></div></a>').insertAfter($J('.tv_ui'));

//Smack the TV Easter Egg
$J('#gamecontainer').append('<div id="tvsmacker" style="position: absolute; top: 360px; right: 640px; bottom: 360px; left: 640px;"></div>').append('<style>'
+ 'div#tvsmacker::before, div#tvsmacker::after {'
+ ' content: "Smack TV";'
+ ' color: orange;'
+ ' line-height: 45px;'
+ ' font-size: 14px;'
+ ' font-family: "Press Start 2P", "Lucida Console", Consolas, Arial;'
+ ' display: block;'
+ ' cursor: -moz-grab;'
+ ' cursor: -webkit-grab;'
+ ' cursor: grab;'
+ ' width: 720px;'
+ ' height: 45px;'
+ ' text-align: center;'
+ ' margin-top: -10px;'
+ ' margin-bottom: 10px;'
+ ' transition: linear 0.1s;'
+ '}'
+ 'div#tvsmacker::before {'
+ ' margin-left: 270px;'
+ ' transform: rotate(90deg);'
+ '}'
+ 'div#tvsmacker::after {'
+ ' margin-left: -990px;'
+ ' transform: rotate(270deg);'
+ '}'
+ 'div#tvsmacker:hover::before {'
+ ' margin-left: 290px;'
+ '}'
+ 'div#tvsmacker:hover::after {'
+ ' margin-left: -1010px;'
+ '}'
+ '</style>');
$J('#tvsmacker').click(function () { SmackTV(); });

enhanceTooltips();

Expand Down