fix(youtube): auto-dismiss feedback survey banner during comment deletion - #31
Merged
Conversation
added 2 commits
July 20, 2026 19:21
…deletion Google My Activity pops a modal feedback/survey dialog mid-run (typically after the first couple of deletions). Being modal, it blocks the next delete click and stalls the loop. Dismiss it at the top of each iteration by clicking its "Close this dialog" button when present.
…videos Apply the same modal feedback/survey dialog dismissal to the liked-videos unlike loop as a safeguard against the Google-wide feedback widget.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When bulk-deleting YouTube comments on Google My Activity, a modal feedback/survey dialog pops up mid-run (typically right after the first couple of deletions). Because it's modal, it sits on top of the page and blocks the next delete click, so the deletion loop stalls until the user manually clicks it away.
Fix
Auto-dismiss the banner at the top of each deletion iteration — the idle point between comments, which is exactly when it appears. A new
dismissSurveyBanner()helper clicks the dialog'sbutton[aria-label="Close this dialog"]when it's present (with a bounding-box visibility check, since it's a fixed-position element).It's scoped to that specific banner and only runs when no delete-confirmation dialog is open, so it can't interfere with the actual deletion flow (which targets
div[role="button"][data-id="EBS5u"]/span.Crf1o).Affects
src/CleanMyPosts/Scripts/delete-all-youtube-posts.js(theDeleteAllYouTubeCommentsloop).🤖 Generated with Claude Code