This would work best with official subtitles rather than the auto-generated ones. Initially it would only search for exact matches, but posteriorly it could search for mostly similar sentences.
This feature would interoperate with the YouTube Clickbait-Buster userscript. YCBB would provide the transcript and YSCH would use it as a second layer of filtering. So to use this feature the user would need to have both YCBB and YSCH installed.