您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press "S" to skip intros on Crunchyroll
// ==UserScript== // @name Crunchyroll Skip Intro (Keyboard) // @namespace Mohd Zaid // @namespace https://crunchyroll.com // @version 2.0 // @description Press "S" to skip intros on Crunchyroll // @author Mohd Zaid // @match *://static.crunchyroll.com/* // @grant none // @license MIT // ==/UserScript== document.body.addEventListener('keydown', (event) => { // We only care about the 'S' key. Ignore all other keys. if (event.key.toLowerCase() !== 's') { return; } // Stop the event from reaching Crunchyroll's scripts to prevent any double actions. event.stopPropagation(); event.preventDefault(); const skipButton = document.querySelector( '[data-testid="skipButton"] > *' ); if (skipButton) { // FIXED: If the button is found, this block now CLICKS it. console.log('Skip button clicked.'); skipButton.click(); } else { // If no button is found, fast-forward the video by 85 seconds. const videoPlayer = document.querySelector('#player0'); if (videoPlayer) { console.log('No skip button found. Skipping forward 85 seconds.'); videoPlayer.currentTime += 85; } } }, true);