首页/技术代码/ 2019黑五virmarch自动抢购代码

2019黑五virmarch自动抢购代码

作者:神奇   分类:技术代码   时间:2019-11-30 04:48:44  标签:


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)
浏览器打开任意网站,F12打开控制台,粘贴运行
温馨提示如有转载或引用以上内容之必要,敬请将本文链接作为出处标注,谢谢合作!

评论:

发表评论:

code