Skip to content

Fix Block Channel button triggering YouTube share#659

Open
joe50261 wants to merge 1 commit intoamitbl:masterfrom
joe50261:claude/fix-block-channel-button-GZ5Kj
Open

Fix Block Channel button triggering YouTube share#659
joe50261 wants to merge 1 commit intoamitbl:masterfrom
joe50261:claude/fix-block-channel-button-GZ5Kj

Conversation

@joe50261
Copy link
Copy Markdown

createCleanContext used hardcoded array indices to select the YouTube action button to clone for block_feedback. YouTube menus vary by page:

Homepage (8 items): NOT_INTERESTED=[5], REMOVE=[6]
History (6 items): SHARE=[4], DELETE=[5]

On the history page, video block picked items[4]=Share instead of DELETE, triggering the Share dialog. Channel block happened to pick items[5]=DELETE correctly.

Replace index lookup with imageName search:
Channel: REMOVE (homepage) → fallback DELETE (history)
Video: NOT_INTERESTED (homepage) → fallback DELETE (history)

https://claude.ai/code/session_014TpmSc7H7o9f7SX3Wvy1FM

createCleanContext used hardcoded array indices to select the YouTube
action button to clone for block_feedback. YouTube menus vary by page:

  Homepage (8 items): NOT_INTERESTED=[5], REMOVE=[6]
  History  (6 items): SHARE=[4], DELETE=[5]

On the history page, video block picked items[4]=Share instead of
DELETE, triggering the Share dialog. Channel block happened to pick
items[5]=DELETE correctly.

Replace index lookup with imageName search:
  Channel: REMOVE (homepage) → fallback DELETE (history)
  Video:   NOT_INTERESTED (homepage) → fallback DELETE (history)

https://claude.ai/code/session_014TpmSc7H7o9f7SX3Wvy1FM
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.

2 participants