The Popup Notification that appears in the lower rightcorner of screen for such as...
Brief, Custombuttons notification...
They use to display for only a few seconds but now on firefox46 they appear for about 20 seconds which is far too
long a length of time for me.
How can I shorten the time delay to about 5 seconds
Is there anything in about:config that I can Modify and lower the value
Specifically the Custombuttons notifications are the most vital for me thankyou.
Thankyou
Popup Notification Time
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: Popup Notification Time
? security.notification_enable_delay
Otherwise, in about:config, set the filter to: /[0-9][0-9]/ & sort by Status & see if anything there might give a clue?
(That says to find two digits, more likely to occur in the Value field [but does elsewhere too], & also figuring that if its in milliseconds, it'll be at least two digits.)
Otherwise, in about:config, set the filter to: /[0-9][0-9]/ & sort by Status & see if anything there might give a clue?
(That says to find two digits, more likely to occur in the Value field [but does elsewhere too], & also figuring that if its in milliseconds, it'll be at least two digits.)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: Popup Notification Time
@BarbieBarb
Are you talking about the showAlertNotification() method?
http://developer.mozilla.org/en-US/docs ... rtsService
The alerts.totalOpenTime preference isn't used anymore.
http://kb.mozillazine.org/Alerts.totalOpenTime
http://bugzilla.mozilla.org/show_bug.cgi?id=937262
The time delay is hard-coded.
http://dxr.mozilla.org/mozilla-release/ ... _IMMEDIATE
Are you talking about the showAlertNotification() method?
http://developer.mozilla.org/en-US/docs ... rtsService
Code: Select all
var as = Components.classes["@mozilla.org/alerts-service;1"].
getService(Components.interfaces.nsIAlertsService);
var image = "chrome://mozapps/skin/places/defaultFavicon.png";
as.showAlertNotification(image, "Title", "Description");
http://kb.mozillazine.org/Alerts.totalOpenTime
http://bugzilla.mozilla.org/show_bug.cgi?id=937262
The time delay is hard-coded.
http://dxr.mozilla.org/mozilla-release/ ... _IMMEDIATE
Last edited by morat on June 28th, 2016, 8:04 am, edited 1 time in total.
- Grumpus
- Posts: 13246
- Joined: October 19th, 2007, 4:23 am
- Location: ... Da' Swamp
Re: Popup Notification Time
Looked at this at length this morning it appears to relate to an extension or custom coded and not basic Firefox.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
-
- Posts: 95
- Joined: December 15th, 2010, 1:29 am
Re: Popup Notification Time
Grumpus
QUOTE:::: ...So it appears to relate to an extension or custom coded and not basic Firefox.
Thanks much Grumpus
morat
Yeah like this notification. 20 seconds
One example is http://custombuttons.sourceforge.net/fo ... 310fc8de93
I guess I should discuss with Odyseus as I can't figure out how to lessen time in the Buttons code.
Thanks much morat
QUOTE:::: ...So it appears to relate to an extension or custom coded and not basic Firefox.
Thanks much Grumpus
morat
Yeah like this notification. 20 seconds
One example is http://custombuttons.sourceforge.net/fo ... 310fc8de93
I guess I should discuss with Odyseus as I can't figure out how to lessen time in the Buttons code.
Thanks much morat
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: Popup Notification Time
@BarbieBarb
I can change the time delay for the showAlertNotification() method with the userChrome.js file.
http://userchromejs.mozdev.org/
http://userchromejs.mozdev.org/faq.html
Instructions:
* install userChromeJS extension
* close browser
* create or edit userChrome.js file in chrome folder
* open browser with purgecaches flag
i.e.
firefox.exe -purgecaches
FirefoxPortable.exe -purgecaches
userChromeJS 2.0 (signed)
Firefox 47.0.1
Windows 7 SP1 32-bit
I can change the time delay for the showAlertNotification() method with the userChrome.js file.
Code: Select all
/* Firefox userChrome.js */
(function() {
// change the time delay for the showAlertNotification() method
// from 20 seconds to 5 seconds
if (location == "chrome://browser/content/browser.xul") {
var observer = {
id: "userChromeJS_observer_1",
get wrappedJSObject() {
return this;
},
observe: function onOpen(subject, topic, data) {
// console.log("subject: " + subject);
// console.log("topic: " + topic);
// console.log("data: " + data);
// console.log("uri: " + subject.document.documentURI);
if (topic == "domwindowopened" &&
subject instanceof Components.interfaces.nsIDOMWindow) {
subject.addEventListener("DOMContentLoaded", function onLoad() {
subject.removeEventListener("DOMContentLoaded", onLoad, false);
if (subject.document.documentURI == "chrome://global/content/alerts/alert.xul") {
// Services.ww.unregisterNotification(observer);
// Services.wm.getMostRecentWindow("navigator:browser").
// inspectObject(subject); // DOM Inspector
// console.log("uri: " + subject.document.documentURI);
subject.setTimeout(function() {
subject.close();
}, 5000);
}
}, false);
}
},
};
var initialized = false;
var enumerator = Services.obs.enumerateObservers("domwindowopened");
while (enumerator.hasMoreElements()) {
var element = enumerator.getNext();
if ("wrappedJSObject" in element && element.wrappedJSObject &&
element.wrappedJSObject.id == observer.id) {
initialized = true;
break;
}
}
if (initialized == false) {
Services.ww.registerNotification(observer);
}
}
})();
http://userchromejs.mozdev.org/faq.html
Instructions:
* install userChromeJS extension
* close browser
* create or edit userChrome.js file in chrome folder
* open browser with purgecaches flag
i.e.
firefox.exe -purgecaches
FirefoxPortable.exe -purgecaches
userChromeJS 2.0 (signed)
Firefox 47.0.1
Windows 7 SP1 32-bit
-
- Posts: 95
- Joined: December 15th, 2010, 1:29 am
Re: Popup Notification Time
Thanks much morat
Yes that worked for me! I even changed it to 3 seconds (5000 to 3000).
Thanks for the code and detailed "step by step" instructions and links... or I would not have made it through successfully.
However... it requires an addon and I really don't want to add another addon...
especially one that needs to be enabled at all times.
So I will check into custombuttons forum about lessening the notification time with adding code snippet
into each custombutton where needed. I only have a few that use the notification. "Case+" button is another one http://custombuttons.sourceforge.net/fo ... 9727#p9727
I will keep this code as a future last resort choice.
Many others will benefit from your addon method.
And maybe you could post the method on custombuttons somewhere... faq or somewhere for reference.
Thanks very much ❤morat❤
Yes that worked for me! I even changed it to 3 seconds (5000 to 3000).
Thanks for the code and detailed "step by step" instructions and links... or I would not have made it through successfully.
However... it requires an addon and I really don't want to add another addon...
especially one that needs to be enabled at all times.
So I will check into custombuttons forum about lessening the notification time with adding code snippet
into each custombutton where needed. I only have a few that use the notification. "Case+" button is another one http://custombuttons.sourceforge.net/fo ... 9727#p9727
I will keep this code as a future last resort choice.
Many others will benefit from your addon method.
And maybe you could post the method on custombuttons somewhere... faq or somewhere for reference.
Thanks very much ❤morat❤
-
- Posts: 95
- Joined: December 15th, 2010, 1:29 am
Re: Popup Notification Time
morat wrote up code as a custombutton...
that will change the delay time of Notification Alert Popups in custombuttons... from 20 seconds to 3 seconds.
Thankyou much ❤morat❤
http://custombuttons.sourceforge.net/fo ... 7c893228ed
that will change the delay time of Notification Alert Popups in custombuttons... from 20 seconds to 3 seconds.
Thankyou much ❤morat❤
http://custombuttons.sourceforge.net/fo ... 7c893228ed