山东大学高校邦鼠标监视废除

废除自动暂停

// ==UserScript==
// @name         山东大学高校邦鼠标监视废除
// @namespace    https://jenway.github.io
// @version      0.1
// @description  废除自动暂停
// @author       Jenway
// @match        *.class.gaoxiaobang.com/class/*
// @icon         https://static-gs.class.gaoxiaobang.com/image/favicon/favicon.ico
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
    // 废除鼠标监视,这里强制拦截了事件监听
    let oldadd=EventTarget.prototype.addEventListener
    EventTarget.prototype.addEventListener=function (...args){
        if(args.length!==0&&args[0]==='blur'){
            console.log('成功')
            return;
        }
        return oldadd.call(this,...args)
    }

})();