Live data from Hacker News

Show HN: Custom New Tab page for Firefox

github.com

11–20 of 31 posts

Re: Show HN: Custom New Tab page for Firefox

#11
Looks nice.

Off topic: Thank you for the link to the Custom New Tab addon -- been thinking I wanted something like that in my Firefox but hadn't thought to actually look it up. That addon doesn't seem to work for current Firefox on Android, unfortunately. Btw, your link to the addon in your README makes the page show in Finnish, you might want to change your link to point to the English URL.

Re: Show HN: Custom New Tab page for Firefox

#16
This is a really cool start! In the future, I'd love to be able to set preferences and save them to local storage. (For example, it would be nice to be able to set date formatting or location.) I know I could grab a copy of the code and then change those things myself, but then upgrades would be a pain. Overall, though, good stuff!

Re: Show HN: Custom New Tab page for Firefox

#17
post #3

Excellent! Much better than what I made for personal use, and it's great that you open sourced it. I'll set it up on my local web server and start using it.

Thanks for the feedback! I've had a few prototypes along the years but this was actually something that I figured someone would be interested in. I'll continue to develop this and add customizable user settings etc when I have time

http://milankragujevic.com/projects/newtab/ http://milankragujevic.com/projects/newtab/newtab.zip

Here's something I made, since your version doesn't work. It's a rip off of your work, but none of the code is taken and the temperature display works. It's much simpler, doesn't use any fancy JS, and is contained in 4 JS files including jquery and the quotes and the config.

Re: Show HN: Custom New Tab page for Firefox

#18
Looks fantastic. It did take a few minutes to get forked over and modify for location, °F instead of °C, etc. Perhaps a future version could use a config.js or something that would just swap those.

For the record, you want to edit js/scripts/controllers.js and js/scripts/view/dashboard.html.

Replacing Helsinki in the openweathermap.org link with your plain text city name seems to work.

For Fahrenheit, replace the "var temp" line in controllers.js with:

    var temp = Math.round(((parseInt(data.main.temp) - 273.15) * 9/5) + 32, 2) + "°F";
I didn't get the github.io pages working in less than a few minutes, so I just grabbed it locally where it'll probably work faster anyway. Thanks also for the great plugin link. Excellent work Jakke, beautiful typography.

Re: Show HN: Custom New Tab page for Firefox

#19
This looks really nice, I'm going to set this up. If you want to keep developing this, you should think about packaging this into a convenient addon.

But what I'm missing most right now is a license file! Right now it's just copyrighted without giving anyone the permission to copy or modify it. I don't think that's your intention (If you don't want to think about it, the MIT licence is a good choice)

Post reply on HN