Plex auto-skip intro

Automatically press the Plex "Skip intro" button when it appears.

< 腳本Plex auto-skip intro的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2022-03-18

Fixed:

// ==UserScript==
// @name Plex auto-skip intro
// @namespace https://gf.qytechs.cn/en/users/555204-bcldvd
// @version 0.1
// @icon https://www.google.com/s2/favicons?domain=plex.tv
// @description Automatically press the Plex "Skip intro" button when it appears.
// @author David Boclé
// @match https://app.plex.tv/desktop/
// @grant none
// ==/UserScript==

(function() {
let element = document.getElementById('plex');
let observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if(mutation.addedNodes.length > 0 && mutation.addedNodes[0] && mutation.addedNodes[0].innerText == 'SKIP INTRO') {
setTimeout(() => {
mutation.addedNodes[0].firstChild.click()
}, 10);
}
});
});
observer.observe(element, { childList: true, subtree: true });
})();

§
發表於:2022-03-18

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址