Update skip-intro.js

fix index
This commit is contained in:
zongor 2024-04-28 00:46:57 -04:00
parent 7315cb14e2
commit 72891579c0
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
javascript: (() => {
const getClassAndSkip = (name) => {
let skip = document.getElementsByClassName(name).shift();
let skip = document.getElementsByClassName(name)[0];
if (skip) {
skip.children.shift().click();
skip.children[0].click();
}
};
@ -11,5 +11,5 @@ javascript: (() => {
getClassAndSkip("skip-credits");
// paramount plus
getClassAndSkip("skip-button");
}, 1e3);
}, 60000);
})();