function NikeScan() {

  var product = document.getElementsByClassName("product-display-name");

  for (var i = 0; i < 5; i++) {
    if (product[i].innerHTML.match(shoeName) == shoeName) {
      var shoe = document.getElementsByClassName("grid-item")[i];

      window.location.href = shoe.getElementsByTagName('a')[0].href;
      found = true;
      break;
    }
  }

  if (!found) {
    location.reload(true);
  }

}
// Scan the site for the keyword
Scan the site for the keyword
Scan the site for the keyword
function NikeScan() {
  var product = document.getElementsByClassName("product-display-name");
  for (var i = 0; i < 5; i++) {
    if (product[i].innerHTML.match(shoeName) == shoeName) {
      var shoe = document.getElementsByClassName("grid-item")[i];
      window.location.href = shoe.getElementsByTagName('a')[0].href;
      found = true;
      break;
    }
  }
  if (!found) {
    location.reload(true);
  }
}
function NikeScan ( ) { var product = document . getElementsByClassName ( "product-display-name" ) ; for ( var i = 0 ; i < 5 ; i ++ ) { if ( product [ i ] . innerHTML . match ( shoeName ) == shoeName ) { var shoe = document . getElementsByClassName ( "grid-item" ) [ i ] ; window . location . href = shoe . getElementsByTagName ( 'a' ) [ 0 ] . href ; found = true ; break ; } } if ( ! found ) { location . reload ( true ) ; } }
Scan the site for the keyword
Scan the site for the keyword