Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Bekt/hn-realify
:boom: HackerNews Realified -- Never refresh HN again
https://github.com/Bekt/hn-realify
Last synced: 16 days ago
JSON representation
:boom: HackerNews Realified -- Never refresh HN again
- Host: GitHub
- URL: https://github.com/Bekt/hn-realify
- Owner: Bekt
- License: mit
- Created: 2016-01-24T00:49:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-10T15:45:23.000Z (over 8 years ago)
- Last Synced: 2024-02-28T01:34:55.792Z (4 months ago)
- Language: JavaScript
- Homepage: https://chrome.google.com/webstore/detail/egimmhannkdglaafhglalfpfddkfhffk
- Size: 14.6 KB
- Stars: 9
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-hacker-news - Hacker News Real-Time
README
## Hacker News Realified
HN Realified is a basic Chrome (others soon?) extension that auto-updates select
[Hacker News](https://news.ycombinator.com/) pages.
The code makes use of HN's Firebase-based API.## Installation
Google Web Store:
[![](https://i.imgur.com/Kb8UGkY.png)]
(https://chrome.google.com/webstore/detail/egimmhannkdglaafhglalfpfddkfhffk)## Known Caveats
HN servers and Firebase snapshots are not always synchronized in real-time.
This goes both ways:
(1) HN servers return stale content when Firebase already detected updates in the data,
and
(2) Firebase update broadcasts are delayed when HN servers are returning fresh data.Since this extension uses Firebase to subscribe for updates only and fetch HN servers
for the new HTML content, the page is not always updated in real-time because of the
two issues above.## Development
```sh
# Clone the project and cd into it.
$ npm install
$ npm run build:chrome
```## Contributing
If the project gains enough traction, below are some nice to have features I have in mind.
Feel free to implement any and submit a PR.* Firefox, Opera extensions
* Smarter page updates
* Currently stories are blatantly replaced via `innerHTML` with new HTML content
(fetched via an AJAX request). It would be nice to replace only changed items.
This will help with visual indicator.
* Visual indicators
* It would be nice to visually indicate when items are added/removed/moved.
* Auto-update point and comment counts
* Auto-update comments page