Skip to content

Comment on A Hacker News vote button

Comments

is there a demo somewhere? I tried to do something similar but the ycombinator.com domain returns the "X-Frame-Options:deny" header which makes iframing impossible. Also in order to vote by simple GETting a url you have to include a CSRF token as a URL parameter.

Check one of the bgr.com articles, they have it installed in the sidebar.

It doesn't seem to work. Check out any of the articles submitted to HN:

http://www.hnsearch.com/search#request/all&q=bgr.com&...

They all show "submit". I re-submitted one of the stories myself. Still shows "submit" as the HN button.

EDIT: Ok apparently it does work after I submitted a story through it (cold cache?) But it's still pretty meh, really just a glorified <a><img></a>

There is a bit of lag for the hnsearch API to pickup the latest vote count.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.