自动关闭慕课播放界面的作者介绍

自动关闭慕课视频播放界面的作者介绍

目前為 2022-03-10 提交的版本,檢視 最新版本

作者
xxyangyoulin
評價
0 0 0
版本
0.1
建立日期
2022-03-08
更新日期
2022-03-10
尺寸
712 位元組
授權條款
GPL-3.0-or-later
腳本執行於

// ==UserScript==
// @name imooc慕课网隐藏作者介绍连续播放
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 自动关闭慕课视频播放界面的作者介绍,自动播放下一节。
// @author xxyangyoulin
// @match *://*.imooc.com/*
// @icon https://www.imooc.com/favicon.ico
// @grant none
// @license GPL-3.0-or-later
// ==/UserScript==

(function() {
'use strict';
setTimeout(()=>{
let closeBtn = document.querySelector(".imv2-close.video-panel-close")
if(closeBtn){
closeBtn.click()
}
},500);
// Your code here...

var playNextBtn = document.querySelector('.J-next-btn');

var loop = setInterval(function () {
if (!playNextBtn.classList.contains('hide')) {
console.log('end');
playNextBtn.dispatchEvent(new MouseEvent('click'));
}
}, 1000);
})();

QingJ © 2025

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