I have Salty Bet on a 2nd monitor running, I want to bet more often but I have it annoying having to enter in a bet amount every time.
Wish there's a way I can just all in every time , or select a pre selected amount/%
@vegetashonor: connection fail : (,
I'm assuming someone has to man it in order for it to work, will check it again later.
The copy and paste thing wouldn't work since I'm doing "work" on the other screen where I tent to just copy and paste >.>
cool idea, I've made a little piece of javascript that creates % and an all in wager button
You want to execute the code in the web console of your browser after you've loaded the page. e.g. in Chrome press ctrl-shift-j, paste the code in the prompt, and press enter. In firefox press ctrl-shift-k instead.
js provided again here:
javascript:n=function(b){return "$('#wager').val("+b+")"};p=function(b){return "d=$('#balance').text();$('#wager').val(Math.floor(d*"+b+"))"};c=function(x,t){return '<input type="button" style="border-radius:5px;border: 2px solid #336633;margin:0.25em;padding:0;background:green;color:white;" onclick="'+x+'" value="'+t+'"/>';};$('#wager').before(c(p(0.1),'10%')+c(p(0.25),'25%')+c(p(0.5),'50%')+c(p(0.75),'75%')+c(p(1),'All in!'));
You can modify the script pretty easy to make the buttons you want. e.g. if you want a 10k button, add c(n(10000),'10k') like this:
$('#wager').before(c(n(10000),'10k')+c(p(0.1),'10%')+c(p(0.25),'25%')+c(p(0.5),'50%')+c(p(0.75),'75%')+c(p(1),'All in!'))
@madreisz: Goddamn you are awesome, Thank You so much for it.
I was able to use Tampermonkey (chrome ext) and add in the script to the URL so that I don't have to paste it into the console every time.
I also use this script to remove the bettor listing from the page, since I find it useless and taking up too much space.
That Javascript is almost exactly what I'm after. The only change I would make is adding another row of buttons that add 10, 100, 100, etc to your current bet or clear it, allowing users to fine tune the amount. Is anyone able to modify the script to do that? I'm useless at programming...
@mr_scumbag: That's easy enough. Use http://pastebin.com/Wicya87E instead, same instructions.
js provided again here:
javascript:a=function(n){return "w=parseInt($('#wager').val(),10);$('#wager').val((w?w:0)+"+n+")"};n=function(b){return "$('#wager').val("+b+")"};p=function(b){return "d=$('#balance').text();$('#wager').val(Math.floor(d*"+b+"))"};c=function(x,t){return '<input type="button" style="border-radius:5px;border: 2px solid #336633;margin:0.25em;padding:0;background:green;color:white;" onclick="'+x+'" value="'+t+'"/>';};$('#wager').before(c(p(0.1),'10%')+c(p(0.25),'25%')+c(p(0.5),'50%')+c(p(0.75),'75%')+c(p(1),'All in!')+'<br/>'+c(n(0),'Reset')+c(a(10),'+10')+c(a(100),'+100')+c(a(1000),'+1k')+c(a(10000),'+10k'));
Please Log In to post.
Log in to comment