3 ms·
A link to http://news.ycombinator.com/submitlink?u=[URL http://news.ycombinator.com/submitlink?u=[URL OF PAGE HERE]&t=[TITLE OF PAGE HERE] will send the user to
by templaedhel 16y ago
A link to http://news.ycombinator.com/submitlink?u=[URL http://news.ycombinator.com/submitlink?u=[URL OF PAGE HERE]&t=[TITLE OF PAGE HERE] will send the user to the submitting link page, so they can just click on the submit button there. That's what the bookmarklet does. If a post has already been submitted, a resubmit counts as an upvote. Getting the comment count/number of upvotes it harder, as to my knowladge HN doesn't have an API for that.
- apotheon 16y agoHm. I tried that -- but I guess I must have screwed it up somehow when I tried it, because it didn't work. Thanks for confirming I had the right idea the first time. I'll try it again. I frankly don't much care whether I can get the number of upvotes for display at my site, just to be clear. It'd be nice to get the number of comments (or the fact there aren't any, or that there's no submission at all), though. Maybe I should request a feature for that purpose.
- apotheon 16y agoIt turns out it worked when I did it this time. I must have had an elusive typo in my previous attempt. Thanks again.