Testing something

[test](javascript: r.thebutton.redditorPressTime = 1; r.thebutton.redditorSafety = true; r.thebutton.redditorFinished = false; r.thebutton._websocket._events["message:ticking"][0].callback = function(e) { if (!r.thebutton._started) { var t = $("#thebutton").parent(); t.is(".not-active, .locked") && t.removeClass("denied not-active").addClass("active locked"), r.thebutton._started = !0, r.thebutton._countdownInterval = window.setInterval(r.thebutton._countdown, 10) } var n = e.seconds_left; if (!r.thebutton.redditorFinished) { if (n == r.thebutton.redditorPressTime) { if (r.thebutton.redditorSafety) { console.log("Would press at " + n + " seconds!"); } else { console.log("Pressing at " + n + " seconds!"); var data = { seconds: n, prev_seconds: n, tick_time: e.now_str, tick_mac: e.tick_mac }; $.request("press_button", data, function (e) { console.log(e); }); r.thebutton.redditorFinished = true; } } } this._tickTime = e.now_str, this._msgSecondsLeft = n, this._tickMac = e.tick_mac; var i = e.participants_text, s = n * 1e3; s > r.thebutton._lastMsLeft && this.pulse2(), r.thebutton._lastMsLeft = s, r.thebutton._msLeft = n * 1e3, r.thebutton._countdownInterval || (this._countdownInterval = window.setInterval(r.thebutton._countdown, 10)), r.debug(n + " seconds remaining"), r.debug(i + " users have pushed the button"), $("#thebutton-timer").val(parseInt(e.seconds_left, 10)), $(".thebutton-participants").text(e.participants_text) }; r.thebutton.redditorPressTime = prompt("Please enter your desired time: [1-60]"); alert("NOTE: This script will not do anything until you turn the safety off. Type \"safetyOff()\" in the js console to arm the script."); function safetyOff() { console.log("Removing the safeties! Script is now live! Firing click at " + r.thebutton.redditorPressTime + " seconds!"); r.thebutton.redditorSafety = false; })

/r/sandboxtest Thread Parent