Skip to content

streamlined hacker news by nova

Screenshot of streamlined hacker news

Details

Authornova

LicenseWTFPL

Categoryhacker news

Created

Updated

Size2.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

fixes some of my personal annoyances with HN without changing too much

Notes

list of changes

  • adds padding to usernames so that all the subtext buttons line up
  • hides some elements like link age, score, etc
  • adds emoji icons to links based on where they link to
    • icons to indicate paywalled sites
    • icons to indicate video links
    • icons to indicate common sites like wikipedia, github, etc
    • icons to indicate sites with heavy bias
  • sets all the text to lowercase to make the site less noisy/attention grabbing

release notes

0.0.6

  • add new icon for hiring links

0.0.5

  • clumsily hide the flag button on the main page

Source code

/* ==UserStyle==
@name           streamlined hacker news
@namespace      userstyles.world/style/3152
@version        0.0.6
@description    fixes my personal annoyances with the orange website for computer boys
@author         nova
==/UserStyle== */

@-moz-document domain("news.ycombinator.com") {
     
    /* make the username a standard width */
    .hnuser
    {
        display: inline-block;
        width: 5rem;
    }

    /* hide link age and score*/
    .age,
    .score,
    #hnmain > tbody > tr:first-child > td:first-child > table > tbody > tr:first-child > td:first-child
    {
        display: none !important;
    }

    body,
    table
    {
        text-transform: lowercase;
    }

    td.title > a:before
    {
        content: " ๐Ÿ”— ";
    }
    
    /* 
     * don't show the flag button on the main page
     * i always click it by accident when trying to click hide
     * this still shows it on the comments page
     */
    table.itemlist a[href^="flag"]
    {
        display: none;
    }

    td.title > a[href*="wikipedia.org"]:before
    {
        content: " ๐Ÿ“– ";
    }

    /* video links */
    td.title > a[href*="vimeo.com"]:before,
    td.title > a[href*="ted.com/talks"]:before,
    td.title > a[href*="youtube.com"]:before,
    td.title > a[href*="youtu.be"]:before
    {
        content: " ๐Ÿ“บ ";
    }

    /* news for hackers */
    td.title > a[href*="github.com"]:before
    {
        content: " ๐Ÿ‘ฉโ€๐Ÿ’ป ";
    }
    
    /* hiring links */
    td.title > a[href*="lever.co"]:before
    {
        content: " ๐Ÿ•ด ";
    }
    
    /* paywall sites */
    td.title > a[href*="nytimes.com"]:before,
    td.title > a[href*="economist.com"]:before,
    td.title > a[href*="wsj.com"]:before,
    td.title > a[href*="washingtonpost.com"]:before,
    td.title > a[href*="reuters.com"]:before,
    td.title > a[href*="ft.com"]:before,
    td.title > a[href*="bloomberg.com"]:before
    {
        content: " ๐Ÿ’ฐ ";
    }

    /* propaganda sites */
    td.title > a[href*="unherd.com"]:before,
    td.title > a[href*="brookings.edu"]:before
    {
        content: " ๐Ÿ‡บ๐Ÿ‡ธ ";
    }
}

Reviews

No reviews yet.