Automatic links to Hacker News discussions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
.gitignore
README.md
example.html
package.json
webpack.config.js
yarn.lock

README.md

YComments

A tiny script to embed discussions from YCombinator's Hacker News.

Usage

Put this in the <head> tag

<script src="https://cdn.rawgit.com/benwinding/ycomments/39084c44/dist/ycomments.min.js"></script>

Put one of these in the <body> tag

Auto Lookup (Page URL)

<div comments="auto"></div>

Specific Discussion

<div comments="16582136"></div>

Output

https://i.imgur.com/yGCb9yf.png

Features

  • 9 kb script minified.
  • Responsive layout
  • Collapsible comments

How was it?

Let me know! https://benwinding.com/contact