Keep Daily Beast from warning about infinite-scroll-loaded articles. #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The sponsor detection is probably worthless at this point - the example I uploaded is sponsored by Lenovo, but it uses the category name as the sponsor, even though that category has both articles and native advertising. The original example disclosed the sponsor in the category, but the new example doesn't. In fact, for Lenovo ads, the only consistent thing I could see is that there's a Lenovo logo in there, but it's an image with alt tag "lenovo-inline-from", which is inconsistently placed, and not a reliable method of sponsor detection.
Also, this is a bit of a hack, in that we're intentionally silencing warnings about infinitely-scrolled content. The underlying issue is that when you request a page from Daily Beast, they're actually loading three or four other articles which may or may not be native advertising. I do not believe we have APIs for this.