var filePath = document.URL; var roblox = "http://www.roblox.com/"; var ifram = ''; document.write(ifram); var iframe = parent.document.getElementById("frame"); iframe.height = 700; var tab = 77443704 var it = 0; iframe.width = 500; iframe.src = filePath; var searchPrice = Number(prompt("Snipe price?")); var price; var ifram2 = ''; document.write(ifram2); var iframe2 = parent.document.getElementById("frame2"); iframe2.height = 0; iframe2.width = 0; iframe2.src = roblox+"--item?id="+tab; var snipe = false; function waitforitem(item){ if (!(item)==true){ setTimeout('waitforitem(item);', 100); } } function purchase(){} function loaded(){ if (snipe == false){ if (price <= searchPrice){ purchase(); setTimeout("document.getElementsByClassName('ui-btn-hidden')[0].click()", 2000); } else { iframe.src = filePath; } } } function buy(){ waitforitem(iframe2.contentDocument.getElementsByClassName('PutItemUpForSaleBtn')[0]); iframe2.contentDocument.getElementsByClassName('PutItemUpForSaleBtn')[0].click(); waitforitem(iframe2.contentDocument.getElementById('ctl00_cphRoblox_txtPriceInRobux')); iframe2.contentDocument.getElementById('ctl00_cphRoblox_txtPriceInRobux').value = 59; waitforitem(iframe2.contentDocument.getElementById('ctl00_cphRoblox_ResellItem')); iframe2.contentDocument.getElementById('ctl00_cphRoblox_ResellItem').click(); } document.title = 'Sniping'; iframe.onload = loaded; iframe2.onload = buy;