Shows the top hacker news articles for a random time in history (excluding the current year)
Copy and past the code below into your web browsers console
dateRange = 1
year = Math.floor(Math.random() * ((new Date()).getFullYear() - 2010) + 2010)
day = Math.floor(Math.random()* 365)
start = new Date()
start.setFullYear(year)
start.setDate(day)
end = new Date()
end.setFullYear(year)
end.setDate(day + dateRange)
url = "https://hn.algolia.com/?query=&sort=byPopularity&prefix&page=0&dateRange=custom&type=story&dateStart=" + (+start).toString().slice(0, -3) + "&dateEnd=" + (+ end).toString().slice(0, -3)
window.location.href = url
This is a great way to get some interesting links and comment threads while occasionally observing progress (or the lack thereof).