Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.         const urlParams = new URLSearchParams(window.location.search)
  3.         const region = urlParams.get('region')
  4.         const variant = urlParams.get('variant')
  5.         var milliseconds = (new Date).getTime();
  6.         var newtime = milliseconds + 2000
  7.         const loginOffer = 'https://www.kickz.com/en/checkout/login_offer?actionName=login_offer'
  8.         const cartlink = 'https://www.kickz.com/en/cart'
  9.         const reservebasketurl = 'https://www.kickz.com/en/checkout/reserveBasketItemsAjax/timestamp/' + milliseconds;
  10.         const reservebasketurl1 = 'https://www.kickz.com/en/checkout/reserveBasketItemsAjax/timestamp/' + newtime;
  11.         const atcLink =  'https://www.kickz.com/' + region + '/cart/ajaxAdd/variantId/' + variant
  12.         fetch(atcLink, {method: 'GET', credentials: 'include'})
  13.         fetch(reservebasketurl, {method: 'GET', credentials: 'include'})
  14.         fetch(reservebasketurl1, {method: 'GET', credentials: 'include'})
  15.         window.open(loginOffer, "_self")
  16.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement