scrypt.cc AUTOBUYER


SUBMITTED BY: Guest

DATE: March 14, 2015, 12:06 p.m.

FORMAT: JavaScript

SIZE: 1.4 kB

HITS: 1166

  1. // ==UserScript==
  2. // @name autobuyer
  3. // @namespace scryptcc
  4. // @include http://scrypt.cc/*
  5. // @version 1
  6. // @grant ALL
  7. // ==/UserScript==
  8. //DONATION: 16RdQZ86NUWQbE6rM86JbxnnaCDcAKqa9
  9. var username = '';
  10. var password = '';
  11. var pin = '';
  12. var reinvest_percent=100.00000000;
  13. var reinvest_interval=10*60*1000;
  14. if (document.URL.indexOf('trade.php') > 0) {
  15. var balance=document.getElementById('idblc_4').innerHTML;
  16. var price=document.getElementById('l6').innerHTML;
  17. var amount= Math.floor((parseFloat(balance)*reinvest_percent/100)/parseFloat(price))
  18. if (amount>=1){
  19. document.getElementById('t1').value=amount;
  20. document.getElementById('t3').value=price;
  21. document.getElementById('t5').value=pin;
  22. document.getElementById('b2').click();
  23. setInterval(function(){ document.location.href = 'http://scrypt.cc/users/trade.php'; }, reinvest_interval);
  24. }
  25. }
  26. else if (document.URL.indexOf('login.php') > 0) {
  27. document.getElementsByName('username')[0].value=username;
  28. document.getElementsByName('password')[0].value=password;
  29. document.getElementsByTagName('form')[0].submit();
  30. }
  31. else if (document.URL.indexOf('/users/index.php') > 0) {
  32. document.location.href = 'http://scrypt.cc/users/trade.php';
  33. }
  34. else document.location.href='http://scrypt.cc/login.php';

comments powered by Disqus