Greasy Fork is available in English.

HN Blacklist

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

这些是代码更新过的版本。 显示所有版本

  • v3.0.0 2024-12-28
    • This is a big release with major functionality changes:
      • Blacklist entries can now be added to the userscript's UI directly (it's at the bottom of of the page)
      • Modifying the code directly is no longer required
      • This means that upgrading the script will no longer clear out existing entries
    • Display version on UI
    • Include hyperlink to Greasy Fork
    • Internal updates to the test framework
  • v2.3.1 2024-12-24
    • Two tests added
    • All tests hardened:
      • Unexpected test failures shouldn't prevent other code from executing
      • Previously, a failure could halt the entire script
      • I'm preventing this now with my own simple test framework
  • v2.3.0 2024-12-24
    • Variables used for controlling the script have been moved to the top. This means less scrolling
    • A failing test will now prevent any filtering from being attempted
      • If a test fails, it means that HN has changed their HTML, so the chances of filtering working are low.
      • This is easily configurable, so if you want the script to try filtering anyway, in spite of failing tests, you can make it do so
    • Will now display the time it took the script to run
    • Added a test
    • Split code into different classes, making it easier to test and reason about
    • Lots of documentation updates
    • Lots of miscellaneous internal updates
  • v2.2.0 2024-12-23
    • Fixed a test
    • Added strict mode
    • include replaced with match in header metadata
    • Now displaying if the user has provided invalid entries or no entries
    • More accurate logging
      • Logs will now show why a submission was filtered
      • Invalid entries will log as errors, not warnings
    • Bug fix: before users were blacklisted by partial match (a user of bob would match bobby). Users will now match exactly.
  • v2.1.0 2024-12-22
    • Added tests:
      • HN Blacklist will now run a series of tests to make sure it can filter out submissions effectively.
    • Added results display:
      • HN Blacklist will now display a summary of what it filtered out at the bottom of the page.
      • Thanks to Azazello for this feature request.
  • v2.0.3 2024-12-21

    This version just adds author and homepage userscript metadata.

  • v2.0.2 2023-02-14

    This version removes some unnecessary 'console.log' statements.

  • v2.0.1 2023-02-12

    Internal updates.

  • v2.0.0 2023-02-12

    This release adds support for filtering out submissions based on the user who submitted them.

    Filtering by domain now requires adding a 'source:' prefix. See the readme on GitHub or the description on Greasy Fork for more info.

  • v1.2.1 2023-02-12

    This release just includes internal updates.

  • v1.2 2023-02-11

    Updating to work with changes in HN's HTML.

  • v1.1 2022-03-10

    Title Substring Filtering

    You can now filter by title substrings.

    In the blacklist, just add a title substring you want to filter, preceded by the string "title:", like so:

    "title:Steve Jobs"

    And now HN submissions containing "Steve Jobs" will be filtered out. The filtering is case-insensitive.

  • v1 2021-05-29