25

Install

Note: you can install developer edtion (inclusive in google chrome) if download from https://github.com/brcontainer/stack-exchange-notifications/releases and follow steps in howtogeek


Features

  • Notifies about new messages in inbox (custom)
  • Notifies about new achievements, like upvotes, downvotes, badges, privileges (custom)
  • Fullscreen post-editor (full-view-port)
  • Lightbox for images in posts and chat
  • Save shortcut to chat rooms in "popup"

Screenshots

  • Inbox
  • Achivements and score

  • Browser:

    inbox and achivements in your browser

  • Editor in fullsize

    improved editor

  • Lightbox:

    lightbox

  • Copy codes:

    copy codes

  • Save room:

    save room

  • Saved shortcut rooms in popup (before and after):

    shortcut rooms


License

MIT

Issues

Send issues to https://github.com/brcontainer/stack-exchange-notifications/issues

Contact:

I can be reached at brcontainer@yahoo.com.br.

Open-source

The extension is written in HTML, JavaScript and CSS.

You can get the code here: https://github.com/brcontainer/stack-exchange-notifications (or vir GIT) (look in the chrome/ folder for the Opera or Chrome code)

Debugging in Opera or Chrome

  1. Click with right mouse button, and select "Inspect pop-up"
  2. Go to Console tab in "Developer Tools" and type your commands
  3. (More details: https://developer.chrome.com/extensions/tut_debugging)

Debugging in Firefox

Note: Requires Firefox 48+ (or Developer Edition) for load of temporary add-on

  1. Type about:debugging in Addressbar
  2. Click in "Load Temporary Addon"
  3. Go to chrome folder (from this project) and select background.js
  4. After addon is showed, click on "Debug" button (on right extension)
  5. In Console tab type your commands
  6. (More details: https://developer.mozilla.org/en-US/docs/Tools/about:debugging)

For developers

For debugging or testing push notifications there are some functions:

+--------------------------------------------------+--------------------------------------------+
| Function                                         | Description                                |
+--------------------------------------------------+--------------------------------------------+
| .setAchievements(int achievements [, int score]) | Use integers in two parameters             |
+--------------------------------------------------+--------------------------------------------+
| .setInbox(int msgs)                              | Use integers, may be 0, 1 or higher        |
+--------------------------------------------------+--------------------------------------------+
| .update()                                        | After use setAchievements and/or setInbox, |
|                                                  | perform this function, this function show  |
|                                                  | results in "push notifications" over icon  |
|                                                  | and pop-up tabs                            |
+--------------------------------------------------+--------------------------------------------+
| .getAchievements()                               | Get current total achievements, return a   |
|                                                  | object like {score: int, acquired: int}  |
+--------------------------------------------------+--------------------------------------------+
| .hasCache()                                      | Return true if has cache or false if no|
+--------------------------------------------------+--------------------------------------------+
| .clearCache([, type])                            | Clear inbox and achievements cache, if     |
|                                                  | first parameter empty clear cache from     |
|                                                  | inbox and achivements, or specific inbox   |
|                                                  | and achievements in first parameter        |
+--------------------------------------------------+--------------------------------------------+
| .meta()                                          | Get appname and version, return object     |
|                                                  | like  {appname: string, version: string} |
+--------------------------------------------------+--------------------------------------------+
| .getInbox()                                      | Get total messages in Inbox, return int    |
+--------------------------------------------------+--------------------------------------------+

Examples

Show fake new score:

StackExchangeNotifications.setAchievements(300);
StackExchangeNotifications.update();

Show fake new badges or privileges:

StackExchangeNotifications.setAchievements(-1, 800);
StackExchangeNotifications.update();

Show fake new achievements score, badges and privileges:

StackExchangeNotifications.setAchievements(20, 800);
StackExchangeNotifications.update();

Show fake new messages in Inbox:

StackExchangeNotifications.setInbox(981);
StackExchangeNotifications.update();

Two commands simultaneously:

StackExchangeNotifications.setAchievements(10, 300);
StackExchangeNotifications.setInbox(981);
StackExchangeNotifications.update();

You must log in to answer this question.

Browse other questions tagged .