top | item 39241240

Show HN: Hacker News Userscript Written in Rust WASM – Filtering and Hiding

2 points| drakerossman | 2 years ago |github.com | reply

Hi everyone,

I present you the Hackernews Userscript - a userscript written in Rust Wasm that provides functionality to filter stuff based on keywords, as well as implements soft-hide: HN's default "hide" button behavior stores hidden items server-side, plus it pulls the items to the front page from the next one, so the page is always full with 30 items. Userscript's "hide" hides the stuff locally, and it does not pull anything, so you can hide the entire page to save your valuable attention. You can also use this function to mark the already-read articles.

I've had this idea to implement such a script since quite a while ago, in fact, back when Wordle was all the hype. Now we got some other hypes, and all of that is filterable - via a textmatch, or via regex.

The script is written in Rust, since I wanted to checkout the wasm bindgen functionality, and also for the peace of mind did not want to use JS.

It is published at both Firefox and Chrome web stores:

- https://addons.mozilla.org/en-US/firefox/addon/hackernews-us...

- https://chromewebstore.google.com/detail/hackernews-userscri...

I've also posted the extension page to my blog: https://drakerossman.com/blog/hackernews-userscript-in-rust-...

Looking forward for to implement more features, stuff like favorites, autoupdate, etc., and currently refactoring the codebase.

Your feedback is very welcome!

1 comment

order
[+] kdklol|2 years ago|reply
This is a nice and easy-to-use tool, it's a shame your submission died!