Acfun自动点赞(随机间隔)

直播间自动点赞

  1. // ==UserScript==
  2. // @name Acfun自动点赞(随机间隔)
  3. // @description 直播间自动点赞
  4. // @version 0.0.3
  5. // @author A
  6. // @match https://live.acfun.cn/live/*
  7. // @run-at document-start
  8. // @license GNU General Public License v3.0 or later
  9. // @namespace https://gf.qytechs.cn/zh-CN/users/845476-longfeigit
  10. // ==/UserScript==
  11.  
  12.  
  13. function random(min, max) {
  14. return Math.floor(Math.random() * (max - min) ) + min;
  15. }
  16.  
  17. function randomClock() {
  18. const time = random(0, 3000)
  19. const timer = setTimeout(() => {
  20. // console.timeEnd()
  21. document.getElementsByClassName('like-heart')[0].click()
  22. randomClock()
  23. clearTimeout(timer)
  24. // console.time()
  25. }, time)
  26.  
  27. }
  28. let evt = document.createEvent('HTMLEvents')
  29. evt.initEvent('input', true, true)
  30. document.getElementsByClassName('danmaku-input')[1].value = "点赞机器人进入";
  31. document.getElementsByClassName('danmaku-input')[1].dispatchEvent(evt);
  32. document.getElementsByClassName('send-btn enable')[0].click();
  33. randomClock()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址