2300: service workers, closes #786
This commit is contained in:
parent
7c0a327b06
commit
be0ccf6460
@ -1,7 +1,7 @@
|
|||||||
/***
|
/***
|
||||||
This will reset the preferences that have been removed completely from the ghacks user.js.
|
This will reset the preferences that have been removed completely from the ghacks user.js.
|
||||||
|
|
||||||
Last updated: 12-September-2019
|
Last updated: 16-September-2019
|
||||||
|
|
||||||
For instructions see:
|
For instructions see:
|
||||||
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
||||||
@ -211,6 +211,8 @@
|
|||||||
'extensions.getAddons.discovery.api_url',
|
'extensions.getAddons.discovery.api_url',
|
||||||
'extensions.htmlaboutaddons.discover.enabled',
|
'extensions.htmlaboutaddons.discover.enabled',
|
||||||
'extensions.webservice.discoverURL',
|
'extensions.webservice.discoverURL',
|
||||||
|
'dom.push.connection.enabled',
|
||||||
|
'dom.push.serverURL',
|
||||||
/* reset parrot: check your open about:config after running the script */
|
/* reset parrot: check your open about:config after running the script */
|
||||||
'_user.js.parrot'
|
'_user.js.parrot'
|
||||||
]
|
]
|
||||||
|
30
user.js
30
user.js
@ -983,28 +983,30 @@ user_pref("dom.popup_allowed_events", "click dblclick");
|
|||||||
***/
|
***/
|
||||||
user_pref("_user.js.parrot", "2300 syntax error: the parrot's off the twig!");
|
user_pref("_user.js.parrot", "2300 syntax error: the parrot's off the twig!");
|
||||||
/* 2302: disable service workers [FF32, FF44-compat]
|
/* 2302: disable service workers [FF32, FF44-compat]
|
||||||
* Service workers essentially act as proxy servers that sit between web apps, and the browser
|
* Service workers essentially act as proxy servers that sit between web apps, and the
|
||||||
* and network, are event driven, and can control the web page/site it is associated with,
|
* browser and network, are event driven, and can control the web page/site it is associated
|
||||||
* intercepting and modifying navigation and resource requests, and caching resources.
|
* with, intercepting and modifying navigation and resource requests, and caching resources.
|
||||||
* [NOTE] Service worker APIs are hidden (in Firefox) and cannot be used when in PB mode.
|
* [NOTE] Service worker APIs are hidden (in Firefox) and cannot be used when in PB mode.
|
||||||
* [NOTE] Service workers only run over HTTPS. Service workers have no DOM access.
|
* [NOTE] Service workers only run over HTTPS. Service workers have no DOM access.
|
||||||
* [SETUP-WEB] Disabling service workers will break some sites. This pref is a master switch, and controls
|
* [SETUP-WEB] Disabling service workers will break some sites. This pref is required true for
|
||||||
* notifications (2304, 2305) and service worker cache (2740) - all three are inactive. Notifications are
|
* service worker notifications (2304), push notifications (disabled, 2305) and service worker
|
||||||
* behind a prompt (2306). If you enable service workers, then you may want to look at those as well ***/
|
* cache (2740). If you enable this pref, then check those settings as well ***/
|
||||||
user_pref("dom.serviceWorkers.enabled", false);
|
user_pref("dom.serviceWorkers.enabled", false);
|
||||||
/* 2304: disable Web Notifications
|
/* 2304: disable Web Notifications
|
||||||
* [NOTE] Web Notifications require service workers (2302) and are behind a prompt (2306)
|
* [NOTE] Web Notifications can also use service workers (2302) and are behind a prompt (2306)
|
||||||
* [1] https://developer.mozilla.org/docs/Web/API/Notifications_API ***/
|
* [1] https://developer.mozilla.org/docs/Web/API/Notifications_API ***/
|
||||||
// user_pref("dom.webnotifications.enabled", false); // [FF22+]
|
// user_pref("dom.webnotifications.enabled", false); // [FF22+]
|
||||||
// user_pref("dom.webnotifications.serviceworker.enabled", false); // [FF44+]
|
// user_pref("dom.webnotifications.serviceworker.enabled", false); // [FF44+]
|
||||||
/* 2305: disable Push Notifications [FF44+]
|
/* 2305: disable Push Notifications [FF44+]
|
||||||
* web apps can receive messages pushed to them from a server, whether or
|
* Push is an API that allows websites to send you (subscribed) messages even when the site
|
||||||
* not the web app is in the foreground, or even currently loaded
|
* isn’t loaded, by pushing messages to your userAgentID through Mozilla's Push Server.
|
||||||
* [NOTE] Push Notifications require service workers (2302) and are behind a prompt (2306)
|
* [NOTE] Push requires service workers (2302) to subscribe to and display, and is behind
|
||||||
* [1] https://developer.mozilla.org/docs/Web/API/Push_API ***/
|
* a prompt (2306). Disabling service workers alone doesn't stop Firefox polling the
|
||||||
// user_pref("dom.push.enabled", false);
|
* Mozilla Push Server. To remove all subscriptions, reset your userAgentID (in about:config
|
||||||
// user_pref("dom.push.connection.enabled", false);
|
* or on start), and you will get a new one within a few seconds.
|
||||||
// user_pref("dom.push.serverURL", "");
|
* [1] https://support.mozilla.org/en-US/kb/push-notifications-firefox
|
||||||
|
* [2] https://developer.mozilla.org/en-US/docs/Web/API/Push_API ***/
|
||||||
|
user_pref("dom.push.enabled", false);
|
||||||
// user_pref("dom.push.userAgentID", "");
|
// user_pref("dom.push.userAgentID", "");
|
||||||
/* 2306: set a default permission for Notifications (both 2304 and 2305) [FF58+]
|
/* 2306: set a default permission for Notifications (both 2304 and 2305) [FF58+]
|
||||||
* 0=always ask (default), 1=allow, 2=block
|
* 0=always ask (default), 1=allow, 2=block
|
||||||
|
Loading…
Reference in New Issue
Block a user