您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Autonext Kimcartoons, option to skip intro.
// ==UserScript== // @name KimCartoon AutoNext AutoFullscreen AutoBetaServer // @namespace http://kimcartoon.to // @version 0.1 // @description Autonext Kimcartoons, option to skip intro. // @author Trystan Rivers // @match https://kimcartoon.to/Cartoon* // @grant GM.getValue // @run-at document-idle // ==/UserScript== (async () => { 'use strict'; var updateLink = "&s=beta"; let introLength = await GM.getValue("IntroTime", 0); console.log(introLength); var btnPrev = $("#Img1").parent()[0]; if (btnPrev !== undefined) { btnPrev.href += updateLink; } var btnNext = $("#Img2").parent()[0]; if (btnNext !== undefined) { btnNext.href += updateLink; } if (myPlayer !== undefined) { myPlayer.on('ended', function() { if (btnNext !== undefined) { window.location.replace(btnNext.href); } }); if (myPlayer.isReady_) { myPlayer.play(); myPlayer.currentTime(introLength); // myPlayer.requestFullscreen(); $(".vjs-fullscreen-control").click(); } } })();