Greasy Fork

Greasy Fork is available in English.

(秒过修复)2024年智慧中小学暑假教师研修秒过,慢慢点,多点几次!看B站视频

秒过2024年智慧中小学暑假教师研修,记得鼠标多点几次,慢慢点击,先看一下视频,。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信刷课平台。刷课效果可以见 https://www.bilibili.com/video/BV1WS42197tX 感谢@XiaoTong6666大佬提供的思路!

当前为 2024-07-25 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         (秒过修复)2024年智慧中小学暑假教师研修秒过,慢慢点,多点几次!看B站视频
// @namespace    http://tampermonkey.net/
// @version      0.57
// @author       hydrachs
// @description  秒过2024年智慧中小学暑假教师研修,记得鼠标多点几次,慢慢点击,先看一下视频,。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信刷课平台。刷课效果可以见 https://www.bilibili.com/video/BV1WS42197tX 感谢@XiaoTong6666大佬提供的思路!
// @license MIT
// @match        https://basic.smartedu.cn/*
// @match        https://www.smartedu.cn/*
// @match        https://teacher.vocational.smartedu.cn/*
// @match        https://core.teacher.vocational.smartedu.cn/*
// ==/UserScript==

(function() {
    'use strict';

    function runCodeInConsole(code) {
        var script = document.createElement('script');
        script.textContent = code;
        (document.head || document.documentElement).appendChild(script);
        script.remove();
    }

    function clickKnowButton() {
        var knowButton = document.querySelector('.fish-modal-confirm-btns .fish-btn-primary');
        if (knowButton) {
            knowButton.click();
        }
    }

    function setVideoToLastSecond(video) {
        if (video) {
            video.addEventListener('loadedmetadata', function() {
                video.currentTime = video.duration - 1;
            });
        }
    }

    function setVideoPlayPosition(video, time) {
        if (video) {
            video.currentTime = time;
        }
    }

    document.addEventListener('click', function(event) {
        if (event.button === 0) {
            setTimeout(clickKnowButton, 500);

            setTimeout(function() {
                runCodeInConsole(`document.querySelector("video").dispatchEvent(new Event("ended"))`);
                runCodeInConsole(`
                    var v = document.querySelector("video");
                    if (v) {
                        v.muted = true;
                        v.playbackRate = 1.0;
                        v.play();
                    }
                `);

                var video = document.querySelector("video");
                setVideoToLastSecond(video);

                setVideoPlayPosition(video, video.duration - 0.1);

                for (var i = 0; i < 5; i++) {
                    setVideoPlayPosition(video, video.duration - 0.1);
                }
            }, 500);
        }
    });
})();