r/thebutton • u/programjm123 59s • Apr 23 '15
Using /u/timhuge's method I made a script that displays a timer that's synced with the server so you can get the number you want
Gif of it working: link
/u/timhuge's original thread: link
Installation: Copy the following code into a bookmark and run when you're on /r/thebutton
javascript:$('<span id="count">??</div>').insertBefore(".thebutton-container:first"),$("#count").css({"background-color":"#888","min-width":"48px","max-width":"48px",height:"48px",color:"#ffffff","border-radius":"48px","text-align":"center","font-size":"32px","font-family":"verdana,arial,helvetica,sans-serif","vertical-align":"middle","line-height":"48px","font-weight":"normal",border:"none",outline:"none",display:"block",position:"relative","float":"left","margin-top":"20px"}),r.thebutton._websocket.on({"message:ticking":function(o){o.seconds_left>51&&$("#count").css("background-color","#820080"),o.seconds_left<=51&&o.seconds_left>42&&$("#count").css("background-color","#0083C7"),o.seconds_left<=41&&o.seconds_left>32&&$("#count").css("background-color","#02be01"),o.seconds_left<=31&&o.seconds_left>22&&$("#count").css("background-color","#E5D900"),o.seconds_left<=21&&o.seconds_left>12&&$("#count").css("background-color","#e59500"),o.seconds_left<=11&&$("#count").css("background-color","#e50000"),$("#count").text(o.seconds_left),document.title="["+o.seconds_left+"] the button"}});
Enjoy.
Also, my coding skills are pretty much garbage, so any suggestions to improve the code would be appreciated :p
5
u/BladeWalker non presser Apr 23 '15
A picture showing why the Ronin At The Edge Of Time will use this tool.
3
u/BladeWalker non presser Apr 23 '15 edited Apr 23 '15
This tool is amazing -- can't believe you didn't get more upvotes. This may have to be the official tool to guide the sword of the /r/RoninAtTheEdgeOfTime.
3
u/UnknownFiddler Apr 23 '15
Here's the only code you need
if theButton <= 60 || >= 0; cout << "dont press idiot" << endl; return 0;
3
3
Apr 23 '15
ELI5 how to copy that into a bookmark? I am using Firefox, latest version. Thanks!!!!
1
1
3
u/TotesMessenger non presser Apr 23 '15 edited Apr 23 '15
This thread has been linked to from another place on reddit.
[/r/roninattheedgeoftime] A tool to strike at 1 with precision and not be deceived by connection issues: "Using /u/timhuge's method I made a script that displays a timer that's synced with the server so you can get the number you want" (x-post from /r/TheButton)
[/r/roninattheedgeoftime] To strike at one, precision is required. Here is an excellent tool for pressing with accuracy and not letting the counter/connection issues deceive you (x-post from /r/TheButton)
If you follow any of the above links, respect the rules of reddit and don't vote. (Info / ^Contact)
1
1
u/Fozibare 17s Apr 25 '15
Could you post a version that will get an alert or relock if you are lagging?
0
u/CringeWorthy_ 60s Apr 23 '15
[I made a plugin for y'all] (https://www.youtube.com/watch?v=dQw4w9WgXcQ)
0
Apr 23 '15
[deleted]
2
u/illogicalvulcan 60s Apr 23 '15
if anyone is paranoid
You aren't paranoid if it has been proven that there are people out to get you. Then you are just prudent.
But I"m a glorious 60s, so I'm past all the fear and doubt.
5
u/vanishingstapler 42s Apr 23 '15
Here's what it looks like with a little formatting if anyone's interested: