Code Monkey home page Code Monkey logo

hn-special's Introduction

HN Special — A Hacker News extension

A theme and extension for Hacker News that improves the look and feel and adds some interesting features.

Screenshot

The available features can be enabled or disabled based on your personal preference. New feature contributions are welcome!

You can install this extension from the Chrome Web Store.

Features

  • A modern looking visual theme
  • Infinite scrolling
  • Open links in new tab
  • More accurate domain names
  • Mark as read (thanks to @taeram)
  • Sticky header (thanks to @obeattie)
  • Grey visited links (thanks to @bjenik)
  • User information tooltips (thanks to sebmck)
  • Firefox support (thanks to PxlBuzzard and ColdenCullen)

Installing

Chrome

Go ahead and install HN Special from the Chrome Web Store.

Firefox

For now, download the .xpi from the Releases section.

Contributing

Please see the contributing guide »

Notable mentions

Many thanks to @taeram, @obeattie, @bjenik, sebmck and @messaged for the contributions!

License

HN Special is licensed under the MIT License.

hn-special's People

Contributors

andrewstuart avatar antoin-m avatar benoror avatar bjenik avatar coldencullen avatar gabrielecirulli avatar imkevinxu avatar inverse avatar jbrooksuk avatar jeffreyca avatar nfvs avatar obeattie avatar pxlbuzzard avatar raspo avatar saclark avatar sebmck avatar taeram avatar tlunter avatar willcosgrove 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  avatar  avatar  avatar  avatar  avatar  avatar

hn-special's Issues

High-contrast mode disabled?

I noticed with the September 11th update that the high-contrast mode doesn't seem to be working anymore. All links now show up as orange, even with the mode enabled. Is this an intentional change?

Uncaught TypeError in visual_theme.js line 200

An uncaught TypeError occurs on line 200 in visual_theme.js, resulting in missing up/down vote arrows (and possibly other issues with the page). The assignment of img on line 199 results in null, leading to the error on 200. Presumably the page source changed today, as this was working fine until some time today.

This occurs in Chrome 41.0.2272.89 m on Windows 7 as well as 41.0.2272.118 on XUbuntu 14.04.

Repro steps:

Load any HN item, e.g. https://news.ycombinator.com/item?id=9383905.
Open JS console and note this error, along with missing up/down arrows on all the comments.

Make color(s) configurable

The easiest way is probably to allow user to configure one main color and derive all other colors from it (lighten, darken, etc).

Not really an issue...

This isn't really an issue but I wanted to let you know that this HN theme kicks ass! Amazing job.

A suggestion: go to next comment on the same level

So imagine that you're reading some comments on HN thread. You read the first comment and want to go to the next comment on the same level without reading all the replies to the first comment. There could be an button to a comment that scrolls the page to the right place. I always scroll by hand! :(

What do you think? :)

Move settings to options (background) page

@gabrielecirulli It's kind of starting to get messy now when you click on gear icon. There 11 options, should be 5 max IMHO. We can make some options mandatory like user tooltips, but anyway we should think about moving on... Your thoughts Gabe?

Increase contrast

I noticed that the color scheme is just a little too similar in contrast, which makes it slower to read the article titles (especially when visited). I don't have any vision trouble at this distance, so it genuinely is the contrast of the orange/white colors.

Respect topcolor setting

I ❤️ this extension, it makes reading HN a pleasure compared to it's primitive HTML experience.

One thing I'd like — and will do so myself when I find time — is for HN Special to respect the setting of topcolor in user preferences. This would then set the colour for the bar and the buttons etc.

add link that opens comments and article in new tabs

Just a simple request. Insert a new link next to the comments link that once clicked on opens up 2 new tabs, one with the article and one with the comments.

example:
125 points by qubitsam 3 hours ago | 23 comments (l+c)

something like that

Visual style cannot be turned off

Investigating #48, I realized that visual theme cannot be turned off. Clicking it show it is turned off, then apply reloads the page, and it is back on again.

Script error in the new Chrome

On line 428:

  chrome.permissions.contains({ permissions: modulePermissions.permissions }, function (isEnabled) {

I get blank page and this error in the dev console:

Uncaught TypeError: Cannot call method 'contains' of undefined 

I'm on Windows 7 x64, Chrome 33.0.1750.5 dev-m

Infinite scroll doesnt work as it should

Clicking "more" at the end of the page just opens up the next page in new tab or in the same tab in place of the current page. While i think it should open the next page in the same tab just below the current page, like continuous page.

Instead of having to click a link to get to the next set of posts, infinite scrolling should pull the next posts automatically into view when the reader approaches the bottom.

Save to pocket

infinite scroll sounds great, but save to pocket link is shown only in the first page and doesn't show in other pages.

Keyboard shortcuts

Another feature I thought might be interesting would be to add keyboard shortcuts. I've started some initial work on this which you can see here:

https://github.com/inverse/hn-special/tree/shortcut-keys

j - down
k - up
o - open link in new tab
c - open comments in new tab

It's unfinished at the moment and not ready to be pulled so please make suggestions/comments. Also this is the first time I've really done any work with Chrome extensions.

Comment thread readability issue

Because the content column and the body background are the same, it's difficult to tell how indented a given comment is once you've scrolled down in the thread. It's nice to know at a glance if you're looking at a comment on a comment, or a comment on the original story.

Crashes Chromium

With the latest update of Chromium when I get this error:

ATTENTION: default value of option force_s3tc_enable overridden by environment.
[14174:14174:0831/122303:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
[14141:14168:0831/122309:FATAL:url_request.cc(709)] Trying to send secure referrer for insecure load
Aborted (core dumped)

When going to https://news.ycombinator.com/ with this extension enabled.

Null in settings panel

The problem with the latest version might have introduced a new "setting" in the setting menu. @eproxus, @message, could you please confirm if you see a "Null" setting in the menu after the last update?

Save settings

Every time I come back to my home computer I have to re-select the same settings. It keeps reseting all the time. Would be awesome if we can choose things once.

New permissions too intrusive

Really love the extension, but haven't found a single reason it should need to "Read and modify your browsing history". This is way too intrusive for an extension which single purpose is to enhance a single website.

Add collapse/expand of threads

Would love the ability to expand/collapse threads. Sometimes the top comment spawns a flame war and I don't want to scroll down 3 screens to get to the next top level comment.

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.