If the trigger is only rapid alternation of frames with a high luminance and/or contrast delta, it seems like that could be detected fairly easily by methods not wholly dissimilar to those used in MPEG compression. But I'm not at all sure that is indeed the only trigger, and also not sure how that kind of analysis could be done close enough to realtime to make a usable display filter.
Might still be worth putting together as a library, though. I can see an easy win for sites like Twitter, which could apply it to user-submitted content before showing it to anyone.