VirMach自动抢购代码

浏览器打开任意网站,F12打开控制台,粘贴运行

const aff = 0
const like = 6
const new_plan =
  'https://billing.virmach.com/modules/addons/blackfriday/new_plan.json'
const add = `https://virmach.com/manage/aff.php?aff=${aff}&pid=175`
Notification.requestPermission()
let pre = ''
const main = async () => {
  let a = await fetch(new_plan)
  a = await a.json()
  cur = JSON.stringify(a)
  console.log(cur)
  if (pre === cur) {
    return
  }
  pre = cur
  a = parseFloat(a.price.match(/([\d\.]+)/)[1])
  if (a < like) {
    new Notification(a)
    window.open(add)
  }
}
main()
setInterval(main, 10000)

每10秒查一次,6刀以下发通知并抢购

本文链接:

https://www.wbzhi.com/virmarch.html
1 + 6 =
快来做第一个评论的人吧~