EOL iFrame样式修正

修正落后的EOL系统中一些奇怪的样式

// ==UserScript==
// @name         EOL iFrame样式修正
// @namespace    http://terrace.ink/
// @version      0.1
// @description  修正落后的EOL系统中一些奇怪的样式
// @author       TerraceCN
// @match        http://eol.yzu.edu.cn/meol/*
// @icon         http://eol.yzu.edu.cn/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var mainFrame = document.getElementById("mainFrame");
    if (mainFrame) {
        mainFrame.setAttribute('scrolling', 'yes');
        mainFrame.style.height = '100vh';
    }

    const shareBoxObserver = new MutationObserver(function (mutationsList, observer) {
        for (let mutation of mutationsList) {
            for (let node of mutation.addedNodes) {
                if (node?.className?.match(/bdshare.*/)) {
                    node.remove();
                }
            }
        }
    });
    shareBoxObserver.observe(document.body, { childList: true });

})();

QingJ © 2025

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