Skip to content

Hide Hacker News submissions from sources you don't want to see

License

Notifications You must be signed in to change notification settings

booleandilemma/hn-blacklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HN Blacklist

Tired of seeing articles from certain sources on Hacker News?

HN Blacklist is for you.

HN Blacklist is a userscript which can be run with tools like Greasemonkey and Tampermonkey right in your browser.

Find it on Greasy Fork, or copy and paste it right from here.

Filtering by domain

Simply modify hn-blacklist.js - adding the domains of sites you don't want to see articles from:

// Add sources you don't want to see here.
const blacklist = new Set(
    [
        'source:nautil.us',
        'source:fs.blog'
    ]
);

Filtering by title text

If you're tired of seeing articles mentioning "ChatGPT", for example, add the following to the blacklist:

// Add sources you don't want to see here.
const blacklist = new Set(
    [
        'title:ChatGPT'
    ]
);

All titles containing the string "ChatGPT" will be filtered out. This filtering is case-insensitive.

Filtering by user

If you want to filter out submissions by a certain user, prefix your blacklist entry with the string user:, followed by the username.

// Add sources you don't want to see here.
const blacklist = new Set(
    [
        'user:booleandilemma'
    ]
);

About

Hide Hacker News submissions from sources you don't want to see

Topics

Resources

License

Stars

Watchers

Forks