美和易思 MOOT去鼠标检测,快进,倍速,自动下一章

简介: 美和易思 MOOT去鼠标检测,快进,倍速,自动下一章

F12 放到 console 直接运行即可

或者油猴添加新脚本

84.png


核心去除网页绑定焦点事件代码:

if (!-[1,] && !window.XMLHttpRequest || navigator.userAgent.indexOf("MSIE 8.0") > 0) {
        document.onfocusout = function () {
            return true;
        }
    } else {
        window.onblur = function () {
            return true;
        }
    }



全部功能:


// ==UserScript==
// @name         慕课
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  去除美和易思课堂限制
// @author       mutou
// @match        http://www.51moot.net/*
// @grant        none
// @include      http://www.51moot.net/*
// ==/UserScript==
var interval = setInterval(function() {
    var elementPlayView = document.querySelector(".pv-video");
    if (elementPlayView) {
        if (!- [1, ] && !window.XMLHttpRequest || navigator.userAgent.indexOf("MSIE 8.0") > 0) {
            document.onfocusout = function() {
                return true
            }
        } else {
            window.onblur = function() {
                return true
            }
        }
        var elementBtnPlay = document.querySelector(".pv-controls-left .pv-icon-btn-play");
        if (elementBtnPlay) {
            elementBtnPlay.click()
        }
        if (document.querySelector(".pv-progress-current-bg").style.width == "100%") {
            setTimeout(function() {
                var elmentLi = document.querySelector(".vedio-play-conts-left-chapter-list .active");
                if (elmentLi.nextElementSibling == null) {
                    var elementLastDirectory = elmentLi.parentNode.parentNode.parentNode.nextElementSibling;
                    if (elementLastDirectory != null) {
                        elementLastDirectory.querySelectorAll(".vedio-play-conts-left-chapter-list li")[0].click()
                    } else {
                        clearInterval(interval);
                        alert("本课程已播放完成")
                    }
                } else {
                    elmentLi.nextElementSibling.click()
                }
            },
            3000)
        }
        var elementVolumeon = document.querySelector(".pv-icon-volumeon");
        if (elementVolumeon) {
            elementVolumeon.click()
        }
    }
},
1000);
相关文章
|
SQL 数据可视化 前端开发
Springboot 整合 xxljob 使用定时任务调度(新手入门篇)
Springboot 整合 xxljob 使用定时任务调度(新手入门篇)
2177 0
Springboot 整合 xxljob 使用定时任务调度(新手入门篇)
|
消息中间件 监控 API
信用算力基于 RocketMQ 实现金融级数据服务的实践
导读: 微服务架构已成为了互联网的热门话题之一,而这也是互联网技术发展的必然阶段。然而,微服务概念的提出者 Martin Fowler 却强调:分布式调用的第一原则就是不要分布式。 纵观微服务实施过程中的弊端,可以推断出作者的意图,就是希望系统架构者能够谨慎地对待分布式调用,这是分布式系统自身存在的缺陷所致。
10131 88
|
存储 安全 对象存储
巧用对象存储回源绕过SSRF限制
有时开发对于SSRF的限制可能是简单的禁用内网地址来实现的,这时如果传入一个外网地址,将其重定向至内网地址,则可以绕过限制对内网服务器发出请求。
624 0
巧用对象存储回源绕过SSRF限制
|
机器学习/深度学习 存储 人工智能
人工智能:2020的十大进展+2021 年十大技术趋势
人工智能:2020的十大进展+2021 年十大技术趋势
984 0
人工智能:2020的十大进展+2021 年十大技术趋势
|
缓存 NoSQL 前端开发
玩转Spring Cache --- 扩展缓存注解支持失效时间TTL【享学Spring】(下)
玩转Spring Cache --- 扩展缓存注解支持失效时间TTL【享学Spring】(下)
玩转Spring Cache --- 扩展缓存注解支持失效时间TTL【享学Spring】(下)
|
网络协议 API 网络架构
40 张图带你搞懂 TCP 和 UDP(一)
这一篇文章是计算机网络连载文章的第四篇,历史文章请阅读 拿下计网协议后,我就是公园里最靓的仔 TCP/IP 基础知识总结 计算机网络基础知识总结 那么下面就开始我们本篇文章,文章组织脉络如下
40 张图带你搞懂 TCP 和 UDP(一)
|
C++
Win10 Parse error at “IID“
Win10 Parse error at “IID“
634 0
Win10 Parse error at “IID“
|
机器学习/深度学习 自然语言处理 搜索推荐
Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence
Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence
Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence
|
算法 C++
基于启发式算法与单目优化和马尔科夫模型的进出口公司的货物装运策略——整数线性规划 随机模拟(二)
基于启发式算法与单目优化和马尔科夫模型的进出口公司的货物装运策略——整数线性规划 随机模拟
521 0
基于启发式算法与单目优化和马尔科夫模型的进出口公司的货物装运策略——整数线性规划 随机模拟(二)

热门文章

最新文章