News for hackers. Stuff that matters.
Re:Show HN: HackerNews as default tab (chrome extension) by olalonde on Friday March 28, 2014 @09:35PM (#7491055)
Does your extension really need all those permissions?

    "permissions": [
        "webRequest",
        "tabs",
        "http://*/*",
        "https://*/*",
        "storage"
    ]
Does your code really need to be minified? Why do you fetch the HN front page using an external API (http://producthunter.awesome.io/hn.json) when you could easily scrape HN's front page directly?

Finally, you should probably disclose that you are tracking people who use your extension through Google Analytics (https://gist.github.com/anonymous/9847044#file-gistfile1-js-...).

Sorry for being a bit paranoid... Other than that, seems like a nice extension!

Re:Show HN: HackerNews as default tab (chrome extension) by andreasklinger on Wednesday April 02, 2014 @07:44AM (#7514844)
thanks for reaching out

      Does your extension really need all those permissions?
        "permissions": [
            "webRequest",
            "tabs",
            "http://*/*",
            "https://*/*",
            "storage"
        ]
Good question - maybe you know ways to improve this

Storage is to cache results, webrequests to request the json, tabs to place the tab.

Im unsure if i access anything through http:// anymore - might just be a development relict.

I could limit to certain domains to avoid hacking vectors.

But that's a bit too much for an simple friday afternoon hack i guess.

    Does your code really need to be minified?
I used grunt / yeoman for chrome extensions. Minifactions came out of the box and i didn't see any reason not to minify. Eg i also minify all JS on my websites

    Why do you fetch the HN front page using an external API 
    when you could easily scrape HN's front page directly?
HN's html structure is quiet a pita so i wanted to keep this on the server site (updates through chrome app store can take days).

I could use inofficial HN JSON APIs but i needed to add my imgur links anyway and i don't know any safe way to make those on the client side without enabling people reusing my api keys.

    Finally, you should probably disclose that you are tracking 
    people who use your extension through Google Analytics 
Good idea.

It didn't came to mind because most extensions like this use GA to track usage/events/etc - some even use JS error loggers.

Where would you communicate this? TBH i hardly ever communicate this on my website projects neither (apart of in the wall-of-text-TOS)

thanks for the feedback

Re:Show HN: HackerNews as default tab (chrome extension) by wcdolphin on Friday March 28, 2014 @02:55PM (#7489233)
Sounds cool, but I simply cannot agree to the privacy implication: Access your data on all websites

Chrome's stupid privacy model for extensions ruins this otherwise cool project for me.

Re:Show HN: HackerNews as default tab (chrome extension) by 27182818284 on Friday March 28, 2014 @03:21PM (#7489394)
I don't think I've installed any Chrome extensions other than the one for LastPass because of the "access your data on all websites" and even LastPass' made me pretty nervous.
Re:Show HN: HackerNews as default tab (chrome extension) by erichurkman on Friday March 28, 2014 @09:05PM (#7490978)
I actually got rid of LastPass because of how poor the Chrome extension is. Between spamming the error console with errors, to injecting terrible HTML/CSS to pages for their little field 'star' icon, to terrible/broken notifications for innocuous things. (The yellow toolbar icon turning red could mean any number of things, from 'duplicate passwords detected' to 'please log into lastpass'.)
Re:Show HN: HackerNews as default tab (chrome extension) by ry0ohki on Friday March 28, 2014 @04:13PM (#7489687)
Yeah I swore off extensions after a simple "browser resize" extension started inserting affiliate links into Google searches.
Re:Show HN: HackerNews as default tab (chrome extension) by stronglikedan on Friday March 28, 2014 @02:51PM (#7489207)
Could it be made to dynamically load more stories as I scroll? You know, to completely kill my productivity. It's just suffering now with this extension, and I'd like to finish it off.
Re:Show HN: HackerNews as default tab (chrome extension) by oneeyedpigeon on Friday March 28, 2014 @04:07PM (#7489654)
I know this is just a joke, and I'm probably going to get shouted down for being too serious, but if Chrome really lacks a way of setting your default tab, surely an extension that lets you choose any URL, including the wonderful HN, would be preferable...
Re:Show HN: HackerNews as default tab (chrome extension) by andreasklinger on Friday March 28, 2014 @04:09PM (#7489670)
nice idea

this is one of those ideas where you kinda just assume it already exists

Re:Show HN: HackerNews as default tab (chrome extension) by 55873445216111 on Friday March 28, 2014 @05:01PM (#7489954)
Re:Show HN: HackerNews as default tab (chrome extension) by underwater on Saturday March 29, 2014 @01:33AM (#7491535)
That extension does a simple redirect, which means Chrome populates the address bar with the target URL. So it's not possible to open a new tab and type a search term.
Re:Show HN: HackerNews as default tab (chrome extension) by andreasklinger on Friday March 28, 2014 @01:06PM (#7488500)
hey guys

"It's like Hackernews but for tabs"

As a friday afternoon hack i build a little extension that shows the latest of HN in your default tab of chrome. Hope you like it - it's a genius way to start procrastinating ;)

Let me know what you think!

Also if you are applying to the SummerBatch - all the best :)

Re:Show HN: HackerNews as default tab (chrome extension) by tokenizerrr on Friday March 28, 2014 @10:21PM (#7491155)
The permissions are too much.
Re:Show HN: HackerNews as default tab (chrome extension) by austinl on Friday March 28, 2014 @08:39PM (#7490896)
It's a tough choice for me between this and Currently (https://chrome.google.com/webstore/detail/currently/ojhmphdk...) which shows the time and the weather with each tab.
Re:Show HN: HackerNews as default tab (chrome extension) by lawl on Friday March 28, 2014 @04:39PM (#7489837)
I really liked the idea. So I wanted to make a generic website out of it you could just set as default URL for new tabs, for example in firefox.

Then I realized how much I hate and suck at CSS. So I'll just leave this here, should anyone want to pick up the mess I hacked together.

preview: http://dumbinter.net/hn.html (really lacks some css)

code: https://gist.github.com/lawl/9842357

intended to be run as cronjob and just spit the generated html into a file. I guess you could also do it completely client side with the JSONP API. But I like my sites static. Less clicks in NoScript.

By the way I'm not in any way affiliated with wimg.ca, the just seemed to do the job.

Re:Show HN: HackerNews as default tab (chrome extension) by lziz on Friday March 28, 2014 @09:54PM (#7491095)
Would you mind tossing it up on a repo? Or just mentioning what's in the jq file? Trying to reproduce to style it up a bit. Thanks!
Re:Show HN: HackerNews as default tab (chrome extension) by lawl on Saturday March 29, 2014 @08:34AM (#7492030)
Sorry, should have mentioned that.

It's a commandline JSON parser.

http://stedolan.github.io/jq/

Re:Show HN: HackerNews as default tab (chrome extension) by jkbr on Friday March 28, 2014 @01:35PM (#7488727)
Nice hack, I really see the pro-procrastination potential ;)

I find even the default tab too distracting and so one of my favourite extensions is Empty New Tab Page:

https://chrome.google.com/webstore/detail/empty-new-tab-page...

Re:Show HN: HackerNews as default tab (chrome extension) by Theodores on Friday March 28, 2014 @02:59PM (#7489255)
Thanks for the tip!

A couple of months ago I looked for something similar as I really didn't like my most visited pages popping up on a new tab - non work things mixed in :-) I arrived at something showing those pointless 'apps for chrome' in big icons but completely blank is way better!

Re:Show HN: HackerNews as default tab (chrome extension) by dewey on Friday March 28, 2014 @02:14PM (#7488966)
This just replaced Speed Dial 2 [0] for me. I realised I hardly use the shortcuts anyway. Thanks for sharing!

[0] https://chrome.google.com/webstore/detail/speed-dial-2/jpfpe...

Re:Show HN: HackerNews as default tab (chrome extension) by Oculus on Friday March 28, 2014 @07:04PM (#7490529)
Is there a warning label for complete and permanent destruction of one's productivity?
Re:Show HN: HackerNews as default tab (chrome extension) by rrhoover on Friday March 28, 2014 @03:13PM (#7489332)
Love this Andreas! For those unaware, Andreas built a similar extension for Product Hunt: http://www.producthunt.co/posts/product-hunter
Re:Show HN: HackerNews as default tab (chrome extension) by brickcap on Friday March 28, 2014 @05:12PM (#7489997)
Question for the dev:

Where did you find PayMeForReviewsUser2041? I could use him on a couple of my own apps. Would you mind lending him to me?

Re:Show HN: HackerNews as default tab (chrome extension) by caiob on Friday March 28, 2014 @08:59PM (#7490965)
In the description, there's an interesting username: "★★★★ Love this app" – PayMeForReviewsUser2041

Care to explain this?

Re:Show HN: HackerNews as default tab (chrome extension) by leoalves on Friday March 28, 2014 @09:21PM (#7491017)
In the bottom of the page "Disclaimer: some of the reviews above are meant to be sarcastic and not by real people. Please Google don't ban this app. Kthxbye."
Re:Show HN: HackerNews as default tab (chrome extension) by csallen on Friday March 28, 2014 @09:11PM (#7490992)
Cool extension. I'd love it if you made the story names a little more bold. That's generally how I choose what I want to read.
Re:Show HN: HackerNews as default tab (chrome extension) by frankwiles on Friday March 28, 2014 @02:36PM (#7489108)
What a horrible idea for productivity! hahaha
Re:Show HN: HackerNews as default tab (chrome extension) by yebyen on Friday March 28, 2014 @03:19PM (#7489372)
I don't know, just think of how much time I'll save by not actually having to "go" to HackerNews explicitly in order to avoid whatever else I'm working on :)

HN: You're already there, now get back to work

A new spin on noprocrast!

Re:Show HN: HackerNews as default tab (chrome extension) by Houshalter on Friday March 28, 2014 @05:27PM (#7490054)
Anyway to use the cool interface without replacing my default tab? HN isn't the only website I visit.
Re:Show HN: HackerNews as default tab (chrome extension) by nashashmi on Friday March 28, 2014 @02:51PM (#7489206)
We rarely get work done as it is. I think the world will be a bit more productive without it.
Re:Show HN: HackerNews as default tab (chrome extension) by darkstar999 on Friday March 28, 2014 @03:29PM (#7489449)
We? Speak for yourself.
Re:Show HN: HackerNews as default tab (chrome extension) by brunorsini on Friday March 28, 2014 @07:45PM (#7490699)
Love it. One suggestion: I'd love to see options for setting custom story density.
Re:Show HN: HackerNews as default tab (chrome extension) by mstroeck on Friday March 28, 2014 @01:22PM (#7488628)
Love it! Much better than the default, especially in Chrome.
Re:Show HN: HackerNews as default tab (chrome extension) by victormx on Friday March 28, 2014 @02:23PM (#7489024)
Thank's to help procastination, loved the extension
Re:Show HN: HackerNews as default tab (chrome extension) by nilkn on Friday March 28, 2014 @04:59PM (#7489950)
How frequently does it update the sites it shows?
Re:Show HN: HackerNews as default tab (chrome extension) by olalonde on Friday March 28, 2014 @10:18PM (#7491146)
Re:Show HN: HackerNews as default tab (chrome extension) by skagarroum on Friday March 28, 2014 @02:08PM (#7488941)
Awesome! Installed.