Skip to content

fix(youtube): auto-dismiss feedback survey banner during comment deletion - #31

Merged
thorstenalpers merged 3 commits into
mainfrom
fix/youtube-survey-banner
Jul 20, 2026
Merged

fix(youtube): auto-dismiss feedback survey banner during comment deletion#31
thorstenalpers merged 3 commits into
mainfrom
fix/youtube-survey-banner

Conversation

@thorstenalpers

Copy link
Copy Markdown
Owner

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's button[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 (the DeleteAllYouTubeComments loop).

🤖 Generated with Claude Code

thorsten 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.
@thorstenalpers thorstenalpers mentioned this pull request Jul 20, 2026
@thorstenalpers
thorstenalpers merged commit fd8ed9d into main Jul 20, 2026
5 checks passed
@thorstenalpers
thorstenalpers deleted the fix/youtube-survey-banner branch July 20, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant