動畫瘋, 自動撥放, J 鍵跳過 90S, 自動設定影片速度
当前为
// ==UserScript==
// @name ani gamer skip
// @version 0.1
// @description 動畫瘋, 自動撥放, J 鍵跳過 90S, 自動設定影片速度
// @author Vanisoul
// @match https://ani.gamer.com.tw/*
// @license MIT
// @namespace https://gf.qytechs.cn/users/429936
// ==/UserScript==
const key = "j"; //啟動鍵J
const OPTime = 90; //跳過長度
const videoRate = 1.75; //影片速度
let video = null;
function initVideo(videoI){
videoI.playbackRate = videoRate;
}
const interval = setInterval(()=>{
debugger
video = document.getElementById('ani_video_html5_api');
if (!unsafeWindow.$){
return;
}
const adultClick = unsafeWindow.$._data(unsafeWindow.$("#adult")[0], "events").click;
if(video && adultClick && adultClick.length !== 0){
clearInterval(interval);
adultClick[0].handler();
video.addEventListener('play', function() {
initVideo(video)
});
}
}, 1000)
document.addEventListener('keydown', function(event){
if(event.key.toLocaleLowerCase() === key && video){
video.currentTime += OPTime;
}
})
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址