-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSupremeX.user.js
62 lines (54 loc) · 2.95 KB
/
SupremeX.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// ==UserScript==
// @name SupremeX
// @namespace http://www.supremenewyork.com/
// @version 1.0.0
// @description Complete checkout quickly
// @author fiji @ adidas atc
// @grant none
// @include *://*.supremenewyork.com/*
// ==/UserScript==
var order_info = {name: "your name", // your first and last name
email: "[email protected]", // your email
phone: "5555555555", // your phone number
address1: "123 cook lane", // your street address
address2: "apartment 1", // leave blank if you dont have one
zip_code: "00000", // your zip code
city: "New York", // city
state_code: "NY", // state code, if you dont know this then look it up son
country: "USA" // only two options, "USA" or "CANADA"
};
var card_info = {cc_number: "xxx", // your full credit card number
cc_cvv: "xxx", // the 3 digit security code
cc_month: "04", // month of expiration, if it is 1-9 use 01, 02, 03...
cc_year: "2019" // year of expiration
};
var auto_process = false; // set this to true if you want the checkout to automatically click the process payment button
(function() {
'use strict';
// checkout automation
if (document.location == "https://www.supremenewyork.com/checkout") {
// billing/shipping information
document.getElementsByName("order[billing_name]")[0].value = order_info.name;
document.getElementsByName("order[email]")[0].value = order_info.email;
document.getElementsByName("order[tel]")[0].value = order_info.phone;
document.getElementsByName("order[billing_address]")[0].value = order_info.address1;
document.getElementsByName("order[billing_address_2]")[0].value = order_info.address2;
document.getElementsByName("order[billing_zip]")[0].value = order_info.zip_code;
document.getElementsByName("order[billing_city]")[0].value = order_info.city;
document.getElementsByName("order[billing_state]")[0].value = order_info.state_code;
document.getElementsByName("order[billing_country]")[0].value = order_info.country;
// credit card information
document.getElementsByName("credit_card[cnb]")[0].value = card_info.cc_number;
document.getElementsByName("credit_card[vval]")[0].value = card_info.cc_cvv;
document.getElementsByName("credit_card[month]")[0].value = card_info.cc_month;
document.getElementsByName("credit_card[year]")[0].value = card_info.cc_year;
// accept terms
$('div.icheckbox_minimal').iCheck('check');
// complete
if (auto_process)
document.getElementsByClassName("button checkout")[0].click();
}
// shop redirect
if (document.location == "http://www.supremenewyork.com/shop")
document.location = "http://www.supremenewyork.com/shop/all";
})();