您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在 Plex Web 上实现自动跳过片头、片尾和自动播放下一个项目功能。
使用 Web Skipper for Plex(下文简称 WSP)可以实现在 Plex Web 上观看视频时自动跳过片头、自动跳过片尾(当项目存在片头或片尾标记时)和自动播放下一个(当播放队列中存在下一个项目时)功能,并且允许你单独设置这三个功能的开关状态。
WSP 会在你访问以下 URL 时自动启用,若需要通过其他 URL 访问 Plex Web,请在 Tampermonkey 的 已安装脚本
中找到 Web Skipper for Plex
,点击后方的 编辑
按钮,将你的 自定义服务器访问 URL
按照下面的格式添加到脚本中,然后依次点击 文件
、保存
,再刷新 Plex Web 页面即可成功启用 WSP。
// @match https://app.plex.tv/*
// @match http://localhost:32400/*
// @match http://127.0.0.1:32400/*
WSP 每隔 1 秒会检查一遍页面上是否存在 跳过片头
、跳过片尾
按钮,以及 开启自动播放
元素;若存在 跳过片头
或 跳过片尾
按钮,则会根据用户设置自动点击对应的按钮,自动跳过片头或片尾;若存在 开启自动播放
元素,则会在用户开启 自动播放下一个
功能时自动按下 空格
键,立刻自动播放下一个项目。
自动跳过片头、自动跳过片尾和自动播放下一个功能默认都是开启的,你可以通过点击 Tampermonkey 图标呼出 WSP 的控制面板,单独设置这三个功能的开关状态。
自动播放下一个
功能仅在勾选了 开启自动播放
时生效,开启 自动播放下一个
功能后,倒计时会变为 0 秒,也就是立刻播放下一个项目;关闭 自动播放下一个
功能后,Plex 依然会在 10 秒倒计时后自动播放下一个项目;若不想自动播放下一个项目,请在 Plex 内取消勾选 开启自动播放
。const buttonTexts
这个部分增加对应的翻译。如果你觉得这个项目对你有用,可以请我喝杯咖啡。谢谢你的支持!
With Web Skipper for Plex (hereinafter referred to as WSP), you can automatically skip intros, skip credits (when the item has intro or credits markers), and auto-play the next item (when there is a next item in the play queue) while watching videos on Plex Web. It also allows you to individually set the switch status of these three functions.
WSP will be automatically enabled when you visit the following URLs. If you need to access Plex Web through other URLs, please find Web Skipper for Plex
in the Installed Userscripts
of Tampermonkey, click the Edit
button in Actions, add your Custom server access URLs
to the script in the following format, then click File
, Save
in order, and refresh the Plex Web page to successfully enable WSP.
// @match https://app.plex.tv/*
// @match http://localhost:32400/*
// @match http://127.0.0.1:32400/*
WSP will check every second if there are Skip Intro
, Skip Credits
buttons, and the AUTO PLAY ON
element on the page. If the Skip Intro
or Skip Credits
buttons are present, it will automatically click the corresponding buttons based on user settings, skipping the intro or credits. If the AUTO PLAY ON
element is present, it will automatically press the Space
key to immediately play the next item when the Auto Play Next
function is enabled.
The functions of auto-skip intro, auto-skip credits, and auto-play next are all turned on by default. You can call up the control panel of WSP by clicking the Tampermonkey icon and set the switch status of these three functions separately.
Auto Play Next
function only works when AUTO PLAY ON
is checked. When Auto Play Next
is enabled, the countdown will be reduced to 0 seconds, immediately playing the next item. When Auto Play Next
is disabled, Plex will still automatically play the next item after a 10-second countdown. If you do not want to auto-play the next item, please uncheck AUTO PLAY ON
in Plex.const buttonTexts
section.If you found this helpful, consider buying me a coffee. Thanks for your support!