Skip to content

Commit b37012a

Browse files
committed
sizes, main proxy
1 parent f713d77 commit b37012a

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ Autofill script for hot stores
1313
* **userAgent**: Customize your user agent which you want to use during autocheckout.
1414
* **gCookies**: An array of cookies, do not leave empty, it will cause program to crash. See this repo for explanation on how to build the array. Used properly this will let you through captcha without solving 10 times.
1515

16-
**kith.com** `1003`
17-
`kith_com.json` (./shops/configs/kith_com.json)
16+
**kith.com** `1003` `kith_com.json` (./shops/configs/kith_com.json)
1817
* **sizes**: Select sizes which you want to checkout with priority by order.
1918
* **strictSizes**: Do not buy checkout if not matched in sizes.
2019
* **pauseBetweenSteps**: Pause between steps (ms).
2120
* **customerInformation**: Information you want to use in autofill.
2221
+ **paymentMethod**: 1 = PayPal, 2 = Card (it is not necessary to fill in an unused method).
2322

24-
**supremenewyork.com** `6026`
25-
`supremenewyork_com.json` (./shops/configs/supremenewyork_com.json)
23+
**supremenewyork.com** `6026` `supremenewyork_com.json` (./shops/configs/supremenewyork_com.json)
2624
* **sizes**: Select sizes which you want to checkout with priority by order.
2725
* **strictSizes**: Do not buy checkout if not matched in sizes.
2826
* **pauseBetweenSteps**: Pause between steps (ms).
@@ -35,16 +33,16 @@ Autofill script for hot stores
3533
The script supports the following proxy format: { hostPort: "xxx.xxx.xxx.xxx:xxxx", login: "login", password: "password" }.
3634

3735
### Launching (Step by step)
38-
* 1. If not installed, install [node.js](https://nodejs.org/)
39-
* 2. If not installed, install [npm](https://www.npmjs.com/)
40-
* 3. Open command prompt and go to the project location
41-
* 4. Install packages with command: npm install `package`
36+
* If not installed, install [node.js](https://nodejs.org/)
37+
* If not installed, install [npm](https://www.npmjs.com/)
38+
* Open command prompt and go to the project location
39+
* Install packages with command: npm install `package`
4240
+ `nightmare`
4341
+ `nightmare-iframe-manager`
4442
+ `lodash`
4543
+ `util`
46-
* 5. Configure `shop`.json which you want to use
47-
* 6. Run script with commands:
44+
* Configure `shop`.json which you want to use
45+
* Run script with commands:
4846
+ node sb_autocheckout.js `shopId` `link`
4947
+ node sb_autocheckout.js `shopId` `link` `proxy`
5048
+ node sb_autocheckout.js `shopId` `link` `proxy` `size`

sb_autocheckout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Array.prototype._diff = function (arr2) {
7070
case 4:
7171
shopId = args[0];
7272
link = args[1];
73-
proxy = args[2] || proxy;
73+
if (args[2])
74+
proxy = args[2];
7475
sizes = args[3];
7576
break;
7677
}

0 commit comments

Comments
 (0)