Need help with hackernews-button?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

igrigorik
416 Stars 26 Forks 42 Commits 2 Opened issues

Description

Embeddable Hacker News button + vote counter for your site

Services available

!
?

Need anything else?

Contributors list

# 21,427
Ruby
Chrome
html5
rubyml
28 commits
# 11,024
React
Webpack
prerend...
Vue.js
3 commits
# 11,101
JavaScr...
osx
opal
seleniu...
2 commits
# 26,175
Go
user-re...
Django
scikit-...
2 commits
# 147
Shell
dotfile...
ecmascr...
Angular
1 commit
# 2,873
Rails
Less
Jekyll
link-ch...
1 commit

Embeddable Hacker News vote / counter button

HN Button

Async, embeddable submit + vote counter button for Hacker News.

  • If the story has not been posted to HN, "Submit" button is shown, otherwise latest point count is displayed.
  • Auto-detects Google Analytics and registers clicks events (see reports under
    Traffic Sources > Social > Social Plugins
    ).

Embedding the button

Step 1, place the HN link where you want the button appear on the page:

Vote on HN


Vote on HN

Step 2, include the (async) javascript file:


Note: you can safely embed multiple buttons on the same page.

Misc

  • Kudos to @sbashyal and @stbullard for the button styling (hnlike.com)
  • Kudos to Algolia for an awesome HN API
  • (MIT License) - Copyright (c) 2012 Ilya Grigorik

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.