How to completely disable push notifications in Firefox?
I am using Firefox (version 58.0.1) and for awhile now, Firefox and other browsers have implemented this feature known as 'Push Notifications.'
It now seems like every site wants to 'Push' notifications to you. This has become a new form of pop-up, and is an intrusive technology. Because of this constant bombardment of push notification requests, I wish to completely disable push notifications.
I do not wish to disable on a site-by-site basis. I want to disable this 'feature' completely, for every site, forever.
I have looked through the Firefox settings, and through the documentation on the Mozilla website, but there is nothing official on how to disable the Push Notifications. 2
Solution 1:
From further research, I discovered that you have to go into the about:config
interface. HERE BE DRAGONS! (1) Or if you use the American locale, Your warranty might be voided (2)
I changed four settings to FALSE:
- dom.webnotifications.enabled
- dom.webnotifications.serviceworker.enabled
- dom.pushconnection.enabled
- dom.push.enabled
(1) Here be dragons:
(2) This might void your warranty:
Solution 2:
With the release of Firefox 59, we can now disable push notifications using the default Options page.
The official release notes for Firefox 59 described the modification:
Added settings in about:preferences to stop websites from asking to send notifications
You can configure this option in the following manner:
- Navigate to the about:preferences page
- Click on Privacy & Security on the upper-left
- Scroll down to the Permissions section on the right
-
Click on the
Settings...
button associated with Notifications - In the subsequent window check the box to Block new requests asking to allow notifications
-
Click the Save Changes button
Solution 3:
Disable push notifications and sync config
Paste this lines to config prefs.js file You can find the config file at:
%APPDATA%\Mozilla\Firefox\Profiles\XXXXXX.default\prefs.js
user_pref("dom.webnotifications.enabled", false);
user_pref("dom.webnotifications.enabled", false);
user_pref("dom.webnotifications.serviceworker.enabled", false);
user_pref("dom.pushconnection.enabled", false);
user_pref("dom.push.enabled", false);
user_pref("services.sync.prefs.sync.dom.webnotifications.enabled", true);
user_pref("services.sync.prefs.sync.dom.webnotifications.serviceworker.enabled", true);
user_pref("services.sync.prefs.sync.dom.pushconnection.enabled", true);
user_pref("services.sync.prefs.sync.dom.push.enabled", true);