imdj / hnrelevant Goto Github PK
View Code? Open in Web Editor NEWA browser extension that shows relevant submissions on Hacker News
Home Page: http://hnrelevant.vercel.app/
License: MIT License
A browser extension that shows relevant submissions on Hacker News
Home Page: http://hnrelevant.vercel.app/
License: MIT License
One hiccup in adapting manifest v3 to Firefox is host_permissions
. Chrome and Firefox handle thing differently in this case, Chrome before installation will prompt the user for confirmation to 'Add extension' with a summary of what it can access, while Firefox treats these permissions as opt-in where the user is expected after installation to manually visit the extensions page and grants its permissions [0]
MV3 treats host permissions (listed in the extension manifest) as opt-in.
For reference check: https://developer.apple.com/news/?id=qiz0arxc
So you can exclude irrelevant keywords from search and add custom one to help when needed
Implementation: We can use a customize
button that reveal a menu of options and checkboxes
query
parameter. More precise, Useful for previous discussions or mentions.similarQuery
(default)Submissions and comments on Hacker News share the same URL format:
/item?id=38309611
/item?id=38310213
Right now, the extension relies solely on the manifest's content_scripts
key and runs on any page it's allowed on, i.e: pages that matches *://news.ycombinator.com/item*
We have to implement some safety rail to detect submission pages and further limit execution
Add a tooltip to the query customization field with a collection of hints on how to improve the quality of results.
Example:
Selecting different options from "number of results" dropdown is supposed to regenerate search results for instant feedback. At the moment, in manual mode, the results are fetched even if the user hasn't requested a search already
Expected behavior: Not fetching results in manual mode other than when a user explicitly clicks submit
Right now time is displayed in relative format as string eg: 3 years ago, 10 months ago, etc
To improve accessibility and UX we can follow similar structure to Hacker News
<span class="age" title="2024-01-24T18:14:17">
<a href="item?id=">6 hours ago</a>
</span>
but replace <a>
with the more semantically appropriate <time>
This extension is insanely useful. Would love to see a Firefox version, opening this issue to explore the possibility.
Need more robustness regarding DOM structure
For example: When the death bar is added, the extension fails to display because the set node structure is no longer valid
Consider converting the sidebar to more compact form that integrate better with vertical layout on small screens
Add persistent preferences with options to:
Example: To Build a Top Performing Team, Ask for 85% Effort where the API request currently returns a bad request (status code: 400) due to the Percent sign %
passed as part of the query
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.