Code Monkey home page Code Monkey logo

hackernew's Introduction

HackerNew

A chrome extension to add requested and missing functionality to hacker news including quick user profiles, inline replies, story filtering and more.

Usage

Install from the Chrome Webstore to receive automatic updates:

https://chrome.google.com/webstore/detail/lgoghlndihpmbbgmbpjohilcphbfhddd

Features

  • Improved readability design
  • User following
  • Retina screen support
  • Quick inline replies
  • Quick profiles with social network info when hovering over usernames
  • Filtering of stories based on terms and phrases / domain or username

Development

This code is old, it's not good, there are jQuery selectors all over the place and It's probably best rebuilt from scratch. You've been warned :)

License

HackerNew is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with it. More Information

Credits

hackernew's People

Contributors

simonbrown avatar thomseddon avatar tommoor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hackernew's Issues

Timeouts when posting comments, text lost when hitting the back button.

If you take too long to post a comment, clicking submit leads to an expired link page. It also happens without the extension.

The problem is that, with vanilla HN, the back button restores the content of the textarea. With the extension, the reply box is collapsed, and when you expand it, your comment is gone.

I've lost two comments because of this.

Smart auto-collapse comments

Basically, I guess like many users, I want to read most interesting comments first.

Why not going for the following algorithm:

Comment #1
  Comment #1.1 
  Comment #1.2
Comment #2 
  Comment #2.1
if (Score(Comment) > Score(NextParent(Comment))) { 
  #displayed 
} else { 
  #collapsed 
}
# with NextParent(Comment#1.1) = Comment#2
# NextParent(Comment#2.1.3) = Comment#2.2
# etc.
# and Score() from the official formula: https://news.ycombinator.com/item?id=1781013

as initial setup and recalculated on every uncollapse event.

I can PR if desired.

Commenting broken with this extension

Hey, the last few days I haven't been able to comment using this extension. I disabled it and I was able to comment using HN's normal style.

Thanks for the extension, I enjoy it a lot!

Link to Google cache version of the page

What do you think about adding a link below the link to the news article that points to the Google cache of the page? It'd be really useful for when the site goes down.

No longer available :(

I switched computers and to my dismay, this doesn't seem to be available in the chrome store anymore. I love this extension, and have been using it for years. It's hideous reading the regular site again lol. Is there anything I can do to help maintain this?

Increase article density

Original HN has higher stories/page ratio. Perhaps by a combination of decreasing article title size and article margin?

Show tooltip on click

Hi! First of all I'd like to say thanks and great job on the latest update! The ability to reach the search box was really necessary.

I really like this extension for various reasons:

  1. Almost white background and blue links help readability and usability
  2. Reply-on-place is super useful.

That said, something that's always bugged me is that tooltips open on mouseover. I keep opening them when I don't really want to. And they don't close on mouseout! Could you make them open on click, use a time threshold or add the option to change the trigger event?

Thanks!

PS: you missed a pixel here :P
Captura

Is repo not up to date?

I was investigating the commenting bug a little, and I loaded the unpacked extension. It's on version 1.2.3, but the version in the chrome store is 1.3.0.

@tommoor do you need to push to master or something? Or is this simply an inconsistency in the chrome store?

highlighting of followed users broken

Expected: When I follow a user, I would see future instances of their name styled with an orange background.

Actual: There is no visible difference. If I hover over their name, the tooltip shows I'm following them, but I see no styling differences.

I've tried disabling all my other Chrome extensions except this one, and I'm still seeing this behavior.

If I add the highlight class by hand to an hnuser element, I get the expected highlighting.

I don't remember when this started (stopped!) happening, but it's been at least a few months. Current Chrome is 57.0.2987.133, Mac OS 10.12.4

(Thanks for the extension btw, it's very useful!)

Options...

I'd love some preferences, since some of my desired features, I doubt everyone else wants.

  1. I'd like to modify your color scheme.
  2. I'd like to just eliminate all comments and the comment box.

Do I need to cut my own version, or do you think there's interest in adding some options to the extension?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.