GoBili

Keep trying go Live on live.bilibili.com

当前为 2015-06-08 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GoBili
  3. // @namespace https://github.com/5long/gobili
  4. // @version 0.1.0
  5. // @description Keep trying go Live on live.bilibili.com
  6. // @author Whyme Lyu
  7. // @license https://github.com/5long/gobili/blob/master/UNLICENSE
  8. // @match http://live.bilibili.com/*
  9. // @grant none
  10. // @run-at document-idle
  11. // ==/UserScript==
  12.  
  13. ;(function() {
  14. var btn = $("#live_status_control")
  15. , intvl
  16.  
  17. if ((!btn.size())
  18. || btn.hasClass('guest')
  19. || btn.hasClass('on')) return
  20.  
  21. function click() {
  22. if (btn.hasClass("off")) {
  23. btn.trigger("click")
  24. }
  25.  
  26. if (btn.hasClass("on")) {
  27. clearInterval(intvl)
  28. alert("抢到了, 赶紧开播")
  29. }
  30. }
  31.  
  32. function setup() {
  33. intvl = setInterval(click, 2000)
  34. }
  35.  
  36. btn.one("click", setup)
  37. }());

QingJ © 2025

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