Greasy Fork

Greasy Fork is available in English.

2024年智慧中小学暑假教师研修,秒过,每个视频只点1遍。不懂先看B站教程

秒过2024年智慧中小学暑假教师研修,每个视频点一次标题,耐心等。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         2024年智慧中小学暑假教师研修,秒过,每个视频只点1遍。不懂先看B站教程
// @namespace    http://tampermonkey.net/
// @version      0.60
// @author       hydrachs
// @description  秒过2024年智慧中小学暑假教师研修,每个视频点一次标题,耐心等。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA
// @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 removePopup() {
        var popup = document.querySelector('.fish-modal-confirm-btns');
        if (popup) {
            popup.parentNode.removeChild(popup);
        }
    }

    function removeNewPopup() {
        var newPopup = document.querySelector('.fish-modal-content');
        if (newPopup) {
            newPopup.parentNode.removeChild(newPopup);
        }
    }

    function skipVideo() {
        let video = document.querySelector('video');
        if (video) {
            video.muted = true; // 设置噪音
            video.play();
            video.pause();
            video.currentTime = video.duration;
            video.play();
        }
    }

    function rapidSkip(times, interval) {
        let count = 0;
        const intervalId = setInterval(() => {
            if (count >= times) {
                clearInterval(intervalId);
                return;
            }
            skipVideo();
            count++;
        }, interval);
    }

    document.addEventListener('DOMContentLoaded', function() {
        removePopup();
        removeNewPopup();
    });

    document.addEventListener('click', function(event) {
        if (event.button === 0) {
            rapidSkip(5, 50);
        }
    });

})();