Skip to content

ZYinMD/hacker-news-keyboard-navigation

Repository files navigation

Hacker News keyboard navigation (chrome extension)

Background:

Hacker News has a unique feature that reddit and other forums don't have - the "hide" button.

In theory, you may scan through the titles and click "hide" on each one you know you won't read. The benefit is when you come back later next time, you won't have to scan through those titles again.

This sounds great, except nobody does it, because it's too many clicks.

We aim to solve this with keyboard:

Use:

Install this chrome extension, then on Hacker News:

: go up and down the list

: not interested / hide

: open link (background new tab)

Enter : open link (foreground new tab)

Space : open comments

Customize / fork:

No chrome-extension-knowledge required. All you need is to read src/scriptTag.js.

There's no compiling / bundling, all files in src are used by the browser as is.

After reading src/scriptTag.js, if you feel like changing something, here's what to do:

  1. Clone this repo.

  2. Visit chrome://extensions/.

  3. Uninstall this extension (assuming you have installed it).

  4. Turn on "Developer mode" on the top right.

  5. Click "Load unpacked" on the top left, in the folder you just cloned, select the ./src folder.

  6. Now you're running a local version of the extension. All code changes will reflect.

Note: in most cases, changes take effect on reloading Hacker News, because the script tag is injected on page load. If you changed things outside of the script tag (i.e. extension related file), you may need to click the ⟳ button on chrome://extensions/ to make it effective.

PR:

Communicate first.

About

Add keyboard navigation for the Hacker News website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published