华医联播

华医网自动联播

  1. // ==UserScript==
  2. // @license MIT
  3. // @name 华医联播
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.3
  6. // @description 华医网自动联播
  7. // @author lemondqs
  8. // @match https://cme42.91huayi.com/course_ware/**
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=91huayi.com
  10. // @grant none
  11.  
  12. // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.js
  13. /* globals jQuery, $, waitForKeyElements */
  14.  
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. $(function(){
  20. // var timer;
  21. console.info('script')
  22. function kaoshi() {
  23. var url = $('#jrks').attr('href')
  24. if (url.length>10) {
  25. $('#jrks').click()
  26. console.info('考试')
  27. }
  28. }
  29.  
  30. window.player.HTML5.video.addEventListener('waiting', function () { //加载
  31. console.log("加载中");
  32. /**
  33. timer = setTimeout(function() {
  34. console.info('waiting')
  35. window.player.HTML5.play()
  36. console.info('waiting')
  37. }, 10000)
  38. */
  39. });
  40. window.player.HTML5.video.addEventListener('play', function () { //播放
  41. console.log("开始播放");
  42. // clearTimeout(timer)
  43. });
  44. window.player.HTML5.video.addEventListener('playing', function () { //播放中
  45. console.log("播放中");
  46. });
  47.  
  48. window.player.HTML5.video.addEventListener('pause', function () { //暂停
  49. console.log("暂停");
  50. setTimeout(function() {
  51. window.player.HTML5.play()
  52. }, 700)
  53. });
  54. window.player.HTML5.video.addEventListener('ended', function () { //结束
  55. console.log("播放结束");
  56. setTimeout(function() {
  57. $('.lis-inside-content > .another-bg-two:first').parent('li').children('h2').click()
  58. // kaoshi()
  59. }, 700)
  60. }, false);
  61. window.openBangZhu = function() {
  62. closeBangZhu()
  63. window.player.HTML5.play()
  64. console.info('changed')
  65. }
  66.  
  67.  
  68. $('video').attr('muted', 'muted')
  69. window.player.HTML5.play()
  70. setTimeout(function() {
  71. window.openBangZhu = function() {
  72. closeBangZhu()
  73. window.player.HTML5.play()
  74. console.info('changed')
  75. }
  76. closeBangZhu()
  77. if($('.pv-icon-btn-play').is(':visible')) {
  78. $('.pv-icon-btn-play').click()
  79. }
  80.  
  81. $('video').trigger('play');
  82. window.player.HTML5.play()
  83. console.info('tout1')
  84. }, 2000)
  85.  
  86. setInterval(function(){
  87. console.info('in....')
  88. if ($('.signBtn').is(':visible')) {
  89. $('.signBtn').click();
  90. window.player.HTML5.play()
  91. console.info('点击成功')
  92. }
  93. window.player.HTML5.play()
  94. }, 5*1000);
  95.  
  96. });
  97. // Your code here...
  98. })();

QingJ © 2025

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