Greasy Fork is available in English.
秒过2024年智慧中小学暑假教师研修,记得鼠标多点几次,慢慢点击,先看一下视频。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信刷课平台。刷课效果可以见https://www.bilibili.com/video/BV1YT42167Gm 感谢@XiaoTong6666大佬提供的思路!
当前为
// ==UserScript==
// @name 已失效,请勿下载---2024年智慧中小学暑假教师研修,秒过,每个视频多点几遍。有问题看B站视频
// @namespace http://tampermonkey.net/
// @version 0.59
// @author hydrachs
// @description 秒过2024年智慧中小学暑假教师研修,记得鼠标多点几次,慢慢点击,先看一下视频。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信刷课平台。刷课效果可以见https://www.bilibili.com/video/BV1YT42167Gm 感谢@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 setVideoToLastSecond(video) {
if (video) {
video.addEventListener('loadedmetadata', function() {
video.currentTime = video.duration - 1;
});
}
}
function setVideoPlayPosition(video, time) {
if (video) {
video.currentTime = time;
}
}
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);
}
}
document.addEventListener('DOMContentLoaded', function() {
removePopup();
removeNewPopup();
});
document.addEventListener('click', function(event) {
if (event.button === 0) {
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 < 6; i++) {
setVideoPlayPosition(video, video.duration - 0.1);
}
}, 500);
}
});
})();