HN Submit button  

I have been attempting to add “share” functionality to my website. Initially, I used the Digg button ( and Reddit button (

Next I wanted to add Hacker News button. But there was none. But then again, there was this bookmarklet ( So I created the required HTML to get the required functionality, just using the bookmarklet:

<a href="javascript:window.location=%22"> Submit </a>

Then I thought of making a Hacker News submit button, just like Reddit and Digg. So I decided to read the sources and build the HN button based on that.  Man, Digg’s JS was such mess (yes, it was the minified version, but still, far too many lines of code). Reddit’s was a great deal simpler, easy-to-read and intuitive. Check them out: and

So I modelled the HN button based on Reddits’ Javascript. Here it is: OR

To use it, simply include the following line:

<script type="text/javascript" src=""></script>

Here is the code:

Update: This article briefly made it to the front page of HN! I saw it at #19!. Here are the comments from HN: