Article word count: 214
HN Discussion: https://news.ycombinator.com/item?id=18382687
Posted by colinprince
(karma: 14173)Post stats: Points: 172 - Comments: 50 - 2018-11-05T14:53:30Z
\#HackerNews #2013 #and
How does it work?
If it returns a wrongly-sorted list (or you just want to keep playing), a link to "Try the next answer" will appear under the result.
You can view the code on GitHub. If you see any bugs (or just want to berate me), please file an issue.
Is it safe?
Uh… it evals both user input and random code, unchecked, from an external site. This is what security-minded folks would refer to as Very Bad™.
That being said, for what it is, it should be relatively harmless. The site will only fetch accepted answers, and it only uses answers that were posted before the xkcd was released (meaning that if someone posted malicious code now, it wouldnʼt matter). It also searches for potentially-malicious code (like the word "cookie"), and skips those. Itʼs definitely not the safest thing, however at most it would probably just crash your browser.
HackerNewsBot debug: Calculated post rank: 131 - Loop: 212 - Rank min: 100 - Author rank: 81