提供好医生CME继续医学教育平台的视频倍速与一键看完, 并且支持考试一键完成, 现已支持: 北京健康在线-好医生继续医学教育(包含河北地区)、北京市继续医学教育必修课培训2024(北京市全员必修课培训)。原作者为limkim。目前已经将代码删除,不在维护。我已将代码进行fork,在发布上来,不知道什么时候会不能用。如果不能用我将尝试修复,但是不一定能修好,且用且珍惜。
< Opiniones de 好医生-视频一键到底与自动答题
按钮好像是因为页面无法使用document.querySelector来获取到元素了。我也不知道为什么,正在研究,可以使用以下新建一个脚本进行视频完成自动跳过,(function() { 'use strict'; setTimeout(function(){ let fuckingPlayer = null; const localNoticeSkip = localStorage.getItem('swal_notice_skip'); if (unsafeWindow.player && unsafeWindow.player.params) { unsafeWindow.player.params.rate_allow_change = true; fuckingPlayer = unsafeWindow.player; console.log('a1') } else if (unsafeWindow.cc_js_Player && unsafeWindow.cc_js_Player.params) { unsafeWindow.cc_js_Player.params.rate_allow_change = true; fuckingPlayer = unsafeWindow.cc_js_Player; console.log('a2') } if (fuckingPlayer) { !localNoticeSkip && Swal.fire({ title: "播放器获取成功", text: "倍速与一键看完功能已正常!", icon: "success" }); localStorage.setItem('swal_notice_skip', 'true'); } else { localStorage.removeItem('swal_notice_skip'); Swal.fire({ title: "播放器获取失败", text: "似乎网站未被正确兼容? 功能可能不正常", icon: "question" }); } // 仅适用chromium unsafeWindow.clearInterval(1); if (fuckingPlayer) { fuckingPlayer.setVolume(0); fuckingPlayer.play(); fuckingPlayer.jumpToTime(fuckingPlayer.getDuration() - 0.5); } }, 5000);})();
Inicia sesión para responder.
按钮好像是因为页面无法使用document.querySelector来获取到元素了。我也不知道为什么,正在研究,可以使用以下新建一个脚本进行视频完成自动跳过,
(function() {
'use strict';
setTimeout(function(){
let fuckingPlayer = null;
const localNoticeSkip = localStorage.getItem('swal_notice_skip');
if (unsafeWindow.player && unsafeWindow.player.params) {
unsafeWindow.player.params.rate_allow_change = true;
fuckingPlayer = unsafeWindow.player;
console.log('a1')
} else if (unsafeWindow.cc_js_Player && unsafeWindow.cc_js_Player.params) {
unsafeWindow.cc_js_Player.params.rate_allow_change = true;
fuckingPlayer = unsafeWindow.cc_js_Player;
console.log('a2')
}
if (fuckingPlayer) {
!localNoticeSkip && Swal.fire({
title: "播放器获取成功",
text: "倍速与一键看完功能已正常!",
icon: "success"
});
localStorage.setItem('swal_notice_skip', 'true');
} else {
localStorage.removeItem('swal_notice_skip');
Swal.fire({
title: "播放器获取失败",
text: "似乎网站未被正确兼容? 功能可能不正常",
icon: "question"
});
}
// 仅适用chromium
unsafeWindow.clearInterval(1);
if (fuckingPlayer) {
fuckingPlayer.setVolume(0);
fuckingPlayer.play();
fuckingPlayer.jumpToTime(fuckingPlayer.getDuration() - 0.5);
}
}, 5000);
})();