Greasy Fork is available in English.

Disable Mouseout EventListener

Disable Mouseout EventListener on some MOOC websites

// ==UserScript==
// @name            Disable Mouseout EventListener
// @description     Disable Mouseout EventListener on some MOOC websites
// @version         1.3
// @grant           none
// @match           https://*.edu.cn/*
// @namespace       https://*.edu.cn
// @license         Unlicense
// ==/UserScript==

(function() {
    'use strict';
    const consoleScript = `window.addEventListener("mouseout",t=>{t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault()},!0);`;
    // 运行控制台脚本
    const runConsoleScript = () => {
        const script = document.createElement('script');
        script.textContent = consoleScript;
        document.head.appendChild(script);
        script.remove();
    };
    runConsoleScript();
})();