gabrielecirulli / hn-special Goto Github PK
View Code? Open in Web Editor NEWA modern theme for Hacker News, with some added niceties.
License: MIT License
A modern theme for Hacker News, with some added niceties.
License: MIT License
Certain static pages like https://news.ycombinator.com/newsguidelines.html, https://news.ycombinator.com/newsfaq.html and https://news.ycombinator.com/bookmarklet.html aesthically break. While https://news.ycombinator.com/dmca.html doesn't seem to render anything at all.
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.
When clicking the "more" link, I would not expect a new tab to open. I believe this is a new behavior. Not sure if it was intentional or not. Thanks for the awesome project!
That option doesn't make sense if you use high contrast theme. Part of #39 issue.
Make articles flash when they've been opened to make it easier to know which one has been clicked when going back.
The solution was to use the scrollbar to drag to the bottom of the page. Doing this seems to stop the infinite scroll from loading, therefore giving access to the footer.
infinite scroll
sounds great, but save to pocket
link is shown only in the first page and doesn't show in other pages.
Just recently comment folding has broken for me, and the usual "Hide comments" (don't remember exact wording) are not showing up. I'm using Chrome Version 41.0.2272.118 (64-bit).
Screenshot: http://goo.gl/MecJb.
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?
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
On https://news.ycombinator.com/user?id=tokenadult, the bio contains some pictograms in the first line. They're not displayed by the theme.
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.
This is what HN currently looks like for me - http://puu.sh/6uZrq.png
I think it may be due to the planned maintenance announcement.
Infinite scroll doesn't work after HN being open for, in my case, ~40 mins. I suspect that it's because expiration of "next" link.
Would it be possible to port this to Firefox?
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.
now a days it shows only
Apparently , it is because HN changed the ULR structure to
https://news.ycombinator.com/news?p=pageNo
previously it was different.
Please fix this LIFE sucks without it. ๐
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
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.
This was the error in my console:
Uncaught SyntaxError: Unexpected token ] settings.js:10
(anonymous function) settings.js:10
request.onreadystatechange utility.js:40
Some graceful error handling would be nice.
When infinite scroll is on, its hard to tell where one page ends and another starts. The reddit enhancement suite inserts a nice divider between pages.
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.
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.
Add error handling around the loading of the json in settings.js to avoid issues such as #19.
@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?
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.
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.
I think maybe the bottom navigation links and more importantly the search box need to be moved to the top of the page.
When browsing with showdead on, there's no visual indication of a dead comment. Could be a useful enhancement.
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.
This isn't really an issue but I wanted to let you know that this HN theme kicks ass! Amazing job.
HN made some shity updates in https://github.com/HackerNews/HN/issues/5 And after that, upvotes and downvotes not shown
please consider an option to hide read items
After the latest update today, high contrast option doesn't work anymore - the theme is always low contrast now.
The easiest way is probably to allow user to configure one main color and derive all other colors from it (lighten, darken, etc).
I would love to have my settings follow me across different machines. Chrome has some documentation on how to do this.
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? :)
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.
Comment threading has lost its indentation in the last version (1.3.3). All comment threads now appear completely flat.
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.
Is it possible to have keyboard shortcuts for navigating?
see title
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.