Rob--W / stackexchange-notifications

Realtime desktop notifications for Stack Exchange sites.
44 stars 8 forks source link

Feature request: change position of notification #3

Closed protist closed 11 years ago

protist commented 11 years ago

It'd be great if users could change the position of the notification window. Currently it's in a corner of the screen that I ignore. :see_no_evil:

(Sorry, I just realised github did emoji.)

Rob--W commented 11 years ago

The position is controlled by Firefox. After some digging in the source code of Firefox, I discovered that the position can be controlled by the ui.alertNotificationOrigin preference.

  1. Visit about:config
  2. Search for ui.alertNotificationOrigin. (This preference does not exist by default.)
  3. If the preference did not exist, create a new preference with the following values:
    • Name: ui.alertNotificationOrigin
    • Type: Integer
    • Value (where should the desktop notification appear?):
      • 0 - Bottom right
      • 2 - Bottom left
      • 4 - Top right
      • 6 - Top left
  4. After setting the value, the preference will be respected by all new (desktop) notifications from Firefox (not just my extension).

References:

protist commented 11 years ago

Great find! That works perfectly. Thanks again.

kskollepara commented 7 years ago

This solution doesn't seem to work on Firefox 53

Rob--W commented 7 years ago

@kskollepara That is because Firefox attempts to integrate in the OS's native notification system.

Install my No Native Notifications add-on to regain control of the position of the notification: https://addons.mozilla.org/en-us/firefox/addon/no-native-notifications/

odil-io commented 6 years ago

Confirmed, this solution does not work on FireFox 61 Quantum.