Skip to content

Add hide watched videos setting#4130

Open
Luzijano wants to merge 1 commit into
code-charity:masterfrom
Luzijano:fix-hide-watched-videos-4128
Open

Add hide watched videos setting#4130
Luzijano wants to merge 1 commit into
code-charity:masterfrom
Luzijano:fix-hide-watched-videos-4128

Conversation

@Luzijano

@Luzijano Luzijano commented Jul 4, 2026

Copy link
Copy Markdown

Summary

  • implements the existing hide_watched_videos setting so watched YouTube recommendations/search/list items are hidden
  • supports YouTube's watched overlay, resume-progress overlay, and ImprovedTube's stored watched video IDs
  • adds a configurable watched-progress threshold slider (defaults to 90%) and re-applies hiding on navigation/dynamic page updates

Fixes #4128

Tests

  • node -e "JSON.parse(require('fs').readFileSync('_locales/en/messages.json','utf8')); console.log('json ok')"
  • npm test -- --runInBand tests/unit/hide-watched-videos.test.js
  • npm run lint

@Luzijano Luzijano force-pushed the fix-hide-watched-videos-4128 branch from da4fe88 to 5885492 Compare July 4, 2026 23:34
@nkinnan

nkinnan commented Jul 5, 2026

Copy link
Copy Markdown

I will test this PR tomorrow. Forgot to mention that (based on the behavior of other plugins) this may require different code paths for channel page versus player page. It should not affect playlists. I'll test all of this and let you know if I find any problems. Thanks for implementing this!

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.

Hide watched videos

2 participants