I personally use the Tampermonkey extension, but I think others have criticized it for being closed-source and using Google Analytics.
Apparently Violentmonkey is a suitable replacement.
Once you install the extension, just load my userscript in and it'll take effect whenever you visit any HN page.