Ask HN: What tips and tricks do you have for new HNers?

13 points by pitaj ↗ HN
I'm pretty new, but here's a few things I've learned

- Use `>` (not code blocks) for blockquotes [1] - Read and consult the Guidelines and FAQ - If you dislike the "brutalist" aesthetic, you can use a userstyle to improve your experience. I use [2] - If you would prefer for comment to still be shown, but their replies hidden, you can change that with CSS [3] - If you want automatic code highlighting in code blocks, you can use a simple userscript [4]

[1] You can use this script to automatically convert `>` to blockquotes on page load. Could probably be done better but it works for me ¯\_(ツ)_/¯

    [...document.querySelectorAll('.comment [class^="c"]')]
      .filter(x => /(^|>)\s*>/m.test(x.innerHTML))
      .forEach(x => {
        const out = x.innerHTML
          .replace(/(^|>)\s*&gt;(.+?)(?=<|$)/mg, '$1<blockquote><p>$2</p></blockquote>')
          .replace(/(?:<p>(<blockquote>))|(?:(<\/blockquote>)<\/p>)/g, '$1$2')
          .replace(/<\/blockquote>[\s\n]*<blockquote>/g, '')
          .replace(/(?:<i>(<blockquote>))|(?:(<\/blockquote>)<\/i>)/g, '$1$2')
          .replace(/(?:(<blockquote>)<i>)|(?:<\/i>(<\/blockquote>))/g, '$1$2');
        x.innerHTML = out;
      });
[2] https://userstyles.org/styles/22794/a-dark-hacker-news [3]

    .noshow.comment {
      display: block;
    }
[4]

    var script = document.createElement("script");
    script.onload = () => {
      const elems = [...document.querySelectorAll('code')];
      elems.forEach(elem => hljs.highlightBlock(elem));
      elems.filter(elem => elem.parentNode.tagName !== 'PRE').forEach(elem => elem.classList.add('not-block'));
    };
    document.head.appendChild(script);
    script.src = 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js';
I'd like to know what some of HN veterans do to make their experience better on this site. Do you access HN from Lynx on your custom-built Gentoo machine?

5 comments

[ 3.8 ms ] story [ 23.1 ms ] thread
Read and use the links at the bottom of every page. There's a lot of useful stuff there.

Check out the posts and comments by HN's top users (who can be found on the "Lists" link at the bottom of every HN page).

Try to be nice or at least civil to other HN users.

Don't make reddit-style jokes here--they won't go over well.
Yes indeed, it's a place for constructive conversation.

There's no problem with humour in your comment but that shouldn't be the point of your comment (at least IMO).

Before anything else read the guidelines, they're short, easy to understand (IMO) and practical.

It's never a game for points.

Before voting on an article (link) make sure you've read enough of the article to actually place value (or lack there of) in it, again it's not a game for points.

If someone is rude, overly negative towards someone else without being constructive it's totally within anyone's rights to politely refer them to the guidelines.

Practise empath and respect for others regardless of their personal opinions (as long as they are framed as opinions!).

Learn from anything you were wrong / mistaken about and better yet - share what you learnt and how you discovered you were mistaken with others, that can really help communities prosper.

Tldr; Read the guidelines, if you're going to be critical - be constructive (which is a great thing!), learn and share with others not for points, but for the greater good and practise empathy.

Not sure I'm a veteran but I try upvote posts, not on what I find interesting, but what could be useful for startup communities.

I dont want HN descending further to Reddit circle jerking over political, current or other popularity issues no matter how important and/or interesting they are.

hide seen links on firefox with: https://github.com/GMouron/HNMarkAllRead (useful to also have some stylish CSS that colors actually visited links different than "seen" links)

So useful I can't stand browsing on my phone any more because I'd have to see the same * again on my desktop.