• Stars
    star
    807
  • Rank 56,489 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

✨ Hacker News, but refined — Interface tweaks and features to make the HN experience better

Refined Hacker News

Licence Chrome Web Store Mozilla Add-on Made with love in India

✨ Browser extension that adds useful features and tweaks a few stuff on Hacker News to make the experience better... without changing the look and feel.

The minimalist design of Hacker News is best at offering news the way we like it. Yet there are a few small interface tweaks and additional features that can drastically improve our experience while browsing through items and comments which this extension implements.

Hopefully, in due course, a few of these tweaks can be implemented by Hacker News themselves. You can help too by emailing [email protected]!

Inspired by Sindre Sorhus's extension Refined GitHub.

Contents

Install

Highlights

Reply to comments without leaving page Navigate through items and comments using your keyboard
Easily favorite items and comments Hide and sort stories, and auto-refresh the page from the options bar
Show user or item information when hovering over the links Highlight new, unread comments on subsequent visits

Added features

UI tweaks

  • change-dead-comments-color If "showdead" is enabled in user settings, color of dead comments changes to light-red (#d89899) instead of the barely visible light-grey (#dddddd).
  • comments-ui-tweaks Tweaks include:
    • Add border to indentation to make to show indent separation between comments.
    • Custom indent-width (default is 40px), which can be set using the extension popup.
    • Highlight item's original poster, displayed as [op] next to username.
    • Make <pre></pre> tags more visible.
  • highlight-unread-comments Highlight new and unread comments after your second and subsequent visits to the comments page of an item. Data resets after three days.
  • backticks-to-monospace Convert backticks-wrapped (`like this`) inline text to monospace (like this).
  • linkify-user-about Linkify all links and emails IDs that are on the "about" of the user's profile.

More actions

More info at a glance

Miscellaneous

  • input-field-tweaks Tweaks include:
    • Show how many characters are left in the 'title' field when submitting an item.
    • Increase width of 'title' field dynamically.
    • Increase height of any textareas (even those that are dynamically created), dynamically.
  • on-link-focus-comment Navigate to that specific comment when clicking the 'on: ' link.

Keyboard bindings

On items and comments

On items/stories:

Key-binding Action
J Next item (down)
K Previous item (up)
Enter
Ctrl/Cmd+Enter
Open link and focus tab
Open link in the background
Esc Un-highlight item
U Upvote item
F Favorite item
C
Ctrl/Cmd+C
Open item's comments on same tab
Open item's comments on new tab
Shift+X Flag/unflag item
Shift+H Hide item

On comments:

Key-binding Action
J
Shift+J
Next comment (down)
Next direct sibling comment
K
Shift+K
Previous comment (down)
Previous direct sibling comment
Enter Toggle comment
Esc Un-highlight comment
U Upvote/unvote comment
D Downvote/undown comment
R Reply to comment
F Favorite comment
Shift+X Flag/unflag comment
0 to 9 Open numbered/index reference link in the comment
Eg: [1] https://mihir.ch ...

On input fields

Key-binding Action
Ctrl/Cmd+Enter Submit form
Ctrl/Cmd+I Italicise selected portion (wrap selected text in asterisks)

Site-wide navigation

Key-binding Action
Alt+H Home
Alt+S Submit
Alt+N New
Alt+O Show HN
Alt+A Ask HN
Alt+P Profile
Alt+T Threads

Abandoned features

  • blur-story-scores
  • custom-font-face
  • hide-bad-words
  • load-more-stories
  • scale-font-size
  • show-karma-left

Customization and Options

Extension options can be found in the extension's popup. There, you can

  • specify which features you want to disable by entering features' IDs (listed above), preferably listed on new lines
  • specify custom CSS, which is useful to override CSS implemented by this extension, or any other UI tweaks you prefer.

Contribute

Issues and feature requests can be created on the issues page.

For development contribution, please refer to the contribution guide.

Donate

Refined Hacker News was made by me during my study-breaks and free time. If you like and have enjoyed it, please consider donating a small amount (any amount will be really appreciated!) to support and sustain its development. Thank you!

Patreon

Donate

Buy Me A Coffee

Extension Permissions

No data is ever uploaded to a remote server, or is sent anywhere else. All data that is used by this extension is stored locally.

storage Required to save extension options in sync storage area so that your options are synced across devices. Also used to save other data such as list of read comments (highlight-unread-comments) locally.

history Required for hide-read-stories feature. The feature needs to check whether the story has been visited by you in the past, that is, whether that story is in your history.

tabs Required to open a link in a new tab, but in the background. Also required to send and receive data between the extension popup, background scripts and the active Hacker News tabs.

*://news.ycombinator.com/* Required to fetch subpages, submit forms, inline replies, etc.

*://hacker-news.firebaseio.com/v0/* Hacker News API - required to fetch item and user details.

*://title.mihir.ch/* Required by the fetch-submission-title-from-url feature to fetch the title. Source: plibither8/url-title-api.

*://wayback.now.sh/ Required by archive-submission to view archived version of webpage or save the webpage to the Wayback Machine. Source: plibither8/wayback.

*://hn.algolia.com/* Required by show-simillar-submission and list-hn-polls-separately features to get filtered search results.

License

MIT

More Repositories

1

2048.cpp

🎮 Fully featured terminal version of the game "2048" written in C++
C++
2,171
star
2

markdown-new-tab

🗒️ ⏰ ✅ Save notes in Markdown directly in the 'New Tab' page
JavaScript
818
star
3

licensed

⚖️ ✔️ licensed is an interactive command line tool to help you choose and add licenses to your projects
JavaScript
222
star
4

vscode-remove-comments

🚫 VS Code extension to remove all comments from your code at once — 60+ languages supported
TypeScript
37
star
5

url-title-api

🔗 Tiny API to get the title of webpage from its URL
TypeScript
32
star
6

asciinema-player-for-github

🎬✨ Browser extension to automatically detect asciinema links in a project's README and embed the asciinema player in its place
JavaScript
32
star
7

ulauncher-vscode-recent

💻 Open recent VS Code folders and files using Ulauncher
Python
24
star
8

made-with-love-in

🛠️ ❤️ 🗺️ 🛡️ — Mircoservice for serving and listing "Made with love in <country-name>" badges
HTML
23
star
9

jobber

💼 Super simple API to fetch job listings from popular job boards (Ashby, Greenhouse, Lever, etc.)
TypeScript
20
star
10

resume

💼 Source code to my resume
Svelte
17
star
11

github-feed-notifier

:octocat:🔔 Desktop notifications for your GitHub dashboard — Native, cross-platform and configurable
JavaScript
16
star
12

urlwatch-ui

🌐 An intuitive and simple GUI for managing urlwatch
Svelte
11
star
13

bookbroker

🤖📚 Telegram bot to convert and email PDFs, EPUBs or MOBIs to your Kindle
TypeScript
11
star
14

otp-forwarder

💬 Forward OTP SMS's from my phone to my laptop as a desktop notification
TypeScript
11
star
15

hn-faves-api

🌐 Tiny API to get user's favorited items on Hacker News
TypeScript
11
star
16

hdfc-transaction-notify

💰🔔 Notify me on Telegram whenever a new transaction takes place in my HDFC bank account.
TypeScript
10
star
17

geosvg

🗺 Generate an SVG or its Cartesian points' representation of a path from a GPX file or list of coordinates
TypeScript
10
star
18

delhi-metro-api

🚇 (unofficial) RESTful API for the Delhi Metro [Work in Progress]
JavaScript
10
star
19

wayback-sitemap-archive

🏛️ Archive all pages specified in the webpage's sitemap to Internet Archive's Wayback Machine
JavaScript
8
star
20

ulauncher-zoom

📹 Join a Zoom meeting quickly from Ulauncher
Python
7
star
21

mhr

🔗 A simple URL shortener, controlled via a Telegram bot
TypeScript
7
star
22

mihir.ch

🌐 My personal website's source code
Pug
6
star
23

projectbeta.tech_main

Website for ProjectBeta: Sanskriti School's IT Club.
JavaScript
6
star
24

github-status-listening-to

🎧 Update my GitHub status to whatever song I'm listening
TypeScript
6
star
25

gh-followers-tracker

:octocat: Tracking my GitHub following and un-following with notifications on Telegram (why not lol)
TypeScript
6
star
26

wayback

🏛 Microservice that redirects to archived version of the URL if found, otherwise saves it to the Internet Archive
JavaScript
6
star
27

index

📂 All my repositories and projects I have worked on, indexed.
JavaScript
5
star
28

typescript

📦 Bare minimum TypeScript project template to get started quickly
TypeScript
5
star
29

coinswitch-history

🪙 Explore and download history and timeseries data of all crypto-INR pairs offered by the CoinSwitch exchange
JavaScript
5
star
30

toget

🏄‍♂️ Proxy POST/PUT/PATCH requests through a GET request
TypeScript
5
star
31

posthog-proxy-workers

🦔 Reverse proxy server for PostHog hosted on Cloudflare Workers
TypeScript
4
star
32

ulauncher-nordvpn

🔑 Connect to and disconnect from NordVPN from Ulauncher
Python
4
star
33

github-hook-script-runner

🪝 Run a shell script on your machine when you push to a repository - a mini, self-hosted CI/CD 💚
JavaScript
4
star
34

recent-activity-updater

✨ Script to update my "recent-activity.json" daily
JavaScript
3
star
35

browser-extension-starter

📦 Cross-browser extension starter template
JavaScript
3
star
36

iiitd-bleh-mail-filters

Curated mail filters to automatically archive the junk IIITD mails
3
star
37

fitbit-heart-rate

💓 Collect lifetime heart rate data on Fitbit
JavaScript
3
star
38

workers-bun-hono-template

🍔 A template for creating a Cloudflare Workers project with Bun and Hono
TypeScript
3
star
39

gitlist-sync

🔄 Setup and sync mirrors of GitHub repositories to your local machine
JavaScript
2
star
40

chrome-view-images-button

Chrome Extension to get back the "View Image" button in Google Image search results!
JavaScript
2
star
41

wakalogger

🕒 Log your daily WakaTime coding activity to a secret Gist
JavaScript
2
star
42

status.mhr.cx

⬆️ Status page for my personal VPS @ mhr.cx
2
star
43

periodic-table-words--javascript

Program written in NodeJS to determine whether a given string can be formed by some combination of the symbols of elements of the periodic table.
TypeScript
2
star
44

iiitd_cse545-fcs_ta

Semester 7: Foundations of Computer Security (Teaching Assistantship)
TypeScript
2
star
45

iiitd_cse232-cn

Semester 5: Computer Networks
C++
2
star
46

mihir.ch-redirector

🔀 Redirect all HTTP requests to mihir.ch
TypeScript
1
star
47

ping-tg-notify

🎯 Ping to endpoint and notify on Telegram
JavaScript
1
star
48

iiitd_cse231-os

Semester 3: Operating Systems
C
1
star
49

plibither8

1
star
50

tg-bots

🤖 Tiny service to send messages with a uniform interface for all my Telegram bots
TypeScript
1
star
51

periodic-table-words--python

Program written in Python to determine whether a given string can be formed by some combination of the symbols of elements of the periodic table.
Python
1
star
52

npx-plibither8

📦 `$ npx plibither8`
JavaScript
1
star
53

iiitd_cse222-ada

Semester 4: Algorithm Design and Analysis
C++
1
star
54

bluecoins-hdfc-auto-importer

💰🔔 Auto-import transactions from my HDFC bank account into the Bluecoins app
TypeScript
1
star
55

percepio-2.0

👓 [DES130 Major Project] Taking notes made simple — in the air, on the go
C++
1
star
56

posthog-filter-out-plugin

🦔 Injest only those events satisfying the given filter conditions
TypeScript
1
star
57

big-number.js

big-number.js is a calculator for arbitrarily large integers, for JavaScript.
JavaScript
1
star
58

ultimate-tic-tac-toe

A simple JS+HTML implementation of the 2-player game Ultimate Tic Tac Toe
HTML
1
star
59

sourcegraph-monitor-webhooks

🕵️ Simple server hosting a collection of webhooks for Sourcegraph's Code Monitor
TypeScript
1
star
60

MatheTraffics-Niamat-Rai-2017

Presentation website for Sanskriti School's prize-winning project on investigatory mathematics: MatheTraffics, Niamat Rai Competition 2017
HTML
1
star
61

lastfm-top-artists

📈 Collect user's top artists through time
JavaScript
1
star
62

tiiime

⏳ [Byld Hackathon v16] Your personal, crowd-sourced timetable
HTML
1
star