54

Obsolete. Code last updated 7 years ago. Chrome store links are long dead. Source code still available though.

Screenshots

A new question notification in Chrome 6 in Windows XP
A new question notification in Chrome 6 in Windows XP

A new answer and a new question notification on Mac OS X.

New question and new answer notifications New answer notification

About

New Q! is a Google Chrome browser extension that notifies you whenever:

  • Someone asks a question that interests you
  • Someone comments on your question
  • Someone comments on your answer
  • You receive a Careers message
  • You receive a chat message

Whenever these things happen you receive a desktop notification like the ones shown above. This means no more refreshing the page of your favorite SE sites to look for questions to answer or new inbox notifications. You just wait until you are notified and then click the notification and a new tab opens for you.

How to get started:

  1. Download and install Google Chrome if you don't have it
  2. Dead link: Download and install New Q! from the Chrome Web Store
  3. Right click on the New Q! button Browser Action Button and click Options
  4. On the options page you can create Search Profiles to be notified of new questions of interest. Search profiles contain:
    • An SE site to monitor for New Questions (meta sites are fine too)
    • Which tags to look for (space separated)
    • Whether all those tags should be present or any of them
    • Which tags to ignore (you will not be notified of questions with any ignored tag)

You can create as many Search Profiles as you like.

On the options page you can also connect to your SE account (or disconnect from it) which you need to do in order to receive inbox notifications (which include new answer notifications, new comment, etc.).

Options Page

As notifications come up you can click on them to open a new tab with the question, answer, comment, etc.

Notifications will disappear after a few seconds or after you click on them or dismiss them.

You can left click the NQ button to get a popup where you can see the last few questions that were shown in notifications. You can also stop and restart showing notifications (useful if you want some distraction free time) by clicking the button at the bottom of the pop-up.

New Q! pop-up

How it works

This is done with a Google Chrome extension which checks every minute or so for new questions with the desired tags using jQuery and the StackExchange API 2.0. If a new question or unread inbox item is found a Desktop Notification is sent up using WebKit's implementation of the HTML5 Desktop Notification system. The tags and site you are interested in are set using the options page which can be accessed by right clicking the new "New! Q" button. These settings are stored in HTML5 local storage. The UI for the options page and the popup use KnockoutJS, jQuery, and Bootstrap by Twitter.

License

Creative Commons Attribution 3.0

Download

Dead Chrome Web Store link: https://chrome.google.com/extensions/detail/bffhpbgmmflmoacglmdnilfjkeeokkfn

Source Code: https://github.com/adamzr/New-Q-

Platform

Google Chrome (tested with 5.0.375.70, but probably works with slightly earlier versions) Windows/Mac/Linux

Contact

On GitHub at https://github.com/adamzr/New-Q-

Code

Written in JavaScript,jQuery, and HTML in a Google Chrome extension. This is a work in progress. Please feel free to improve it. https://sourceforge.net/projects/newq/files/

Git: git://github.com/adamzr/New-Q-.git

Change log

UPDATE to Version 2.1

This will fix a bug where some questions were missed for notification. Auto-closing of notifications is now an option on the options page and can be turned off and on. You can make a "badge" show up on the NQ icon with your reputation score. You can choose which site the score will be of on the Options page. This feature requires you to connect your StackExchange account.

UPDATE to Version 2.0

This is a big change. So, please bear with me through any problems there may be. This update now uses version 2.0 of the API. It allows you to search multiple sites at once. You can also get inbox notifications if you connect the app via OAuth. Notifications now dismiss themselves after a few seconds. The UI has been polished up a bit too. Existing users will have to re-input their settings, I'm sorry for the inconvenience. Enjoy and as always feedback is appreciated.

UPDATE To Version 1.0

There is now a badge showing your reputation on the New Q! button. Clicking on the button now gives you a pop-up listing the questions and allowing you to pause/restart the notifications. This is useful if you need some distraction free time.

UPDATE To Version 0.9

This update as well as 0.8.1 and 0.8.5 were mostly bug fixes. A few new things: The logo of the website is displayed as the background in the notification. Some CSS improvements to the notifications. You can load in your favorite tags by clicking on the suggestion. The notification goes away when you click on the link in it as requested on the Chrome extension page.

UPDATE To Version 0.8

Fixed the bug where you received too many notifications when starting your browser. Your browser history is used to check what questions you've already viewed, so existing users must re-enable the extension for additional permissions. Tags that you use most often are suggested on the options page. Tags are shown in the notifications. Please tell me about any problems you find with this update. Thanks!

UPDATE To Version 0.7

Fixed several bugs. Added comment notification now if you enter you user ID on the options page you'll get notifications when people @reply to you in comments:

23
  • Neat! I'm trying it out in Chrome 5.0.375.70 beta in Ubuntu 10.04 - seems to work fine! Does it display 'new' questions or just ones with new activity? Jun 23, 2010 at 5:59
  • @George Great! It should be showing new questions, that is to say questions created most recently. How do the notifications look in Ubuntu? Would you mind posting a screenshot? Thanks.
    – Adam
    Jun 23, 2010 at 6:20
  • @Adam: Okay, I posted it as an answer. You probably should update your question to mention that it works on Linux. Jun 23, 2010 at 6:44
  • @Adam: Still using this every day and lovin' it! Please consider listing New Q! on StackList. Jul 7, 2010 at 4:13
  • @Adam: Thanks! Any suggestions / comments for the site? Jul 13, 2010 at 0:21
  • 1
    @Adam 1 future request, configure the notification for multiple sites possible?
    – Achu
    Mar 28, 2011 at 14:18
  • 2
    @Achu - I'd like to add that too. It is possible, but will take some work. I'll try to do it the next chance I get to work on this extension again.
    – Adam
    Mar 28, 2011 at 16:09
  • 1. input tag is self closing - options.html 2. When using jQuery you should not use document.getElementById, innerHTML - notification.html 3. function pausecomp(millis) seems like "busy waiting" - background.html
    – Bakudan
    Aug 31, 2011 at 19:05
  • Good stuff, but would be awesome if it looked at my favorite tags and gave me notifs!!
    – gideon
    Feb 5, 2012 at 15:12
  • @Achu Added multi-site notification in v2. Enjoy!
    – Adam
    Mar 2, 2012 at 19:28
  • @Adam Great!!! I will give it a try.
    – Achu
    Mar 2, 2012 at 21:31
  • sadly it doesn't show my reputation anymore in the chrome button, will this feature come back again?
    – oers
    Mar 21, 2012 at 15:31
  • @oers Well there were some reviews that thought it cluttered the button. But, I agree that I would like to see my rep. However, now that the extension is multi-site, which site do I show the rep for? I'm also considering showing notifications or rep changes. Perhaps optionally through a setting on the options page. What do you think?
    – Adam
    Mar 23, 2012 at 19:40
  • Yeah, a setting sounds great (so you can choose, which account/side to show). I liked this feature because it gave me instant feedback, that I got upvoted or accepted, without the need to visit the site :D
    – oers
    Mar 24, 2012 at 8:49
  • Thank you very much for this extension. For me personally - New Q is the most valuable SO third party tool. Unfortunately after recent update (version 2.0) some features are gone. I can't see my reputation badge near the extension icon anymore (I connected it to my StackExchange account, but I still can't see it). Desktop notification are not working properly. They do not appear when new questions are asked. I can see some of them only once - when I first starting the browser. After this I don't see any notifications at all.
    – tenshi
    Apr 24, 2012 at 19:26

9 Answers 9

5

UPDATE

I've made some improvments:

  • You can now monitor meta.stackoverflow and stackapps
  • You can choose on the options page whether you only want to see questions that contain ALL of the tags you specified or to show questions that contain ANY of the tags (like SO's Interesting Tags feature)
  • I've made some stylistic changes to the options page (fonts, CSS, etc.)

I've already updated the extension on the Google Extension gallery so existing users will be automatically updated shortly. The source code changes are in the sourceforge SVN repository.

If anyone has any ideas for additional improvements I'd love to hear them!

Thanks!

3
  • I've updated again. Now at version 0.3 which has ignored tags. Questions with ignored tags are not included in notifications.
    – Adam
    Jun 11, 2010 at 5:38
  • 1
    you should edit the body of your post rather than creating "answers" Jul 13, 2010 at 6:20
  • Translate for multi-languaje?
    – ArtEze
    Sep 20, 2016 at 22:08
5

Here is a screenshot on Ubuntu, as requested:

Looks pretty similar to Windows :)

4
  • Thanks! That's the older version, the new one looks like the screenshots I've posted now. You should get the new update automatically, but you might need to go to the Chrome extension page and re-enable if it has more permissions than the version you have installed.
    – Adam
    Jun 23, 2010 at 16:06
  • @Adam: Ya, it just popped up a message saying that and offered to re-enable. Very simple. I'm still impressed by how good this extension works :) Jun 24, 2010 at 4:45
  • @NathanOsman I am on ubuntu13.04. Not getting that extension in my Google chrome browser. Any help please!
    – Priti
    Jul 7, 2013 at 19:40
  • I just got it - chrome.google.com/webstore/detail/new-q/… :)
    – Priti
    Jul 7, 2013 at 19:41
3

It is surprisingly poor written to me. This are some of the thing that has to be changed:

  1. input tag is self closing - options.html
  2. When using jQuery you should not use document.getElementById, innerHTML - notification.html
  3. function pausecomp(millis) seems like "busy waiting" - background.html
  4. html tags interpreted ( wow )

Edit:

  1. It is more of a must than can, actually w3. Inputs must be self closing unlike in the file options.html, where all of them are like:

    <input>...</input>

  2. When jQuery is used there is no reason to continue with the usage of:
    1. document.getElementById - jQuery provides selector - $('#...')
    2. innerHTML - jQuery provides method - $().html()
  3. agreed.
  4. If a question from Stackoverflow, for example like this, contains html tag with <>, the tag is interpreted. So you will receive this question with an actual input. Maybe I should write something there, like sanitize - http://xkcd.com/327/.

Something new to fix:

  1. Using both new Array and [] is sign of bad style. You should chose one, and as Crocford and SO community strongly suggest it should be []

Update:

  • code style - a good practice is to use curly brackets, even if they are not needed now. This will produce a code which will be easier to update(options.html):

Use

if (condition)
{
// code ...
}else{
// code ...
}

instead of

if (condition)
   // code ...
else
   // code ...
  • Another optimization - for cycle, from MDN(notification.html)
6
  • 1
    1. XHTML input tags can be self closing
    – Adam
    Sep 12, 2011 at 4:07
  • 2. Good point. Those javascript methods work perfectly fine, with and without jQuery, but they should probably have been switched once jQuery was added. Note that I am not using jQuery to improve browser compatibility as Chrome remains the exclusive supported browser.
    – Adam
    Sep 12, 2011 at 4:11
  • 3. Agreed. I dislike using pausecomp too. It was an attempted workaround for a Chrome bug that caused the browser to crash. I never pause for more than a second and a half, so delays should be minimal. I hope that the bug this was preventing is now gone in current versions of Chrome.
    – Adam
    Sep 12, 2011 at 4:14
  • 4. Please clarify where you saw this. I do interpret the html received from the SE API as I expect SE to already have sanitized the HTML.
    – Adam
    Sep 12, 2011 at 4:16
  • Yes, this code could use work. It was written a while ago and I have not been able to spend as much time on it as I have wished. SE API 2.0 is on its way. That should give us much greater possibilities in terms of what this extension can do. I hope at that time to start a rewrite. This is open source software, feel free to submit your modifications for inclusion in a later release. In the next version I hope to move to github which should make this even easier.
    – Adam
    Sep 12, 2011 at 4:19
  • Ive updated my post, hopefully someone will explain why the downvote. And Im just curious why the extension package contains the popup.html from the google example?
    – Bakudan
    Sep 12, 2011 at 12:55
3

Could the notifications time out after a certain length, so I don't have to click every single one?

Also, could it be possible to monitor more than one stack exchange site at a time? I watch both SO and UX.

3
  • 1
    Done in version 2.0. Enjoy!
    – Adam
    Mar 2, 2012 at 21:15
  • Yay! Off to the plugin page :)
    – Kato
    Mar 2, 2012 at 22:34
  • Notifications still don't time out.
    – anonymous
    May 5, 2012 at 15:03
3

Please add the feature of removing or hiding a question. If you read a question, and found it irrelevant, You should be able to remove it. So the list will contain questions you are interested in.

3

I have using this for a long time , but I'm not getting any notifications now . I have tried with several tags no luck . I'm on Windows 7, chrome version Version 30.0.1599.69 .
And also I tried re installing...

2
  • Sadly, it seems Chrome no longer allows HTML notifications. I will have to redo all the notifications to be text only. Chrome also made changes to the extension manifest which I have to make. All of this will take time, and I don't know when I'll next get a chance to do it. Sorry.
    – Adam
    Oct 16, 2013 at 20:27
  • ah :( , Sad to hear.. Any alternatives that you know until new version ? Oct 17, 2013 at 3:28
1

UPDATE TO VERSION 0.4

Hosted by imgur.com

New in this version:

  • Answer count
  • Vote count
  • View count
  • Links to questions in notifications itself

This version involved changing to HTML notifications and passing the data to the page using a query string which is processed in JavaScript. If you find any problems be sure to let me know.

I look forward to hearing your feedback!

4
  • Update to 0.5: Yeah, that was fast, but I needed to change the API to version 0.9. Also, hopefully fixed a minor bug.
    – Adam
    Jun 24, 2010 at 19:10
  • Now we're at 0.6! Now using API version 1.0 and dynamically adding all new StackExchange sites.
    – Adam
    Jul 12, 2010 at 23:39
  • 1
    you should edit the body of your post rather than creating "answers" Jul 13, 2010 at 6:21
  • @Jeff Sorry! When I looked around I saw people doing it both ways. I've made my new updates as edits to the "question".
    – Adam
    Jul 13, 2010 at 22:59
1

I don't know if I'm doing something wrong, but every time I start Chrome (in Ubuntu 10.04), it informs me of the same 3 questions and the same 3 comments. I click dismiss, close Chrome, and open it again. Same thing.

6
  • I think I'm aware of that problem. The extension loses track of what you've already seen between sessions of Chrome, so it always shows you the 3 most recent questions and comments when you open Chrome. I plan on fixing this in a later version to do something like limit it to things that took place in the last hour.
    – Adam
    Aug 8, 2010 at 4:45
  • @Adam: Please let me know when you fix it. I had to uninstall the extension because it was getting so annoying. Aug 8, 2010 at 6:26
  • @George - Sorry. I'll try to do it soon. Quick question: In the fromdate parameter passed with unix time, what time zone is used? Can I use in JavaScript new Date().getTime() ? Thanks.
    – Adam
    Aug 9, 2010 at 2:33
  • @Adam: I'm not positive, but I'm guessing UTC. Aug 9, 2010 at 3:54
  • @George - Problem should be fixed in the new version 0.8. Tell me if it now works for you. Thanks.
    – Adam
    Aug 10, 2010 at 1:22
  • @Adam: Okay. I installed it. I'll let you know within a couple days whether it works or not. Aug 10, 2010 at 4:24
0

I love this extension and I love how I can monitor multiple Stack Exchange sites in version 2.0.

Some ideas for new features:

  • I'm logged in with my Google account in Chrome and it's my impression that extensions can save their settings "in the cloud". So I would like to see the search profiles synchronized between different browsers.

    I sometimes add a new tag when I'm at work and it would be nice to have that tag appear automatically when I get home.

  • This is just a small detail, but let's say I'm interested in tags and . I would then like to monitor these tags on Stack Overflow, Super User, and Programmers. It would therefore be nice if I could pick multiple stack Exchange sites for each list of tags.

    Right now I have to add three separate search profiles and copy-paste the tag list from one to another.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .