雨课堂显示PPT-去掉"当前页面有动画"提示

移除"当前页面有动画,请听老师讲解"的遮罩(在雨课堂上课界面右上角添加按钮,需要点击)

目前为 2022-07-06 提交的版本。查看 最新版本

// ==UserScript==
// @name         雨课堂显示PPT-去掉"当前页面有动画"提示
// @namespace    https://github.com/hui-shao
// @homepage     https://gf.qytechs.cn/zh-CN/scripts/
// @homepageURL  https://gf.qytechs.cn/zh-CN/scripts/
// @license      GPLv3
// @version      0.1
// @description  移除"当前页面有动画,请听老师讲解"的遮罩(在雨课堂上课界面右上角添加按钮,需要点击)
// @author       hui-shao
// @match        https://www.yuketang.cn/lesson/fullscreen/v*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=yuketang.cn
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    function createButton() {
        //alert("btn");
        var button = document.createElement("button");
        button.id = "btn001";
        button.textContent = "移除";
        button.style.color = "black";
        button.style.width = "100px";
        button.style.height = "80%";
        button.style.align = "center";
        button.style.marginTop = "0.2%";
        button.style.marginRight = "1.5%";
        document.querySelector(".lesson__header").appendChild(button);
        button.onclick = function () {
            console.log("[Script] Pressed the button.");
            myClick();
        };
    }

    function myClick() {
        document.querySelector(".slide__cmp").style.display="";
        document.querySelector(".ppt__modal.box-center").style.display="none";
    }

    document.onreadystatechange = ()=>{
        if(document.readyState == "complete") {
            console.log("Tried to Create Btn");
            createButton();
        }
    };


})();

QingJ © 2025

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