Free Nike Auto add to cart bot script


SUBMITTED BY: Guest

DATE: Feb. 7, 2014, 4:53 p.m.

FORMAT: Text only

SIZE: 719 Bytes

HITS: 748

  1. var size = "12";
  2. var amount = 1;
  3. function addToCart() {
  4. var sizesList=document.getElementsByName("skuAndSize")[0];
  5. function setQuantity() {
  6. document.getElementsByName("qty")[0].selectedIndex = amount-1;
  7. }
  8. function setSizeValue() {
  9. for (var i=0; i<sizesList.length; i++){
  10. if(sizesList.options[i].text == size) {
  11. document.getElementsByName("skuAndSize")[0].selectedIndex = i;
  12. setQuantity();
  13. }
  14. }
  15. }
  16. if(sizesList != undefined) {
  17. setSizeValue();
  18. document.getElementsByClassName("button-container add-to-cart")[0].click();
  19. } else {
  20. setTimeout("addToCart()", 250);
  21. }
  22. }
  23. setTimeout("addToCart()", 250);

comments powered by Disqus