Giter Club home page Giter Club logo

robmi's Introduction

robmi

抢小米手机

前言

抢不到小米,写了点代码,以每秒1000次的速度点击加入购物车。

一.代码部署

1.浏览器安装油猴插件(Tampermonkey)或暴力猴插件(Violentmonkey)
2.新建一个脚本,把main.js里的代码拷进去
代码
3.复制小米购买页面的地址,找一条@match代码把后面地址替换掉(如已有复制了的地址,忽略此操作)如:
// @match https://item.mi.com/product/10000131.html

二.小米官网操作

1.登录小米账号
2.找到要抢的小米型号,点击立即预约
预约
3.抢购时提前访问小米官网并登录账号,点开购买页面,这时按钮显示倒计时
购物车
4.选择自己需要的版本、颜色、套餐等,然后等待倒计时结束,不需要任何操作,代码自动把手机添加到购物车
购物车
5.进入购物车后赶紧去结算

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.