Hacker News new | past | comments | ask | show | jobs | submit login

Sure. It was quickly written in TypeScript nine hours ago. Google provides updates of the sub-DOM using JSON via AJAX. They use CSS class names like `._Lzm` and `._pRo`; similar to those in the HTML version of Google Mail.

http://pastebin.com/50fS83qG

Sample output (a few hours ago):

[["electoral vote","Trump 150 (120 needed) — Clinton 109 (161 needed)"],["popu lar vote","Trump 49% (35,302,284) — Clinton 47% (33,652,539)"],["progress","47 % reporting"]]

Sample output (now; notice that needed electoral votes is changed to total popular votes):

[["electoral vote","Trump 276 (57,246,646 votes) — Clinton 218 (56,294,331 votes)"],["popular vote","Trump 48% (57,246,646) — Clinton 47% (56,294,331)"],["progress","88% reporting" ]]




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: