News for hackers. Stuff that matters.
Re:Code to block unwanted News Genius annotations by web007 on Friday April 01, 2016 @02:31PM (#11407294)
Leftpad all over again.
Re:Code to block unwanted News Genius annotations by runandcode on Friday April 01, 2016 @03:07PM (#11407619)
Hey, OP here.

I originally intended to leverage Rack all the way through by inspecting headers. However, much to my chagrin, I discovered that Genius does not reveal its identity in the headers, so I had to resort to JS instead to accomplish my goal.

Re:Code to block unwanted News Genius annotations by ebola1717 on Friday April 01, 2016 @03:52PM (#11408001)
In this situation, genius will probably try to circumvent a bunch of these techniques. You could imagine this library adds more techniques to fight genius, genius adds work arounds, the library adds different techniques, and it goes back and forth. For users of the library, they just have to update the gem to stay ahead.