How to adjust the duration for displaying push-messages in Firefox?
So I'm trying to make Firefox's push-notifications be displayed for a longer duration than the usual; I'm hoping to get them to stay visible for several minutes, instead of a few seconds. Perhaps the is a solution that doesn't require us to mess with the responsible API by ourselves? Another matter, also concerning those push-notifications: may it be possible to force them to always appear for a specific website, independently of the status of the Firefox-window? In our current case, they only seem to appear if it's minimized. Any help would be greatly appreciated!
Tất cả các câu trả lời (1)
Hi,
Go to about:config and set alerts.disableSlidingEffect false.
Then, use Stylish or userChrome.css to apply this style:
/**/ @namespace "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@-moz-document url("chrome://global/content/alerts/alert.xul") { #alertBox[animate] { animation-duration: 4s !important; } } /**/
This should override the duration for you. Modify the 4s to whatever duration you want.