BuryMark User

Hello everyone,

Disclaimer, i do not know JS almost at all and it's mainly blackmagic for me

I'm looking for script to plug into my TemperMonkey on free-bcash.com site, TBH i know nothing about JS so i landed here.
I need to automate lottery on that side so i though since it's 50% winchance i just need to input bet amount and script would
if ($('#mutiplystate').is('color: green')
keypress.KeyS,wait 1000,keypress.KeyH to return to base bet amout, then roll
and
if ($('#mutiplystate').is('color: red') keypress.c (multiply bet 2x), wait , keypress.KeyH (roll again)

I would be more than grateful if anyone could help me out on that.