How HN's upvote link works
Each link has an anchor tag like this: <a href="vote?for=4156127&amp;dir=up&amp;by=asto&amp;auth=12345&amp;whence=%6e%65%77%73" onclick="return vote(this)" id="up_4156127"> <img vspace="3" hspace="2" border="0" src="http://ycombinator.com/images/grayarrow.gif"> </a> The vote function looks like this: function vote(node) { var v = node.id.split(/_/); // {'up', '123'} var item = v[1]; // hide arrows byId('up_' + item).style.visibility = 'hidden'; byId('down_' + item).style.visibility = 'hidden'; // ping server var ping = new Image(); ping.src =…
What it does
In the maker’s words, at launch
Each link has an anchor tag like this: <a href="vote?for=4156127&amp;dir=up&amp;by=asto&amp;auth=12345&amp;whence=%6e%65%77%73" onclick="return vote(this)" id="up_4156127"> <img vspace="3" hspace="2" border="0" src="http://ycombinator.com/images/grayarrow.gif"> </a> The vote function looks like this: function vote(node) { var v = node.id.split(/_/); // {'up', '123'} var item = v[1]; // hide arrows byId('up_' + item).style.visibility = 'hidden'; byId('down_' + item).style.visibility = 'hidden'; // ping server var ping = new Image(); ping.src = node.href; return false; // cancel browser nav byId is getElementById. I don't know about you guys but I thought this was pretty neat!
Does the same job
all alternatives →- IMI made a tool to track the upvote/ranking history of HN submissions2021 · upvotetracker.com · ▲144
- EHExport HN saved links (upvotes) as JSON or CSV2016 · github.com · ▲82
- AHArchivy-HN – automatically save and download your upvoted HN posts2020 · github.com · ▲144
- QAQ&A for HN users2012 · askolo.com · ▲142
- SHShow HN my Hackathon Project: Visual Craigslist w/ HN's algorithm2011 · 5thavenue.chartboost.com · ▲42
The concept was to rethink the way we browsed Craigslist and shopped online. The main section, the "homepage" is a tree map of recent craigslist posting sorted by popularity using a slightly modified version of Hacker News' ranking algorithm. The newest page is a masonry view of the realtime stream of the craiglist posts as they are added to the system (much like Hacker News' newest page.) The top page is the masonry view version of the homepage. The game page is a FaceMash-like game for the posts, which influences the overall scores and popularity of items.
- BUBrowse, upvote and comment on HN from command line2023 · github.com · ▲9
Hi HN! I've built hnterminal, a pip package that lets you browse, upvote, and comment on Hacker News from your terminal. To get started: $ pip install hnterminal $ hnterminal hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation. Checkout the readme.
More life & fun this month
the category →- TL
Life & fun · 10d ago · louisabraham.github.io

Photosynthesis fires two of your iPhone
Life & fun · 28d ago · photosynthesis.camera
SoloUno▲310Take control of hair pulling, nail biting & skin picking
Life & fun · 28d ago · solouno.io

Scroll through all 43,252,003,274,489,856,000 reachable Rubik's Cube permutations.
Life & fun · 26d ago · everycube.alen.is


Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums. How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies. Repo and tests:…
Life & fun · 26d ago · baselashraf81.github.io
Launched alongside, June 2012
the whole month →- MI
Life & fun · 2012 · movies.io
- EW
Life & fun · 2012 · alpha.easel.io
- SE
Dev tools · 2012 · ironspread.com
- AN
Life & fun · 2012 · topiama.com
- TB
Life & fun · 2012 · photography.bastardsbook.com
- IL
Life & fun · 2012 · sotmclub.com