From 726fd8a67209f009d886855babc62b74be5f47fd Mon Sep 17 00:00:00 2001 From: Roberto Bianchi Date: Thu, 9 Jan 2025 15:49:35 +0100 Subject: [PATCH] feat(config): skip disney plus intro Signed-off-by: Roberto Bianchi --- README.md | 2 +- manifest.json | 10 +++------- src/scripts/content.js | 1 + 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5b828a9..b0c172f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Description 🔭 -Automatically skip Netflix series intro. +Automatically skip Netflix and DisneyPlus series intro. ## Ideas, bug, questions 📫 diff --git a/manifest.json b/manifest.json index 7a8d8eb..593f32d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,17 +1,13 @@ { "manifest_version": 3, "name": "Skip series intro", - "description": "Skip series intro allows to automatically skip the intro of the series.", + "description": "Skip series intro allows to automatically skip the intro of the series on Netflix and Disney Plus.", "version": "1.0.2", "content_scripts": [ { - "matches": [ - "https://*/*" - ], + "matches": ["https://*/*"], "run_at": "document_start", - "js": [ - "src/scripts/content.js" - ] + "js": ["src/scripts/content.js"] } ], "action": { diff --git a/src/scripts/content.js b/src/scripts/content.js index 54fa943..2e6a17b 100644 --- a/src/scripts/content.js +++ b/src/scripts/content.js @@ -2,6 +2,7 @@ const elements = [ '[data-uia="next-episode-seamless-button"]', '[data-uia="interrupt-autoplay-continue"]', ".watch-video--skip-content-button", + '.skip__button.body-copy' ]; setInterval(() => {