Untitled
unknown
plain_text
3 years ago
28 kB
7
Indexable
var url = window.location.search.substring(1); url = url.replace("url=",'') if(url.includes("amazon.com") && url.includes("/dp/")){ function buyit(url) { if(document.getElementById('email') && document.getElementById('email').value != ''){ if(document.getElementById('name') && document.getElementById('name').value != ''){ if(document.getElementById('adress') && document.getElementById('adress').value != ''){ var product = url; var adress = document.getElementById("adress").value; var name = document.getElementById("name").value; var email = document.getElementById("email").value; var note = document.getElementById("note").value; if(document.getElementById("delivery").value == "") { var price = parseFloat(document.getElementById("price").value); } else { var price = parseFloat(document.getElementById("price").value); var delivery = parseFloat(document.getElementById("delivery").value); var pricetopay = price+delivery; pricetopay = pricetopay*(1+9/100); pricetopay = pricetopay.toFixed(2); } var commandenumber = Math.floor(Math.random()*90000) + 10000; const options = { method: 'POST', headers: {accept: 'application/json', 'content-type': 'application/json', 'X-CC-Api-Key': '34dde34f-8a7d-4613-8074-40a3d70465b4'}, body: JSON.stringify({ local_price: {amount: pricetopay, currency: 'USD'}, metadata: {customer_id: email, customer_name: "Nom : " + name + " " + "Adresse : " + adress + " " + "Produit : " + product + " " + "Notes : " + note}, redirect_url: 'https://crypfast.com/validatepayement.php?email=' + email + '&url=' + product + '&order=' + commandenumber + '¬e=' + note + '&adress=' + adress + '&name=' + name, name: 'CrypFast', description: 'Buy product', pricing_type: 'fixed_price' }) }; if(window.location.href.includes("/fr/")){ alert("Coinbase va s'ouvrir, une fois le paiement effectué, cliquez sur 'Continuer' sur la page de Coinbase.") } else { alert("Coinbase will open, once the payment is done, click on 'Continue' on the Coinbase page.") } fetch('https://api.commerce.coinbase.com/charges', options) .then(response => response.json()) .then(response => { var some_url = Object.values(response)[0].hosted_url window.location.href = some_url }) } } } } if(window.location.href.includes("/fr/")){ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Votre article est ci-dessous (Amazon US)</h2><br>'); } else{ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Your article is below (Amazon US)</h2><br>'); } const pattern = url.match(/dp\/(.*)/)[1]; number = pattern.charAt(0) + pattern.charAt(1) + pattern.charAt(2) + pattern.charAt(3) + pattern.charAt(4) + pattern.charAt(5) + pattern.charAt(6) +pattern.charAt(7) +pattern.charAt(8) +pattern.charAt(9); if(window.location.href.includes("/fr/")){ document.write("<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=US&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h2 class='has-nv-text-dark-bg-color has-text-color'>Chargement du prix... Veuillez patienter</h2></div>"); } else{ document.write("<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=US&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h2 class='has-nv-text-dark-bg-color has-text-color'>Price loading... Please wait</h2></div>"); } let price = 0; const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { response = JSON.parse(this.responseText); response = Object.values(response)[0].price response = response.replace("$", '') price = response; pricetopay = price*(1+9/100) pricetopay = pricetopay.toFixed(2); var productlink = '"' + url + '"' if(window.location.href.includes("/fr/")){ document.getElementById('imageproduct').innerHTML = "<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=US&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h3 class='has-nv-text-dark-bg-color has-text-color'>Prix du produit : $" + price + "<br>Frais de payement : 9%<br>Prix à payer : $" + pricetopay + "</h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='text' onkeypress='validate(event)' name='delivery' placeholder='Frais de livraison (facultatif)' id='delivery'><br><br><input type='email' name='Contact-Email' id='email' placeholder='Votre e-mail' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Votre nom' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Votre adresse' required><br><br><input type='text' name='Note' id='note' placeholder='Taille, couleur... (facultatif)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Commander</button></form></div>"; } else{ document.getElementById('imageproduct').innerHTML = "<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=US&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h3 class='has-nv-text-dark-bg-color has-text-color'>Product price : $" + price + "<br>Fees : 9%<br>Price to pay : $" + pricetopay + "</h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='text' onkeypress='validate(event)' name='delivery' placeholder='Frais de livraison (facultatif)' id='delivery'><br><br><input type='email' name='Contact-Email' id='email' placeholder='Your email' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Your name' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Your adress' required><br><br><input type='text' name='Note' id='note' placeholder='Size, Color... (Optional)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Buy it</button></form></div>"; } } }); xhr.open("GET", "https://amazon-price.p.rapidapi.com/azapi-bulkPrice?asins=" + number + "&marketplace=US"); xhr.setRequestHeader("X-RapidAPI-Key", "311748215cmshb693bc18d24da81p1c15b1jsna2fed665b05a"); xhr.setRequestHeader("X-RapidAPI-Host", "amazon-price.p.rapidapi.com"); xhr.send(null) } else if(url.includes("amazon.fr") && url.includes("/dp/")){ function buyit(url) { if(document.getElementById('email') && document.getElementById('email').value != ''){ if(document.getElementById('name') && document.getElementById('name').value != ''){ if(document.getElementById('adress') && document.getElementById('adress').value != ''){ var product = url; var adress = document.getElementById("adress").value; var name = document.getElementById("name").value; var email = document.getElementById("email").value; var note = document.getElementById("note").value; var commandenumber = Math.floor(Math.random()*90000) + 10000; const options = { method: 'POST', headers: {accept: 'application/json', 'content-type': 'application/json', 'X-CC-Api-Key': '34dde34f-8a7d-4613-8074-40a3d70465b4'}, body: JSON.stringify({ local_price: {amount: pricetopay, currency: 'EUR'}, metadata: {customer_id: email, customer_name: "Nom : " + name + " " + "Adresse : " + adress + " " + "Produit : " + product + " " + "Notes : " + note}, redirect_url: 'https://crypfast.com/validatepayement.php?email=' + email + '&url=' + product + '&order=' + commandenumber + '¬e=' + note + '&adress=' + adress + '&name=' + name, name: 'CrypFast', description: 'Buy product', pricing_type: 'fixed_price' }) }; if(window.location.href.includes("/fr/")){ alert("Coinbase va s'ouvrir, une fois le paiement effectué, cliquez sur 'Continuer' sur la page de Coinbase.") } else { alert("Coinbase will open, once the payment is done, click on 'Continue' on the Coinbase page.") } fetch('https://api.commerce.coinbase.com/charges', options) .then(response => response.json()) .then(response => { var some_url = Object.values(response)[0].hosted_url window.location.href = some_url }) } } } } if(window.location.href.includes("/fr/")){ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Votre article est ci-dessous (Amazon FR)</h2><br>'); } else{ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Your article is below (Amazon FR)</h2><br>'); } const pattern = url.match(/dp\/(.*)/)[1]; number = pattern.charAt(0) + pattern.charAt(1) + pattern.charAt(2) + pattern.charAt(3) + pattern.charAt(4) + pattern.charAt(5) + pattern.charAt(6) +pattern.charAt(7) +pattern.charAt(8) +pattern.charAt(9); if(window.location.href.includes("/fr/")){ document.write("<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=FR&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h2 class='has-nv-text-dark-bg-color has-text-color'>Chargement du prix... Veuillez patienter</h2></div>"); } else { document.write("<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=FR&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h2 class='has-nv-text-dark-bg-color has-text-color'>Price loading... Please wait</h2></div>"); } let price = 0; const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { response = JSON.parse(this.responseText); response = Object.values(response)[0].price response = response.replace("€", '') price = response/100; pricetopay = price*(1+9/100) pricetopay = pricetopay.toFixed(2); var productlink = '"' + url + '"' if(window.location.href.includes("/fr/")){ document.getElementById('imageproduct').innerHTML = "<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=FR&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h3 class='has-nv-text-dark-bg-color has-text-color'>Prix du produit : " + price + "€<br>Frais de payement : 9%<br>Prix à payer : " + pricetopay + "€</h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='email' name='Contact-Email' id='email' placeholder='Votre e-mail' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Votre nom' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Votre adresse' required><br><br><input type='text' name='Note' id='note' placeholder='Taille, couleur... (facultatif)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Commander</button></form></div>"; } else{ document.getElementById('imageproduct').innerHTML = "<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=FR&ASIN=" + number + "&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500'><br><h3 class='has-nv-text-dark-bg-color has-text-color'>Product price : " + price + "€<br>Fees : 9%<br>Price to pay : " + pricetopay + "€</h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='email' name='Contact-Email' id='email' placeholder='Your email' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Your name' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Your adress' required><br><br><input type='text' name='Note' id='note' placeholder='Size, Color... (Optional)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Buy it</button></form></div>"; } } }); xhr.open("GET", "https://amazon-price.p.rapidapi.com/azapi-bulkPrice?asins=" + number + "&marketplace=FR"); xhr.setRequestHeader("X-RapidAPI-Key", "311748215cmshb693bc18d24da81p1c15b1jsna2fed665b05a"); xhr.setRequestHeader("X-RapidAPI-Host", "amazon-price.p.rapidapi.com"); xhr.send(null) } else if(url.includes("fr.aliexpress.com") && url.includes("/item/")){ function buyit(url) { if(document.getElementById('email') && document.getElementById('email').value != ''){ if(document.getElementById('name') && document.getElementById('name').value != ''){ if(document.getElementById('adress') && document.getElementById('adress').value != ''){ var product = url; var adress = document.getElementById("adress").value; var name = document.getElementById("name").value; var email = document.getElementById("email").value; var note = document.getElementById("note").value; var commandenumber = Math.floor(Math.random()*90000) + 10000; const options = { method: 'POST', headers: {accept: 'application/json', 'content-type': 'application/json', 'X-CC-Api-Key': '34dde34f-8a7d-4613-8074-40a3d70465b4'}, body: JSON.stringify({ local_price: {amount: pricetopay, currency: 'EUR'}, metadata: {customer_id: email, customer_name: "Nom : " + name + " " + "Adresse : " + adress + " " + "Produit : " + product + " " + "Notes : " + note}, redirect_url: 'https://crypfast.com/validatepayement.php?email=' + email + '&url=' + product + '&order=' + commandenumber + '¬e=' + note + '&adress=' + adress + '&name=' + name, name: 'CrypFast', description: 'Buy product', pricing_type: 'fixed_price' }) }; if(window.location.href.includes("/fr/")){ alert("Coinbase va s'ouvrir, une fois le paiement effectué, cliquez sur 'Continuer' sur la page de Coinbase.") } else { alert("Coinbase will open, once the payment is done, click on 'Continue' on the Coinbase page.") } fetch('https://api.commerce.coinbase.com/charges', options) .then(response => response.json()) .then(response => { var some_url = Object.values(response)[0].hosted_url window.location.href = some_url }) } } } } if(window.location.href.includes("/fr/")){ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Votre article est ci-dessous (Aliexpress)</h2><br>'); } else{ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Your article is below (Aliexpress)</h2><br>'); } const pattern = url.match(/\/item\/(.*)\.html/)[1]; let productid = pattern; if(window.location.href.includes("/fr/")){ document.write("<div id='imageproduct' class='aligncenter'><h2 class='has-nv-text-dark-bg-color has-text-color'>Chargement du produit...</h2></div>"); } else { document.write("<div id='imageproduct' class='aligncenter'><h2 class='has-nv-text-dark-bg-color has-text-color'>Product Loading...</h2></div>"); } const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { response = JSON.parse(this.responseText) urlimage = Object.values(response)[0].item.images[0] urlimage = urlimage.replace("//", "https://") price = parseFloat(Object.values(response)[0].item.sku.def.price) fraislivraison = parseFloat(Object.values(response)[0].delivery.shippingList[0].shippingFee) pricetopay = price+fraislivraison pricetopay = pricetopay*(1+9/100) pricetopay = pricetopay.toFixed(2); var productlink = '"' + url + '"' if(window.location.href.includes("/fr/")){ document.getElementById('imageproduct').innerHTML = "<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='" + urlimage + "'><br><h3 class='has-nv-text-dark-bg-color has-text-color'>Prix du produit : " + price + "€<br>Frais de livraison : " + fraislivraison + "€<br>Frais de payement : 9%<br>Prix à payer : " + pricetopay + "€</h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='email' name='Contact-Email' id='email' placeholder='Votre e-mail' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Votre nom' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Votre adresse' required><br><br><input type='text' name='Note' id='note' placeholder='Taille, couleur... (facultatif)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Commander</button></form></div>"; } else{ document.getElementById('imageproduct').innerHTML = "<div id='imageproduct' class='aligncenter'><img height='250' width='250' style='margin: auto;' src='" + urlimage + "'><br><h3 class='has-nv-text-dark-bg-color has-text-color'>Product price : " + price + "€<br>Shipping costs : " + fraislivraison + "€<br>Fees : 9%<br>Price to pay : " + pricetopay + "€</h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='email' name='Contact-Email' id='email' placeholder='Your email' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Your name' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Your adress' required><br><br><input type='text' name='Note' id='note' placeholder='Size, Color... (Optional)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Buy it</button></form></div>"; } } }); xhr.open("GET", "https://aliexpress-datahub.p.rapidapi.com/item_detail?itemId=" + productid + "¤cy=EUR®ion=FR&locale=fr_FR"); xhr.setRequestHeader("X-RapidAPI-Key", "311748215cmshb693bc18d24da81p1c15b1jsna2fed665b05a"); xhr.setRequestHeader("X-RapidAPI-Host", "aliexpress-datahub.p.rapidapi.com"); xhr.send(null); } else { function buyit(url) { if(document.getElementById('price') && document.getElementById('price').value != ''){ if(document.getElementById('email') && document.getElementById('email').value != ''){ if(document.getElementById('name') && document.getElementById('name').value != ''){ if(document.getElementById('adress') && document.getElementById('adress').value != ''){ var product = url; var adress = document.getElementById("adress").value; var name = document.getElementById("name").value; var email = document.getElementById("email").value; var note = document.getElementById("note").value; if(document.getElementById("delivery").value == "") { var delivery = 0; } else { var delivery = parseFloat(document.getElementById("delivery").value); } var price = parseFloat(document.getElementById("price").value); var pricetopay = price+delivery; pricetopay = pricetopay*(1+9/100); pricetopay = pricetopay.toFixed(2); var commandenumber = Math.floor(Math.random()*90000) + 10000; const options = { method: 'POST', headers: {accept: 'application/json', 'content-type': 'application/json', 'X-CC-Api-Key': '34dde34f-8a7d-4613-8074-40a3d70465b4'}, body: JSON.stringify({ local_price: {amount: pricetopay, currency: 'EUR'}, metadata: {customer_id: email, customer_name: "Nom : " + name + " " + "Adresse : " + adress + " " + "Produit : " + product + " " + "Notes : " + note}, redirect_url: 'https://crypfast.com/validatepayement.php?email=' + email + '&url=' + product + '&order=' + commandenumber + '¬e=' + note + '&adress=' + adress + '&name=' + name, name: 'CrypFast', description: 'Buy product', pricing_type: 'fixed_price' }) }; if(window.location.href.includes("/fr/")){ alert("Coinbase va s'ouvrir, une fois le paiement effectué, cliquez sur 'Continuer' sur la page de Coinbase.") } else { alert("Coinbase will open, once the payment is done, click on 'Continue' on the Coinbase page.") } fetch('https://api.commerce.coinbase.com/charges', options) .then(response => response.json()) .then(response => { var some_url = Object.values(response)[0].hosted_url window.location.href = some_url }) } } } } } function validate(evt) { var theEvent = evt || window.event; if (theEvent.type === 'paste') { key = event.clipboardData.getData('text/plain'); } else { var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); } var regex = /[0-9]|\./; if( !regex.test(key) ) { theEvent.returnValue = false; if(theEvent.preventDefault) theEvent.preventDefault(); } } var productlink = '"' + url + '"' if(window.location.href.includes("/fr/")){ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Votre article est ci-dessous</h2><br>'); } else{ document.write('<br><h2 class="aligncenter" style="text-align: center;" class="has-nv-text-dark-bg-color has-text-color">Your article is below</h2><br>'); } if(window.location.href.includes("/fr/")){ document.write("<div id='imageproduct' class='aligncenter'><object data=" + productlink + " width='350' height='350'><embed height='350' width='350' src=" + productlink + "></embed>Nous avons récupéré votre produit mais le site n'est pas affichable, vous pouvez toujours payer le produit sans vous inquiéter.</object><br></h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='text' onkeypress='validate(event)' name='price' id='price' placeholder='Prix du produit (9% de frais seront appliqués)' required><br><br><input type='text' onkeypress='validate(event)' name='delivery' placeholder='Frais de livraison (facultatif)' id='delivery'><br><br><input type='email' name='Contact-Email' id='email' placeholder='Votre e-mail' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Votre nom' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Votre adresse' required><br><br><input type='text' name='Note' id='note' placeholder='Taille, couleur... (facultatif)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Commander</button></form></div>"); } else{ document.write("<div id='imageproduct' class='aligncenter'><object data=" + productlink + " width='350' height='350'><embed height='350' width='350' src=" + productlink + "></embed>We have recovered your product but the site is not displayable, you can still pay for the product without worry.</object><br></h3><form onsubmit='return false;' enctype='multipart/form-data' name='EmailForm'><input type='text' onkeypress='validate(event)' name='price' id='price' placeholder='Product price (9% fee will be applied)' required><br><br><input type='text' onkeypress='validate(event)' name='delivery' placeholder='Delivery cost (Optional)' id='delivery'><br><br><input type='email' name='Contact-Email' id='email' placeholder='Your email' required><br><br><input type='text' name='Contact-Name' id='name' placeholder='Your name' required><br><br><input type='text' name='Contact-Adress' id='adress' placeholder='Your adress' required><br><br><input type='text' name='Note' id='note' placeholder='Size, Color... (Optional)'><br><br><button type='submit' value='Submit' onclick='buyit(" + productlink + ")'>Buy it</button></form></div>"); } }
Editor is loading...