Greasy Fork is available in English.
2024年智慧中小学暑假教师研修,非秒过,每个视频多点几遍遍。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA
当前为
// ==UserScript==
// @name 2024年智慧中小学暑假教师研修,非秒过,每个视频多点几遍遍。不懂先看B站教程
// @namespace http://tampermonkey.net/
// @version 0.62
// @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);
console.log('出现知道了按钮');
}
}
function removeNewPopup() {
var newPopup = document.querySelector('.fish-modal-content');
if (newPopup) {
newPopup.parentNode.removeChild(newPopup);
console.log('移除弹窗2');
}
}
// 设置视频拖到底播放
function skipVideo() {
let video = document.querySelector('video');
if (video) {
video.muted = true; // 设置噪音
video.play();
video.pause();
video.currentTime = video.duration;
video.play();
setTimeout(700);
video.currentTime = video.duration - 3;
video.play();
video.currentTime = video.duration - 5;
video.play();
}
}
// 静音播放视频
function skipVideo2() {
let video = document.querySelector('video');
if (video) {
video.muted = true;
video.play();
}
}
function rapidSkip(times, interval) {
let count = 0;
const intervalId = setInterval(() => {
if (count >= times) {
clearInterval(intervalId);
return;
}
skipVideo();
count++;
}, interval);
}
let clickTimer;
document.addEventListener('DOMContentLoaded', function() {
removePopup();
removeNewPopup();
console.log('移除弹窗');
});
document.addEventListener('click', function(event) {
if (event.button === 0) {
if (clickTimer) {
clearInterval(clickTimer);
}
rapidSkip(4, 50);
clickTimer = setInterval(() => {
rapidSkip(4, 50);
}, 8000); // 每隔8秒调用一次 rapidSkip
}
});
})();