您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Skip Crunchyroll intros automatically
当前为
This is a Tampermonkey userscript designed to automatically skip intro sequences when watching anime on Crunchyroll. The script eliminates the need for manual interaction when the "Skip Intro" button appears during show openings.
The script works by periodically checking the Crunchyroll video player for the presence of the skip intro button. When detected, it automatically triggers a click on this button, allowing for seamless viewing without manual intervention.
https://www.crunchyroll.com/fr/watch/*
) and static content pages (https://static.crunchyroll.com/*
)@grant none
), keeping it lightweightThe code consists of:
skipIntroOnMainSite()
that:
document.querySelector()
to find the Skip Intro button by its data test ID attributesetInterval()
that calls this function every 5 seconds (5000ms)Polling Approach: The script uses a simple interval-based polling mechanism rather than event listeners. This ensures compatibility across different versions of the Crunchyroll player, as it doesn't rely on specific event implementations.
5-Second Interval: This timing is chosen as a balance between responsiveness (detecting the skip button quickly) and performance (not checking too frequently to cause unnecessary CPU usage).
Element Selection: The script identifies the skip button using Crunchyroll's own test ID (data-testid="skipIntroText"
), which makes it resilient to cosmetic UI changes as long as this identifier remains consistent.
Simple Structure: The straightforward implementation makes the script easy to understand and modify if Crunchyroll changes their player interface in the future.
This script provides a convenient quality-of-life improvement for Crunchyroll users who prefer to skip intro sequences automatically while binge-watching anime series.