From 646a106e937aa367ec95c2eab3f74616a8d3907a Mon Sep 17 00:00:00 2001 From: Justin Oro Date: Wed, 2 Sep 2026 16:53:22 -0700 Subject: [PATCH] Close popup automatically after a successful save --- README.md | 4 +++- popup.js | 3 +++ tests/helpers.js | 5 +++++ tests/popup.test.js | 28 ++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a945a05..60ae7df 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ A small Chrome extension that automatically clicks "Skip Intro" and "Skip Credit Changing the Plex URL takes effect on your next page load — refresh your Plex tab after saving a new one. Toggle and delay changes apply immediately, no refresh needed. +Clicking **Save** closes the popup automatically shortly after confirming the save, so you don't have to click elsewhere to dismiss it. If something's wrong with what you entered (like a blank or invalid custom URL), the popup shows an error and stays open instead. + ## How it works The extension's content script runs on every page but only activates once the page's hostname matches your configured Plex URL. From there it uses a `MutationObserver` to watch the page for any `