Skip to content

Feat: Option to add disliked videos to blocklist (closes #3269)#3285

Merged
ImprovedTube merged 3 commits intocode-charity:masterfrom
pecazeco:master
Oct 23, 2025
Merged

Feat: Option to add disliked videos to blocklist (closes #3269)#3285
ImprovedTube merged 3 commits intocode-charity:masterfrom
pecazeco:master

Conversation

@pecazeco
Copy link
Contributor

What:

  • New option: blocklist_dislike_trigger (Blocklist section).
  • When ON: When the user dislikes a video, it is automatically added to the blocklist.
  • When OFF: Dislike a video doesn't affect the blocklist

Why:

How to test:

  1. Dislike any video and check if it doesn't appear in the blocklist
  2. Now, go to blocklist section and enable "Disliking a video adds it to Blocklist"
  3. Try to dislike the video again and check if it now appears on the blocklist
  4. Uncheck the dislike button and check if the video was removed from the list

Notes:

  • If the video was added to the blocklist by the standard blocking button, liking or disliking it won't remove it from the blocklist (the only way is to remove manually from the blocklist)
  • If the video was added to the blocklist by disliking it, unchecking the dislike button will remove it from the blocklist. This was designed for the user who clicked by accident can quickly undo this action

@ImprovedTube ImprovedTube merged commit 26f9e66 into code-charity:master Oct 23, 2025
1 check passed
@ImprovedTube
Copy link
Member

thank you so much! @pecazeco if (this.storage.blocklist_dislike_trigger) can be tested without declaring it.
removing if (typeof this.storage.blocklist_dislike_trigger === 'undefined') {this.storage.blocklist_dislike_trigger = false;}

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